diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 19:02:51 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 19:02:51 +0000 |
commit | bc7b85f85626b2056f9b25f3b554d0f5f22da77c (patch) | |
tree | 3f7fc23ba44dc40a69203fffa7c3beb1b0854ea2 /autoconf | |
parent | e8263c2c09528fcc81571983c99f447b450a073b (diff) | |
download | external_llvm-bc7b85f85626b2056f9b25f3b554d0f5f22da77c.zip external_llvm-bc7b85f85626b2056f9b25f3b554d0f5f22da77c.tar.gz external_llvm-bc7b85f85626b2056f9b25f3b554d0f5f22da77c.tar.bz2 |
Rewrite POV-Ray check as per PR301
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 55 |
1 files changed, 35 insertions, 20 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 3a3dfd8..ab887aa 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -342,28 +342,43 @@ else AC_SUBST(USE_SPEC95,[[USE_SPEC95=1]]) fi -dnl Povray External Benchmark -AC_ARG_ENABLE(povray,AC_HELP_STRING([--enable-povray],[Compile Povray benchmark (default is NO)]),,enableval=no) -if test ${enableval} = "no" -then - if test -d /home/vadve/shared/benchmarks/povray31 +dnl We can use POV-Ray as an external benchmark, if they have the sources. +AC_ARG_ENABLE(povray, + AC_HELP_STRING([--enable-povray=ARG], + [Use POV-Ray as a benchmark (srcs in DIR)]), + povray=$enableval, + povray=auto) +AC_MSG_CHECKING([for POV-Ray benchmark sources]) +case "$povray" in +yes) + defaultdir=/home/vadve/shared/benchmarks/povray31 + if test -d $defaultdir then - AC_SUBST(POVRAY_ROOT,[/home/vadve/shared/benchmarks/povray31]) + AC_SUBST(POVRAY_ROOT,[$defaultdir]) AC_SUBST(USE_POVRAY,[[USE_POVRAY=1]]) - else - AC_SUBST(USE_POVRAY,[[]]) - AC_SUBST(POVRAY_ROOT,[]) - fi -else - if test ${enableval} = "" - then - AC_SUBST(POVRAY_ROOT,[/home/vadve/shared/benchmarks/povray31]) - else - AC_SUBST(POVRAY_ROOT,[${enableval}]) - fi - AC_SUBST(USE_POVRAY,[[USE_POVRAY=1]]) -fi - + povray="yes, found in $defaultdir" + else + povray=no + fi + ;; +auto|no) + AC_SUBST(POVRAY_ROOT,[]) + AC_SUBST(USE_POVRAY,[[]]) + povray=no + ;; +*) if test -d "$povray" + then + AC_SUBST(POVRAY_ROOT,"$povray") + AC_SUBST(USE_POVRAY,[[USE_POVRAY=1]]) + povray="yes, in $povray" + else + AC_SUBST(POVRAY_ROOT,[]) + AC_SUBST(USE_POVRAY,[[]]) + povray="no, not found in $povray" + fi + ;; +esac +AC_MSG_RESULT($povray) dnl Precompiled Bytecode Option AC_ARG_ENABLE(precompiled_bytecode,AC_HELP_STRING([--enable-precompiled_bytecode],[Use pre-compiled bytecode (default is NO)]),,enableval=no) |