From: Jarkko Hietaniemi Date: Sat, 2 Sep 2000 16:23:02 +0000 (+0000) Subject: Make certain cc is set before trying to run it. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e4c82f0b212f41e66aea601d969c4106295d48c;p=p5sagit%2Fp5-mst-13.2.git Make certain cc is set before trying to run it. p4raw-id: //depot/perl@7007 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index 462d74b..b1758ed 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 9190cee..32335a0 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 8fe516a..e8175f2 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='' ;;