Solaris: default to the SUNwspro cc if it is available.
Jarkko Hietaniemi [Thu, 21 Mar 2002 20:09:23 +0000 (20:09 +0000)]
p4raw-id: //depot/perl@15399

hints/solaris_2.sh

index c377f94..95fc3fd 100644 (file)
@@ -94,6 +94,20 @@ case "$workshoplibpth_done" in
 esac
 EOCBU
 
+case "$cc" in
+'')    if test -f /opt/SUNwspro/bin/cc; then
+               cat <<EOF               
+
+You specified no cc but you seem to have the Workshop compiler installed,
+using that.  If you want something else, specify that in the command line,
+e.g. Configure -Dcc=gcc
+
+EOF
+               cc=/opt/SUNwspro/bin/cc
+       fi
+       ;;
+esac
+
 ######################################################
 # General sanity testing.  See below for excerpts from the Solaris FAQ.
 #