From c56e7e8165c5dcb481d3fdabb3bd9390a7122b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= Date: Mon, 11 Jul 2011 17:58:30 +0800 Subject: [PATCH] we no longer depend on ExtUtils::MakeMaker because it is not perl's core module. thanks Lance for reporting this issue on CentOS 6. --- util/configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/configure b/util/configure index 97466cf..30509d1 100755 --- a/util/configure +++ b/util/configure @@ -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;