Anything that looks like gcc 5.0 or more is no longer treated as gcc. I hope

this will make us exclude icc 8.0 etc.
This commit is contained in:
Daniel Stenberg
2004-02-19 21:32:19 +00:00
parent 8794cb286b
commit a472cd9310

View File

@@ -1199,6 +1199,9 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null` gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
AC_MSG_RESULT($gccver) AC_MSG_RESULT($gccver)
if test "$gccnum" -lt "500"; then
dnl we only like gcc less than 5.0, since if it is above that it is
dnl likely just a compiler that looks like gcc (like icc 8.0)!
dnl here's the standard setup dnl here's the standard setup
WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare" WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-format-nonliteral -Wundef -Wpointer-arith -Wnested-externs -Wcast-align -Winline -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
if test "$gccnum" -ge "296"; then if test "$gccnum" -ge "296"; then
@@ -1211,7 +1214,6 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
dnl gcc 3.3 and later dnl gcc 3.3 and later
WARN="$WARN -Wendif-labels" WARN="$WARN -Wendif-labels"
fi fi
fi fi
NEWFLAGS="" NEWFLAGS=""
@@ -1226,6 +1228,7 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
done done
CFLAGS="$CFLAGS $WARN $NEWFLAGS" CFLAGS="$CFLAGS $WARN $NEWFLAGS"
fi
fi fi
dnl strip off optimizer flags dnl strip off optimizer flags