From: helly Date: Thu, 25 May 2006 12:23:05 +0000 (+0000) Subject: - Add version check: GCC >= 3 required X-Git-Tag: 0.13.6~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=819d2a0462e6b032d315ee280358e77420ed4e26;p=re2c - Add version check: GCC >= 3 required --- diff --git a/configure.in b/configure.in index 0c973c5d..c60b434e 100644 --- a/configure.in +++ b/configure.in @@ -15,6 +15,15 @@ AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL +if test "$GCC" = "yes"; then + AC_MSG_CHECKING([Testing GCC version]) + GCCVERSION=`$CXX -dumpversion 2>/dev/null` + if test -z "$GCCVERSION"; then + AC_MSG_ERROR([GCC version 3 or above required]) + fi + AC_MSG_RESULT([found version $GCCVERSION]) +fi + # Checks for libraries. # Checks for header files.