summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2007-01-12 15:15:13 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-01-12 15:15:13 +0000
commit0baa094867867dae4d06080810389e0a395c66b9 (patch)
treea21b5dff09ce2f446eac3635502095445d565aac /hints
parentc560d966b003defa80c2baa9fedc0a294d2b3afe (diff)
downloadperl-0baa094867867dae4d06080810389e0a395c66b9.tar.gz
gcc -dumpversion is at least supported back to 2.7.x and
thus seems to be much more defensive against upcoming version reporting format changes. p4raw-id: //depot/perl@29777
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh2
-rw-r--r--hints/aix_3.sh2
-rwxr-xr-xhints/aix_4.sh2
-rw-r--r--hints/dec_osf.sh2
-rw-r--r--hints/hpux.sh2
-rw-r--r--hints/svr5.sh2
-rw-r--r--hints/vos.sh2
7 files changed, 7 insertions, 7 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 835d23bd74..a9d0715153 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -109,7 +109,7 @@ case "$cc" in
ccdlflags='-Xlinker'
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
;;
diff --git a/hints/aix_3.sh b/hints/aix_3.sh
index e24e1058fa..6a7a3c18a9 100644
--- a/hints/aix_3.sh
+++ b/hints/aix_3.sh
@@ -91,7 +91,7 @@ case "$cc" in
ccdlflags='-Xlinker'
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
;;
diff --git a/hints/aix_4.sh b/hints/aix_4.sh
index 489ce89a73..46e8d25ffd 100755
--- a/hints/aix_4.sh
+++ b/hints/aix_4.sh
@@ -130,7 +130,7 @@ case "$cc" in
ccdlflags='-Xlinker'
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
;;
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index 336e0ef99e..cf557eabac 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -71,7 +71,7 @@ esac
case "$isgcc" in
gcc) if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
set $gccversion
if test "$1" -lt 2 -o \( "$1" -eq 2 -a \( "$2" -lt 95 -o \( "$2" -eq 95 -a "$3" -lt 3 \) \) \); then
diff --git a/hints/hpux.sh b/hints/hpux.sh
index df677ff433..762afe7019 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -78,7 +78,7 @@ case `$cc -v 2>&1`"" in
ccflags="$cc_cppflags"
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
case "$gccversion" in
[012]*) # HP-UX and gcc-2.* break UINT32_MAX :-(
diff --git a/hints/svr5.sh b/hints/svr5.sh
index ff08fcc185..ef1d7d547b 100644
--- a/hints/svr5.sh
+++ b/hints/svr5.sh
@@ -12,7 +12,7 @@ case "$cc" in
# "$gccversion" not set yet
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
case $gccversion in
*2.95*)
diff --git a/hints/vos.sh b/hints/vos.sh
index a5bf3372a4..d32f7e6f5a 100644
--- a/hints/vos.sh
+++ b/hints/vos.sh
@@ -110,7 +110,7 @@ if $cc -o t001 -O $ccflags $ldflags ../hints/t001.c; then
gccbug=`$run ./t001`
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
case "$gccbug" in
*fails*) cat >&4 <<EOF