summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-05 09:49:01 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-05 12:42:37 -0400
commit78ab3d1a1e24336ae295c6766f0aa90bff964c53 (patch)
treeec6f0bb1ca59ba7ebf0f9814013e122f7cdd1083 /hints/solaris_2.sh
parente1df407107c5f394da157461e336562c7a7d6a59 (diff)
downloadperl-78ab3d1a1e24336ae295c6766f0aa90bff964c53.tar.gz
Newer Sun C compilers are not 'SUNwspro', but 'solstudio'.
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 9577dad8e9..8dd2ce0ccb 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -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