Make certain cc is set before trying to run it.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Sep 2000 16:23:02 +0000 (16:23 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 2 Sep 2000 16:23:02 +0000 (16:23 +0000)
p4raw-id: //depot/perl@7007

hints/hpux.sh
hints/irix_6.sh
hints/solaris_2.sh

index 462d74b..b1758ed 100644 (file)
@@ -105,6 +105,8 @@ EOM
     ;;
 esac
 
+cc=${cc:-cc}
+
 case `$cc -v 2>&1`"" in
 *gcc*) ccisgcc="$define" ;;
 *) ccisgcc=''
index 9190cee..32335a0 100644 (file)
@@ -49,7 +49,7 @@ case "$cc" in
     esac       
 esac
 
-test -z "$cc" && cc=cc
+cc=${cc:-cc}
 
 case "$cc" in
 *gcc*) ;;
index 8fe516a..e8175f2 100644 (file)
@@ -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='' ;;