X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/3e6618b7a3a573729d121d2ba204ea2164d47107..aade5aff4d4ca48f8b8ad56cbcbd37531afa2401:/configpm diff --git a/configpm b/configpm index 6216f85..d8339fa 100755 --- a/configpm +++ b/configpm @@ -277,6 +277,17 @@ if ($OS2::is_aout) { $preconfig{d_fork} = undef unless $OS2::can_fork; # Some funny cases can't sub TIEHASH { bless {%preconfig} } ENDOFSET + # Extract the name of the DLL from the makefile to avoid duplication + my ($f) = grep -r, qw(GNUMakefile Makefile); + my $dll; + if (open my $fh, '<', $f) { + while (<$fh>) { + $dll = $1, last if /^PERL_DLL_BASE\s*=\s*(\S*)\s*$/; + } + } + print CONFIG <\n\nFrom F<$2>:\n\n/m; - my $c = substr $1, 0, 1; - unless ($seen{$c}++) { - print CONFIG <\n\nFrom F<$2>:\n\n/m) { + my $c = substr $1, 0, 1; + unless ($seen{$c}++) { + print CONFIG < paragraphs