summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>2002-02-14 22:56:24 -0500
committerAbhijit Menon-Sen <ams@wiw.org>2002-02-15 08:42:55 +0000
commit30500b05e0cd7c98f3f3ddb34d343729aab7b8f7 (patch)
tree6a93990dc0eba6e0f24b71fc429956915e61ea5f /configpm
parent59ecbafad1ed6a69b6ea56aa837f49504fd5051a (diff)
downloadperl-30500b05e0cd7c98f3f3ddb34d343729aab7b8f7.tar.gz
OS/2 tests and more
Message-Id: <20020215035624.A16467@math.ohio-state.edu> p4raw-link: @14577 on //depot/perl: 0ad5258ff3f3328f321188cbb4fcd6a74b365431 p4raw-id: //depot/perl@14705
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm11
1 files changed, 11 insertions, 0 deletions
diff --git a/configpm b/configpm
index 6216f85ae0..9f1a2e11cd 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 <<ENDOFSET if $dll;
+\$preconfig{dll_name} = '$dll';
+ENDOFSET
} else {
print CONFIG <<'ENDOFSET';
sub TIEHASH { bless {} }