From c3f1e2cd5c2cca19c715c4decd87c1fe24c9c006 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Nov 2005 14:08:56 +0000 Subject: * ext/iconv/extconf.rb: use 3rd argument to have_library. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/iconv/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb index 359771e8a..a9d0cfb5e 100644 --- a/ext/iconv/extconf.rb +++ b/ext/iconv/extconf.rb @@ -6,7 +6,7 @@ conf = File.exist?(File.join($srcdir, "config.charset")) conf = with_config("config-charset", enable_config("config-charset", conf)) if have_func("iconv", "iconv.h") or - have_library("iconv", "iconv") {|s| s.sub(/(?=\n\/\*top\*\/)/, "#include ")} + have_library("iconv", "iconv", "iconv.h") if checking_for("const of iconv() 2nd argument") do create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---") src = xpopen(cpp_command("")) {|f|f.read} -- cgit