summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorMaurizio Loreti <maurizio.loreti@pd.infn.it>2000-07-31 16:55:06 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-01 02:00:56 +0000
commitf931c1d2a027bca992f7d63bb19afeffa8162370 (patch)
tree7c080b657beca65b3754cb373aa24721a733fa08 /hints
parent2f67576d8cb103df532c921ad5e6caa4f7927a88 (diff)
downloadperl-f931c1d2a027bca992f7d63bb19afeffa8162370.tar.gz
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
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index db7b869cf2..31b0513240 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 <<EOF