configure.ac: enable LLVM by default on x86 and x86_64
authorMarek Olšák <maraeo@gmail.com>
Thu, 21 Apr 2011 11:27:55 +0000 (13:27 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 25 Apr 2011 11:45:05 +0000 (13:45 +0200)
configure.ac

index 77b2d55f0d040832eed081c170f34258160cbff1..d8c50ce32f534c5f7e74a27626bc4943688cd59b 100644 (file)
@@ -1687,9 +1687,14 @@ dnl Gallium LLVM
 dnl
 AC_ARG_ENABLE([gallium-llvm],
     [AS_HELP_STRING([--enable-gallium-llvm],
-        [build gallium LLVM support @<:@default=disabled@:>@])],
+        [build gallium LLVM support @<:@default=enabled on x86/x86_64@:>@])],
     [enable_gallium_llvm="$enableval"],
     [enable_gallium_llvm=auto])
+if test "x$enable_gallium_llvm" = xauto; then
+    case "$host_cpu" in
+    i*86|x86_64) enable_gallium_llvm=yes;;
+    esac
+fi
 if test "x$enable_gallium_llvm" = xyes; then
     if test "x$LLVM_CONFIG" != xno; then
        LLVM_VERSION=`$LLVM_CONFIG --version`