diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-03-03 07:35:51 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2006-03-03 07:35:51 +0000 |
commit | b6a7163e84fec2ee27fc3d0c252e50424d27241f (patch) | |
tree | 8d22834051a910e80be6565bdd1b0ce80aec6844 /Configure | |
parent | a8201472fe60da124ff072ac70a963b7dbf39499 (diff) | |
download | perl-b6a7163e84fec2ee27fc3d0c252e50424d27241f.tar.gz |
#27363 broke HP-UX (and others). if [[ ... ]] syntax not supported
p4raw-id: //depot/perl@27367
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -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$$ <<EOF @@ -20319,18 +20319,20 @@ chmod +x Cppsym.try $eunicefix Cppsym.try ./Cppsym < Cppsym.know > 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 |