X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=76ac727f900ffd5cafadaa2546c7a330d342aaee;hb=040a327bd3b1c223b36d0013546d4970b4d9580e;hp=18cf91c623b66975a8156c9ce7b1adb86c3b014a;hpb=2b4d844c2f265d47b6c0baab92e5b03ab8721042;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 18cf91c..76ac727 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,8 +23,8 @@ if (defined $pl && length $pl) { } my $is_as = 0; -print "Checking if this is Windows ActiveState 5.8.x... "; -if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.9.0) { +print "Checking if this is Windows ActiveState 5.8.[78]... "; +if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.8.9) { eval { require Win32; 1; @@ -37,6 +37,11 @@ if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.9.0) { } print $is_as ? "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'; +} + @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; my $BUILD_REQUIRES = {