From: Julian Seward Date: Thu, 29 Sep 2011 17:30:13 +0000 (+0000) Subject: Accept clang-2.9 as an allowable compiler. X-Git-Tag: svn/VALGRIND_3_7_0~171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5f048d7b6e717ecfd3d7e2ce5c757fd2fdc436a;p=thirdparty%2Fvalgrind.git Accept clang-2.9 as an allowable compiler. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12066 --- diff --git a/configure.in b/configure.in index 1c6560dac6..7dea144047 100644 --- a/configure.in +++ b/configure.in @@ -100,14 +100,25 @@ AC_MSG_CHECKING([for a supported version of gcc]) [gcc_version=`${CC} --version | head -n 1 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`] -case "${gcc_version}" in - 2.*) - AC_MSG_RESULT([no (${gcc_version})]) - AC_MSG_ERROR([please use a recent (>= gcc-3.0) version of gcc]) +is_clang="notclang" +if test "x`${CC} --version | head -n 1 | $SED 's/\(clang\) version.*/\1/'`" = "xclang" ; then + is_clang="clang" +fi + +case "${is_clang}-${gcc_version}" in + notclang-3.*) + AC_MSG_RESULT([ok (${gcc_version})]) ;; - *) + notclang-4.*) AC_MSG_RESULT([ok (${gcc_version})]) ;; + clang-2.9) + AC_MSG_RESULT([ok (clang-${gcc_version})]) + ;; + *) + AC_MSG_RESULT([no (${gcc_version})]) + AC_MSG_ERROR([please use gcc >= 3.0 or clang >= 2.9]) + ;; esac #----------------------------------------------------------------------------