summaryrefslogtreecommitdiffstats
path: root/ext/dbm
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
commit655628a58ba9630a8d7cebb51bb671776e7503b4 (patch)
treecf87c104b1b9f294040b4de3cada4e6d528e5215 /ext/dbm
parent72fd0916b0e6d60148e7fa7fdfc1c29ac7fc0a85 (diff)
downloadruby-655628a58ba9630a8d7cebb51bb671776e7503b4.tar.gz
ruby-655628a58ba9630a8d7cebb51bb671776e7503b4.tar.xz
ruby-655628a58ba9630a8d7cebb51bb671776e7503b4.zip
* ext/dbm/extconf.rb (db_check): check existence of the function
in the specified library before checking it in libc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 51b1bfd81..b9ab4d104 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+">'"