[Mesa-dev] [PATCH] clover: mark gcc < 4.7.3 as broken

David Heidelberger david.heidelberger at ixit.cz
Wed Oct 30 22:07:17 CET 2013


---
 configure.ac | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index dc15ad4..20b1769 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,6 +109,7 @@ if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
     if test $? -eq 0; then
         GCC_VERSION_MAJOR=`echo $GCC_VERSION | cut -d. -f1`
         GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2`
+        GCC_VERSION_MAINTANANCE=`echo $GCC_VERSION | cut -d. -f3`
     fi
 
     if test $GCC_VERSION_MAJOR -lt 3 -o $GCC_VERSION_MAJOR -eq 3 -a $GCC_VERSION_MINOR -lt 3 ; then
@@ -1371,8 +1372,10 @@ if test "x$enable_opencl" = xyes; then
         AC_MSG_ERROR([cannot enable OpenCL without Gallium])
     fi
 
-    if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then
-        AC_MSG_ERROR([gcc >= 4.7 is required to build clover])
+    if test $GCC_VERSION_MAJOR -lt 4 -o \
+            $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7 -o \
+            $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -eq 7 -a $GCC_VERSION_MAINTANANCE -lt 4; then
+        AC_MSG_ERROR([gcc >= 4.7.1 is required to build clover])
     fi
 
     if test "x$have_libclc" = xno; then
-- 
1.8.4



More information about the mesa-dev mailing list