From: Maurizio Loreti Date: Mon, 31 Jul 2000 14:55:06 +0000 (+0200) Subject: Make the safety catch for buggy gccs work with triple version X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f931c1d2a027bca992f7d63bb19afeffa8162370;p=p5sagit%2Fp5-mst-13.2.git Make the safety catch for buggy gccs work with triple version numbers like 2.95.2. Reported in Subject: [ID 20000731.005] Perl 5.6.0 "Configure" fails to recognize gcc 2.95.2 Message-Id: <200007311255.AA25586@axcdf4.pd.infn.it> p4raw-id: //depot/perl@6473 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index db7b869..31b0513 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -65,7 +65,7 @@ cc=${cc:-cc} # reset _DEC_cc_style= case "`$cc -v 2>&1 | grep cc`" in -*gcc*) _gcc_version=`$cc -v 2>&1 | grep "gcc version" | sed 's%^gcc version \([0-9]*\)\.\([0-9]*\) .*%\1 \2%'` +*gcc*) _gcc_version=`$cc --version 2>&1 | tr . ' '` set $_gcc_version if test "$1" -lt 2 -o \( "$1" -eq 2 -a "$2" -lt 95 \); then cat >&4 <