]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove GCC 2.x and 3.x detection and support
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2015 10:05:35 +0000 (03:05 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 Aug 2015 10:05:35 +0000 (03:05 -0700)
C++11 support is now required and the detection for that should error
far more nicely for these old compilers than these $GCCVER hacks

configure.ac

index 8d1469501921aa9cf1563dbe049d4ecfc4ab61ce..d0c55fed2b1b94687e0c37e4e22e6cd6ce22db36 100644 (file)
@@ -296,21 +296,6 @@ case $withval in
 ])
 AC_SUBST(DEFAULT_SWAP_DIR)
 
-if test "$squid_cv_compiler" = "gcc"; then
-  GCCVER=`$CC -v 2>&1 | awk '$2 ==  "version" {print $3}'`
-  GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'`
-  case "$host" in
-    i386-*-freebsd*)
-      if test $GCCVER2 -lt 300 ; then
-        AC_MSG_FAILURE([GCC $GCCVER causes a coredump on $host.
-          Please use a more recent GCC version])
-      fi
-      ;;
-    esac
-  unset GCCVER
-  unset GCCVER2
-fi
-
 dnl Set Default CFLAGS
 if test "x$PRESET_CFLAGS" = "x"; then
   if test "$squid_cv_compiler" = "gcc"; then
@@ -3267,18 +3252,6 @@ assert(myBar != NULL);
     ;;
   esac
 
-# Remove optimization for GCC 2.95.[123]
-# gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
-if test "x$GCC" = "xyes"; then
-       GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
-       case "$GCCVER" in
-       [2.95.[123]])
-               AC_MSG_NOTICE([Removing -O for gcc on $host with GCC $GCCVER])
-               CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`"
-               ;;
-       esac
-fi
-
 dnl This has to be before AC_CHECK_FUNCS
 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
 # when running configure.