[Mesa-dev] [PATCH] configure: Don't use $CLANG since it will collide with the static analyzer.

Jeremy Huddleston jeremyhu at freedesktop.org
Thu May 5 14:08:57 PDT 2011


We just prefix the $CLANG environment variable in configure.ac with acv_mesa_

Found by: tinderbox
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>

---
 configure.ac |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 54d9c29..f3f0fda 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,13 +64,13 @@ AC_COMPILE_IFELSE(
        not clang
 #endif
 ]])],
-[CLANG=yes], [CLANG=no])
+[acv_mesa_CLANG=yes], [acv_mesa_CLANG=no])
 
-AC_MSG_RESULT([$CLANG])
+AC_MSG_RESULT([$acv_mesa_CLANG])
 
 dnl If we're using GCC, make sure that it is at least version 3.3.0.  Older
 dnl versions are explictly not supported.
-if test "x$GCC" = xyes -a "x$CLANG" = xno; then
+if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
     AC_MSG_CHECKING([whether gcc version is sufficient])
     major=0
     minor=0
@@ -144,7 +144,7 @@ esac
 dnl Add flags for gcc and g++
 if test "x$GCC" = xyes; then
     CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
-    if test "x$CLANG" = "xno"; then
+    if test "x$acv_mesa_CLANG" = "xno"; then
        CFLAGS="$CFLAGS -ffast-math"
     fi
 
-- 
1.7.3.4




More information about the mesa-dev mailing list