diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-01 18:17:54 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-01 18:17:54 +0000 |
commit | 6b356c8efb963846940ef92952cf77e5b86bd65e (patch) | |
tree | 82aab24c903fb5c32b16e57ad6f095d823430eec /hints | |
parent | 301e812593b886ce092a67093cee831022be6f82 (diff) | |
download | perl-6b356c8efb963846940ef92952cf77e5b86bd65e.tar.gz |
Rename the PRIElfbl, PRIX64, etc, to be PRIEUfldbl, PRIXU64,
so that case-ignoring systems like DCL can tell them from
PRIefldbl and PRIx64. Apply Merijn's ccversion patches.
p4raw-id: //depot/perl@6982
Diffstat (limited to 'hints')
-rw-r--r-- | hints/aix.sh | 13 | ||||
-rw-r--r-- | hints/dec_osf.sh | 1 | ||||
-rw-r--r-- | hints/hpux.sh | 1 | ||||
-rw-r--r-- | hints/irix_6.sh | 6 | ||||
-rw-r--r-- | hints/solaris_2.sh | 6 |
5 files changed, 23 insertions, 4 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index c07e79cc68..cf1270d539 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -128,6 +128,13 @@ d_setreuid='undef' # Tell perl which symbols to export for dynamic linking. case "$cc" in *gcc*) ccdlflags='-Xlinker' ;; +*) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | awk '{print $2}'` + case "$ccversion" in + 4.4.0.0|4.4.0.1|4.4.0.2) + echo >&4 "*** This C compiler ($ccversion) is outdated." + echo >&4 "*** Please upgrade to at least 4.4.0.3." + ;; + esac esac # the required -bE:$installarchlib/CORE/perl.exp is added by # libperl.U (Configure) later. @@ -171,9 +178,9 @@ $define|true|[yY]*) ;; *) cat >&4 <<EOM -For pthreads you should use the AIX C compiler cc_r. -(now your compiler was set to '$cc') -Cannot continue, aborting. +*** For pthreads you should use the AIX C compiler cc_r. +*** (now your compiler was set to '$cc') +*** Cannot continue, aborting. EOM exit 1 ;; diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index c110d1ef13..86e8f944fa 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -99,6 +99,7 @@ EOF fi ;; *) # compile something small: taint.c is fine for this. + ccversion=`cc -V | grep 'DEC C' | awk '{print $3}'` # the main point is the '-v' flag of 'cc'. case "`cc -v -I. -c taint.c -o taint$$.o 2>&1`" in */gemc_cc*) # we have the new DEC GEM CC diff --git a/hints/hpux.sh b/hints/hpux.sh index 522fd46fa1..d729af2cf5 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -108,6 +108,7 @@ esac case `$cc -v 2>&1`"" in *gcc*) ccisgcc="$define" ;; *) ccisgcc='' ;; + ccversion=`which cc | xargs what | grep Compiler | awk '{print $2}'` ;; esac # Determine the architecture type of this system. diff --git a/hints/irix_6.sh b/hints/irix_6.sh index ce301df2ff..9190ceed01 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -48,8 +48,14 @@ case "$cc" in *) test -f /usr/lib32/libm.so && cc='cc -n32' ;; esac esac + test -z "$cc" && cc=cc +case "$cc" in +*gcc*) ;; +*) ccversion=`cc -version` ;; +esac + case "$use64bitint" in $define|true|[yY]*) case "`uname -r`" in diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 6809d4cdf9..22a0324ebf 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -45,7 +45,11 @@ case "$archname" in ;; esac -test -z "`${cc:-cc} -V 2>&1|grep -i workshop`" || ccname=workshop +ccversion="`${cc:-cc} -V 2>&1|sed 's/^cc: //'`" +case "$ccversion" in +*WorkShop*) ccname=workshop ;; +*) ccversion='' ;; +esac cat >UU/workshoplibpth.cbu<<'EOCBU' case "$workshoplibpth_done" in |