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'.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 5 Aug 2014 13:49:01 +0000 (09:49 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 5 Aug 2014 16:42:37 +0000 (12:42 -0400)
hints/solaris_2.sh

index 9577dad..8dd2ce0 100644 (file)
@@ -90,9 +90,11 @@ END
 `
 
 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.
@@ -100,7 +102,9 @@ If you want something else, specify that in the command line,
 e.g. Configure -Dcc=gcc
 
 EOF
-       fi
+                       break
+               fi
+       done
        ;;
 esac