we no longer depend on ExtUtils::MakeMaker because it is not perl's core module. thanks Lance for reporting this issue on CentOS 6.

This commit is contained in:
agentzh (章亦春) 2011-07-11 17:58:30 +08:00
parent b40119877a
commit c56e7e8165
1 changed files with 2 additions and 3 deletions

5
util/configure vendored
View File

@ -5,7 +5,6 @@ use strict;
use warnings;
use File::Spec;
use ExtUtils::MakeMaker ();
sub shell ($@);
sub env ($$);
@ -614,12 +613,12 @@ sub can_run {
#warn "can run: @_\n";
my $_cmd = $cmd;
return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd));
return $_cmd if -x $_cmd;
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
next if $dir eq '';
my $abs = File::Spec->catfile($dir, $_[0]);
return $abs if (-x $abs or $abs = MM->maybe_command($abs));
return $abs if -x $abs;
}
return;