This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Makefile.PL adjustments for the core
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 10 Jun 2005 12:09:30 +0000 (12:09 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 10 Jun 2005 12:09:30 +0000 (12:09 +0000)
p4raw-id: //depot/perl@24788

ext/Compress/Zlib/Makefile.PL

index 2ffe575..b8c2240 100755 (executable)
@@ -25,8 +25,12 @@ my $OLD_ZLIB = '' ;
 my $WALL = '';
 #$WALL = ' -Wall ';
 
+unless($ENV{PERL_CORE}) {
+    $ENV{PERL_CORE} = 1 if 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} and not $ENV{PERL_CORE})
 {
     print <<EOM ;