diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-13 17:14:18 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-13 17:14:18 +0000 |
commit | 65716b585693c5c6c4b536cb3c6cce4636017ef6 (patch) | |
tree | 26d65288b96426fd9fd1700c0587213fbc1ed443 /ext/dbm | |
parent | 655628a58ba9630a8d7cebb51bb671776e7503b4 (diff) | |
download | ruby-65716b585693c5c6c4b536cb3c6cce4636017ef6.tar.gz ruby-65716b585693c5c6c4b536cb3c6cce4636017ef6.tar.xz ruby-65716b585693c5c6c4b536cb3c6cce4636017ef6.zip |
* ext/dbm/extconf.rb (rb_check): support for GNU dbm 1.8.3.
(-with-dbm-type=gdbm_compat). link against -lgdbm_compat
and -lgdbm.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r-- | ext/dbm/extconf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index b9ab4d104..e67ede88f 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -10,6 +10,7 @@ $dbm_conf_headers = { "db2" => ["db2/db.h", "db2.h", "db.h"], "dbm" => ["ndbm.h"], "gdbm" => ["gdbm-ndbm.h", "ndbm.h"], + "gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h"], } def db_check(db) @@ -23,6 +24,9 @@ def db_check(db) hsearch = "-DDB_DBM_HSEARCH " when "gdbm" $dbm_conf_have_gdbm = true + when "gdbm_compat" + $dbm_conf_have_gdbm = true + have_library("gdbm") or return false end if have_library(db, db_prefix("dbm_open")) || have_func(db_prefix("dbm_open")) |