Mesa (master): configure.ac: enable LLVM by default on x86 and x86_64

Marek Olšák mareko at kemper.freedesktop.org
Mon Apr 25 04:46:27 PDT 2011


Module: Mesa
Branch: master
Commit: a86fc719d6402eb482657707741890e69e81700f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a86fc719d6402eb482657707741890e69e81700f

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr 21 13:27:55 2011 +0200

configure.ac: enable LLVM by default on x86 and x86_64

---

 configure.ac |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 77b2d55..d8c50ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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`



More information about the mesa-commit mailing list