#!/usr/bin/perl
$ENV{'LANG'} = 'C';
my @paths = grep(!/cpan_sandbox/,split(/:/, $ENV{'PATH'}));
foreach my $path (@paths) {
if (-x $path . '/' . 'perl') {
if (grep(/^Makefile\.PL$/, @ARGV)) {
print STDERR "perl-64bit-hack: enabled\n";
exec ($path . '/' . 'perl','-I/scripts/cpan_sandbox','-MExtUtils::MakeMaker::64BitHack',@ARGV);
} else {
exec ($path . '/' . 'perl',@ARGV);
}
}
}
die;