From: wessels <> Date: Sat, 16 Jul 2005 02:12:56 +0000 (+0000) Subject: We can move the GCC version check much earlier in the script X-Git-Tag: SQUID_3_0_PRE4~700 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c43504f56cfb72d5ea492bf663dfd79f15fcdc4;p=thirdparty%2Fsquid.git We can move the GCC version check much earlier in the script --- diff --git a/configure.in b/configure.in index 44a8820c92..7956ee656d 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Configuration input file for Squid dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.379 2005/07/15 20:07:52 wessels Exp $ +dnl $Id: configure.in,v 1.380 2005/07/15 20:12:56 wessels Exp $ dnl dnl dnl @@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc]) AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(squid, 3.0-PRE3-CVS) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.379 $)dnl +AC_REVISION($Revision: 1.380 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -105,6 +105,22 @@ case "$host" in ;; esac +if test "$GCC" = "yes"; 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 + echo "ERROR: GCC $GCCVER causes a coredump on $host" + echo "ERROR: Try a more recent GCC version" + exit 1 + fi + ;; + esac + unset GCCVER + unset GCCVER2 +fi + dnl Set Default CFLAGS if test -z "$PRESET_CFLAGS"; then if test "$GCC" = "yes"; then @@ -2118,22 +2134,6 @@ if test "$GCC" = "yes"; then esac fi -if test "$GCC" = "yes"; 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 - echo "GCC $GCCVER causes a coredump on $host" - echo "Try a more recent GCC version" - exit 1 - fi - ;; - esac - unset GCCVER - unset GCCVER2 -fi - # Recommended by Balint Nagy Endre case "$host" in *-univel-sysv4.2MP)