From 9dd3af9ae7d59149adf0fc2679f04bed62d222e8 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 29 Mar 2010 23:57:43 +0000 Subject: * ext/psych/extconf.rb: Making library detection more agnostic. [ruby-core:29118] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/psych/extconf.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'ext') diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 673b950a63..d789b35e5c 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -2,16 +2,10 @@ require 'mkmf' # :stopdoc: -RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] - -INCLUDEDIR = Config::CONFIG['includedir'] -LIBDIR = Config::CONFIG['libdir'] -LIB_DIRS = ['/opt/local/lib', '/usr/local/lib', LIBDIR, '/usr/lib'] -libyaml = dir_config 'libyaml', '/opt/local/include', '/opt/local/lib' +dir_config 'libyaml' def asplode missing - abort "#{missing} is missing. Try 'port install libyaml +universal' " + - "or 'yum install libyaml-devel'" + abort "#{missing} is missing. Please install libyaml." end asplode('yaml.h') unless find_header 'yaml.h' -- cgit v1.2.3