summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-13 14:54:24 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-13 14:54:24 +0000
commit3d4298a3c43e1ea5b97c0240a62191d036c17ce6 (patch)
treecf87c104b1b9f294040b4de3cada4e6d528e5215
parent1d15fa691a7c417bf5b330b94cdf82b1bce3d8a1 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--ext/dbm/extconf.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f71f8ae..efb4fe3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 13 23:42:16 2002 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/dbm/extconf.rb (db_check): check existence of the function
+ in the specified library before checking it in libc.
+
Fri Dec 13 12:33:22 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* parse.y (expr): rescue clause was ignored.
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 51b1bfd..b9ab4d1 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+">'"