From: H.Merijn Brand Date: Fri, 3 Mar 2006 07:35:51 +0000 (+0000) Subject: #27363 broke HP-UX (and others). if [[ ... ]] syntax not supported X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b6a7163e84fec2ee27fc3d0c252e50424d27241f;p=p5sagit%2Fp5-mst-13.2.git #27363 broke HP-UX (and others). if [[ ... ]] syntax not supported p4raw-id: //depot/perl@27367 --- diff --git a/Configure b/Configure index 6419e5f..12b8fb0 100755 --- a/Configure +++ b/Configure @@ -26,7 +26,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Thu Mar 2 21:01:10 CET 2006 [metaconfig 3.0 PL70] +# Generated on Fri Mar 3 08:34:32 CET 2006 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ < Cppsym.true : Add in any linux cpp "predefined macros": -if [[ "$osname" == *linux* ]] && [[ "$gccversion" != "" ]]; then - tHdrH=_tmpHdr - rm -f $tHdrH'.h' $tHdrH - touch $tHdrH'.h' - if cpp -dM $tHdrH'.h' > $tHdrH'_cppsym.h' && [ -s $tHdrH'_cppsym.h' ]; then - sed 's/#define[\ \ ]*//;s/[\ \ ].*$//' <$tHdrH'_cppsym.h' >$tHdrH'_cppsym.real' - if [ -s $tHdrH'_cppsym.real' ]; then - cat $tHdrH'_cppsym.real' Cppsym.know | sort | uniq | ./Cppsym | sort | uniq > Cppsym.true - fi - fi - rm -f $tHdrH'.h' $tHdrH'_cppsym.h' $tHdrH'_cppsym.real' -fi +case "$osname::$gccversion" in + *linux*::*.*) + tHdrH=_tmpHdr + rm -f $tHdrH'.h' $tHdrH + touch $tHdrH'.h' + if cpp -dM $tHdrH'.h' > $tHdrH'_cppsym.h' && [ -s $tHdrH'_cppsym.h' ]; then + sed 's/#define[\ \ ]*//;s/[\ \ ].*$//' <$tHdrH'_cppsym.h' >$tHdrH'_cppsym.real' + if [ -s $tHdrH'_cppsym.real' ]; then + cat $tHdrH'_cppsym.real' Cppsym.know | sort | uniq | ./Cppsym | sort | uniq > Cppsym.true + fi + fi + rm -f $tHdrH'.h' $tHdrH'_cppsym.h' $tHdrH'_cppsym.real' + ;; +esac : now check the C compiler for additional symbols postprocess_cc_v='' case "$osname" in