X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=a4bd42e8b3d0a7a452e3967edeea79052e8288c2;hb=f3d1fc8f344c277db7b21ba986d3f0bef458c3d8;hp=644bb90b051aee2da50b66e2bfaa0c09c088ed1e;hpb=8d4ae54e13365dd788ce6f40826980252726c235;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 644bb90..a4bd42e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,6 +19,7 @@ if (defined $pl && length $pl) { push @DEFINES, '-DVMG_PERL_PATCHLEVEL=' . $pl; print $pl, "\n"; } else { + $pl = undef; print "none\n"; } @@ -40,6 +41,18 @@ if ($^V eq v5.8.8) { } print $is_as ? "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"; + # Threads, Windows and 5.8.x don't seem to be best friends if ($^O eq 'MSWin32' && $^V lt v5.9.0) { push @DEFINES, '-DVMG_MULTIPLICITY=0';