Spread IlyaZ's PERL_CORE detection trick.
Jarkko Hietaniemi [Wed, 2 Apr 2003 05:25:19 +0000 (05:25 +0000)]
p4raw-id: //depot/perl@19131

ext/Encode/Makefile.PL

index 2e74fe4..6e4e40c 100644 (file)
@@ -3,7 +3,7 @@ use ExtUtils::MakeMaker;
 
 # Just for sure :)
 unless($ENV{PERL_CORE}) {
-    $ENV{PERL_CORE} = 1 if ($^X =~ m{\bminiperl[^/\\\]>:]*$}o);
+    $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
 }
 
 my %tables =