From: Gurusamy Sarathy Date: Wed, 12 Jul 2000 06:40:04 +0000 (+0000) Subject: change#6174 needs corresponding change in win32/config_h.PL, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38121b9e38956dc80be4afeca69de90ecbcf1dbe;p=p5sagit%2Fp5-mst-13.2.git change#6174 needs corresponding change in win32/config_h.PL, which grovels through config_h.SH to find the config.h name p4raw-link: @6174 on //depot/metaconfig: cfd1a6dce7dce25772bf4f5399e251457574eeeeon //depot/cfgperl: 12ae5dfcd4fd6f54af051c41b2e122532efce8d3 p4raw-id: //depot/perl@6379 --- diff --git a/win32/config_h.PL b/win32/config_h.PL index 5b04506..91f35a4 100644 --- a/win32/config_h.PL +++ b/win32/config_h.PL @@ -11,6 +11,9 @@ while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/) $opt{$1}=$2; shift(@ARGV); } + +$opt{CONFIG_H} ||= 'config.h'; + my $patchlevel = $opt{INST_VER}; $patchlevel =~ s|^[\\/]||; $patchlevel =~ s|~VERSION~|$Config{version}|g; @@ -24,6 +27,8 @@ while () } ($term,$file,$pat) = /^sed\s+<<(\S+)\s+>(\S+)\s+(.*)$/; +$file =~ s/^\$(\w+)$/$opt{$1}/g; + my $str = "sub munge\n{\n"; while ($pat =~ s/-e\s+'([^']*)'\s*//)