1use ExtUtils::MakeMaker;
2
3my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV;
4
5WriteMakefile(
6    NAME => 'Safe',
7    VERSION_FROM => 'Safe.pm',
8    INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
9    ($core || $] >= 5.011) ? () : (INST_LIB => '$(INST_ARCHLIB)'),
10);
11