X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=b04024596c0bbfdb9d4494ec19e3a2ae67ca5702;hb=refs%2Ftags%2Fv0.46;hp=93598a12ae03c4039ae9da44604663be90be4e92;hpb=14f8af239bcc9baaf072b0eb42422f684906953d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 93598a1..b040245 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,23 +7,12 @@ use ExtUtils::MakeMaker; BEGIN { eval { require Config }; die 'OS unsupported' if $@; - Config->import(qw/%Config/); + Config->import(qw<%Config>); } my @DEFINES; my %macro; -my $pl = $Config{perl_patchlevel}; -print "Checking perl patchlevel... "; -if (defined $pl && length $pl) { - $pl = int $pl; - push @DEFINES, '-DVMG_PERL_PATCHLEVEL=' . $pl; - print $pl, "\n"; -} else { - $pl = undef; - print "none\n"; -} - my $as_perl = eval { require ActivePerl; defined &ActivePerl::BUILD ? ActivePerl::BUILD() : undef @@ -37,30 +26,18 @@ if ($^V eq v5.8.8 and defined $as_perl and $as_perl >= 822) { } print $is_as_822 ? "yes\n" : "no\n"; -my $is_5110rel = 0; -print "Checking if this is a released perl 5.11.0 or higher... "; -if ($^V ge v5.11.0 and not defined $pl) { - my $describe = $Config{git_describe}; - # An empty 'describe' is fine - if (defined $describe and $describe !~ /^GitLive-/) { - $is_5110rel = 1; - push @DEFINES, '-DVMG_COMPAT_ARRAY_PUSH_NOLEN=0'; - } -} -print $is_5110rel ? "yes\n" : "no\n"; - my $is_gcc_34 = 0; print "Checking if this is gcc 3.4 on Windows trying to link against an import library... "; if ($^O eq 'MSWin32' and not grep /^LD[A-Z]*=/, @ARGV) { - my ($libperl, $gccversion) = map $_ || '', @Config{qw/libperl gccversion/}; + my ($libperl, $gccversion) = map $_ || '', @Config{qw}; if ($gccversion =~ /^3\.4\.[0-9]+/ and $libperl =~ s/\.lib$//) { $is_gcc_34 = 1; - my ($lddlflags, $ldflags) = @Config{qw/lddlflags ldflags/}; + my ($lddlflags, $ldflags) = @Config{qw}; $_ ||= '', s/-L(?:".*?"|\S+)//g for $lddlflags, $ldflags; $libperl = "-l$libperl"; my $libdirs = join ' ', map { s/(?}; $macro{LDDLFLAGS} = "$lddlflags $libdirs $libperl"; $macro{LDFLAGS} = "$ldflags $libdirs $libperl"; $macro{PERL_ARCHIVE} = '',