doctor: don't report wrong location of autoconf if it's missing

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mislav Marohnić 2011-07-10 20:57:00 +02:00 committed by Adam Vandenberg
parent 567711ed74
commit f0eab140f8

View File

@ -591,11 +591,12 @@ def check_git_newline_settings
end
def check_for_autoconf
which_autoconf = `/usr/bin/which autoconf`.chomp
unless (which_autoconf == '/usr/bin/autoconf' or which_autoconf == '/Developer/usr/bin/autoconf')
autoconf = `/usr/bin/which autoconf`.chomp
safe_autoconfs = %w[/usr/bin/autoconf /Developer/usr/bin/autoconf]
unless autoconf.empty? or safe_autoconfs.include? autoconf
puts <<-EOS.undent
An "autoconf" in your path blocking the Xcode-provided version at:
#{which_autoconf}
#{autoconf}
This custom autoconf may cause some Homebrew formulae to fail to compile.