summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2012-09-04 11:35:56 -0400
committerAndy Dougherty <doughera@lafayette.edu>2012-09-04 11:35:56 -0400
commitb8cad20a5c86e1d8deb73ddf0713fe32e6e90b92 (patch)
tree13cdeec3158baddfcbe60d5871ea8cc657430845 /hints
parent22e660b408c16433d6f9ffeb43d0faf79e16e502 (diff)
downloadperl-b8cad20a5c86e1d8deb73ddf0713fe32e6e90b92.tar.gz
Avoid garbled sed command in hints/solaris_2.sh
Solaris sed does not understand the GNU /i flag.
Diffstat (limited to 'hints')
-rw-r--r--hints/solaris_2.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 0574ce75c1..615d440910 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -327,7 +327,7 @@ EOM
if $tryworkshopcc >/dev/null 2>&1; then
cc_name=`./try`
if test "$cc_name" = "workshop"; then
- ccversion="`${cc:-cc} -V 2>&1|sed -n -e '1s/^cc: //ip'`"
+ ccversion="`${cc:-cc} -V 2>&1|sed -n -e '1s/^[Cc][Cc]: //p'`"
if test ! "$use64bitall_done"; then
loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth"
fi
@@ -341,7 +341,7 @@ EOM
d_attribute_warn_unused_result='undef'
fi
if test "$cc_name" = "workshop CC"; then
- ccversion="`${cc:-CC} -V 2>&1|sed -n -e '1s/^CC: //ip'`"
+ ccversion="`${cc:-CC} -V 2>&1|sed -n -e '1s/^[Cc][C]: //p'`"
if test ! "$use64bitall_done"; then
loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth"
fi