The first condition is to allow to install properly on perls <= 5.10.1
from CPAN, while remaining buildable when the ext/ reorganisation is
integrated in maint-5.10.
use ExtUtils::MakeMaker;
+my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
+
WriteMakefile(
NAME => 'Safe',
VERSION_FROM => 'Safe.pm',
INSTALLDIRS => 'perl',
- INST_LIB => '$(INST_ARCHLIB)',
+ ($core || $] >= 5.011) ? () : (INST_LIB => '$(INST_ARCHLIB)'),
);
-