diff options
-rw-r--r-- | hints/aix.sh | 2 | ||||
-rw-r--r-- | hints/aix_3.sh | 2 | ||||
-rwxr-xr-x | hints/aix_4.sh | 2 | ||||
-rw-r--r-- | hints/dec_osf.sh | 2 | ||||
-rw-r--r-- | hints/hpux.sh | 2 | ||||
-rw-r--r-- | hints/svr5.sh | 2 | ||||
-rw-r--r-- | hints/vos.sh | 2 |
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 |