From 3d4298a3c43e1ea5b97c0240a62191d036c17ce6 Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 13 Dec 2002 14:54:24 +0000 Subject: * ext/dbm/extconf.rb (db_check): check existence of the function in the specified library before checking it in libc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dbm/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/dbm/extconf.rb') diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index 51b1bfd81b..b9ab4d1048 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -25,7 +25,7 @@ def db_check(db) $dbm_conf_have_gdbm = true end - if have_func(db_prefix("dbm_open")) || have_library(db, db_prefix("dbm_open")) + if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open")) for hdr in $dbm_conf_headers.fetch(db, ["ndbm.h"]) if have_header(hdr.dup) $CFLAGS += " " + hsearch + "-DDBM_HDR='<"+hdr+">'" -- cgit v1.2.3