From: Marcin BaczyƄski Date: Wed, 13 Jul 2011 19:26:50 +0000 (+0200) Subject: configure: fix gcc version check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa013419deec41c2771bf4744e0f8a2bca3346d2;p=mesa.git configure: fix gcc version check NOTE: This is a candidate for the 7.11 branch. Signed-off-by: Brian Paul --- diff --git a/configure.ac b/configure.ac index 74144caf2ae..949faa4664f 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,7 @@ if test "x$GCC" = xyes -a "x$CLANG" = xno; then GCC_VERSION=`$CC -dumpversion` if test $? -eq 0; then major=`echo $GCC_VERSION | cut -d. -f1` - minor=`echo $GCC_VERSION | cut -d. -f1` + minor=`echo $GCC_VERSION | cut -d. -f2` fi if test $major -lt 3 -o $major -eq 3 -a $minor -lt 3 ; then