X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=blobdiff_plain;f=Makefile.PL;h=72bad649e4d27837cf6ceaeaf9a74a94e9ece0dd;hp=22092a07a9d987da1129adbcb082aa3ac37d5754;hb=d243a60a93df241b82cd810c5e82e9245029bae4;hpb=fdb8e22d8aab6fac43cfb8a69405c289e28e064f diff --git a/Makefile.PL b/Makefile.PL index 22092a0..72bad64 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,12 +4,7 @@ use strict; use warnings; use ExtUtils::MakeMaker; -BEGIN { - local $@; - eval { require Config }; - die 'OS unsupported' if $@; - Config->import(qw<%Config>); -} +use Config; my @DEFINES; my %macro; @@ -57,14 +52,20 @@ my %PREREQ_PM = ( 'XSLoader' => 0, ); +my %BUILD_REQUIRES = ( + 'Config' => 0, + 'Exporter' => 0, + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, }, build_requires => { - 'ExtUtils::MakeMaker' => 0, - 'Test::More' => 0, - %PREREQ_PM, + %BUILD_REQUIRES, }, dynamic_config => 1, resources => { @@ -83,6 +84,7 @@ WriteMakefile( ABSTRACT_FROM => $file, PL_FILES => {}, @DEFINES, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.008003', META_MERGE => \%META,