diff options
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index d4c1fd46cf7..8448736be31 100644 --- a/configure.ac +++ b/configure.ac @@ -1744,10 +1744,14 @@ AC_ARG_ENABLE([gallium-llvm], [enable_gallium_llvm=auto]) if test "x$enable_gallium_llvm" = xauto; then - case "$host_cpu" in - i*86|x86_64|amd64) enable_gallium_llvm=yes;; - *) enable_gallium_llvm=no;; - esac + if test "x$FOUND_LLVM" = xyes; then + case "$host_cpu" in + i*86|x86_64|amd64) enable_gallium_llvm=yes;; + *) enable_gallium_llvm=no;; + esac + else + enable_gallium_llvm=no + fi fi if test "x$enable_gallium_llvm" = xyes -a "x$FOUND_LLVM" = xno; then |