diff options
author | Steve Peters <steve@fisharerojo.org> | 2005-09-29 18:04:29 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2005-09-29 18:04:29 +0000 |
commit | fe0496b9253e88edaeae0264e2f55168b1a33de1 (patch) | |
tree | d5d35bd30630f1ee578dd79eb46e2842e8df5a0e /utils | |
parent | 485444d202c3019eeaf8c01d813fc14f615350bb (diff) | |
download | perl-fe0496b9253e88edaeae0264e2f55168b1a33de1.tar.gz |
With XSLoader on CPAN now, add XSLoader as a prerequisite in Makefile.PL
if the compatible version is less than 5.006 (the first version with
XSLoader).
p4raw-id: //depot/perl@25662
Diffstat (limited to 'utils')
-rw-r--r-- | utils/h2xs.PL | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/h2xs.PL b/utils/h2xs.PL index 19452dede6..6eaa97eeaa 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -1883,15 +1883,16 @@ EOP warn "Writing $ext$modpname/Makefile.PL\n"; open(PL, ">Makefile.PL") || die "Can't create $ext$modpname/Makefile.PL: $!\n"; -my $prereq_pm; +my $prereq_pm = ''; if ( $compat_version < 5.00702 and $new_test ) { - $prereq_pm = q%'Test::More' => 0%; + $prereq_pm .= q%'Test::More' => 0, %; } -else + +if ( $compat_version < 5.00600 and !$opt_X) { - $prereq_pm = ''; + $prereq_pm .= q%'XSLoader' => 0, %; } print PL <<"END"; |