This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Newer Sun C compilers are not 'SUNwspro', but 'solstudio'.
[perl5.git] / hints / solaris_2.sh
index 9577dad..8dd2ce0 100644 (file)
@@ -90,9 +90,11 @@ END
 `
 
 case "$cc" in
 `
 
 case "$cc" in
-'')    if test -f /opt/SUNWspro/bin/cc; then
-               cc=/opt/SUNWspro/bin/cc
-               cat <<EOF >&4
+'')    for i in `ls -r /opt/solstudio*/bin/cc` /opt/SUNWspro/bin/cc
+       do
+              if test -f "$i"; then
+                      cc=$i
+                      cat <<EOF >&4
 
 You specified no cc but you seem to have the Workshop compiler
 ($cc) installed, using that.
 
 You specified no cc but you seem to have the Workshop compiler
 ($cc) installed, using that.
@@ -100,7 +102,9 @@ If you want something else, specify that in the command line,
 e.g. Configure -Dcc=gcc
 
 EOF
 e.g. Configure -Dcc=gcc
 
 EOF
-       fi
+                       break
+               fi
+       done
        ;;
 esac
 
        ;;
 esac