From 5940ee4b87cb4b4f4c87338c4f984d354edce2ed Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 21 Jan 2008 17:19:45 +0000 Subject: [PATCH] Improve the GCC version test, check for >= 3.3. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f7c55ee7029..eac4c39913c 100644 --- a/configure.ac +++ b/configure.ac @@ -69,9 +69,10 @@ GCC_VERSION=$3 parts=`echo $GCC_VERSION | tr '.' ' '` set $parts GCC_MAJOR_VERSION=$1 -if test $GCC_MAJOR_VERSION -lt 4 +GCC_MINOR_VERSION=$2 +if test ${GCC_MAJOR_VERSION}${GCC_MINOR_VERSION} -lt 33 then - AC_MSG_ERROR([*** G++ major version $GCC_MAJOR_VERSION is too old.]) + AC_MSG_ERROR([*** G++ major version $GCC_VERSION is too old.]) fi #######################################################################