From: H.Merijn Brand Date: Mon, 10 Oct 2005 06:14:30 +0000 (+0000) Subject: Compress::Zlib should not ask under Cygwin in CORE X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bee0003aabcb42f0f5d890de422d7ccdd7435de9;p=p5sagit%2Fp5-mst-13.2.git Compress::Zlib should not ask under Cygwin in CORE p4raw-id: //depot/perl@25726 --- diff --git a/ext/Compress/Zlib/Makefile.PL b/ext/Compress/Zlib/Makefile.PL index aeb58e8..3c45fb0 100755 --- a/ext/Compress/Zlib/Makefile.PL +++ b/ext/Compress/Zlib/Makefile.PL @@ -28,8 +28,9 @@ my $GZIP_OS_CODE = -1 ; #$WALL = ' -pedantic ' if $Config{'cc'} =~ /gcc/ ; $WALL = ' -Wall ' if $Config{'cc'} =~ /gcc/ ; +my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV; # don't ask if MM_USE_DEFAULT is set -- enables perl core building on cygwin -if ($^O =~ /cygwin/i and not $ENV{PERL_MM_USE_DEFAULT}) +if ($^O =~ /cygwin/i and not ($ENV{PERL_MM_USE_DEFAULT} || $PERL_CORE)) { print <