blob: f47287c03ea9281ef2162d0423c461b9d9f6a779 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require 'mkmf'
dir_config("dbm")
#if have_library("gdbm", "dbm_open")
# gdbm = true
#end
gdbm = false
gdbm or have_library("db", "dbm_open") or have_library("dbm", "dbm_open")
have_header("cdefs.h")
if have_header("ndbm.h") and have_func("dbm_open")
have_func("dbm_clearerr") unless gdbm
create_makefile("dbm")
end
|