From b8cad20a5c86e1d8deb73ddf0713fe32e6e90b92 Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Tue, 4 Sep 2012 11:35:56 -0400 Subject: [PATCH] Avoid garbled sed command in hints/solaris_2.sh Solaris sed does not understand the GNU /i flag. --- hints/solaris_2.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 0574ce7..615d440 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 -- 2.7.4