diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-02 16:23:02 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-02 16:23:02 +0000 |
commit | 5e4c82f0b212f41e66aea601d969c4106295d48c (patch) | |
tree | 50593e11c00b2f133220b21feff7ef1960952e13 /hints | |
parent | bc72357792382ccc80c3ded9fcfc8ec2c74af111 (diff) | |
download | perl-5e4c82f0b212f41e66aea601d969c4106295d48c.tar.gz |
Make certain cc is set before trying to run it.
p4raw-id: //depot/perl@7007
Diffstat (limited to 'hints')
-rw-r--r-- | hints/hpux.sh | 2 | ||||
-rw-r--r-- | hints/irix_6.sh | 2 | ||||
-rw-r--r-- | hints/solaris_2.sh | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index 462d74b5e6..b1758eda83 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -105,6 +105,8 @@ EOM ;; esac +cc=${cc:-cc} + case `$cc -v 2>&1`"" in *gcc*) ccisgcc="$define" ;; *) ccisgcc='' diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 9190ceed01..32335a0bb8 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -49,7 +49,7 @@ case "$cc" in esac esac -test -z "$cc" && cc=cc +cc=${cc:-cc} case "$cc" in *gcc*) ;; diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 8fe516a85e..e8175f241a 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -45,7 +45,9 @@ case "$archname" in ;; esac -ccversion="`${cc:-cc} -V 2>&1|head -1|sed 's/^cc: //'`" +cc=${cc:-cc} + +ccversion="`$cc -V 2>&1|head -1|sed 's/^cc: //'`" case "$ccversion" in *WorkShop*) ccname=workshop ;; *) ccversion='' ;; |