1999-01-19 23:59:39 -05:00
|
|
|
require 'mkmf'
|
1999-08-24 04:21:56 -04:00
|
|
|
|
1999-08-13 01:37:52 -04:00
|
|
|
dir_config("dbm")
|
1999-08-24 04:21:56 -04:00
|
|
|
if have_library("gdbm", "dbm_open")
|
|
|
|
gdbm = true
|
|
|
|
end
|
|
|
|
gdbm or have_library("db", "dbm_open") or have_library("dbm", "dbm_open")
|
1999-08-13 01:37:52 -04:00
|
|
|
have_header("cdefs.h")
|
2000-09-12 01:37:38 -04:00
|
|
|
have_header("sys/cdefs.h")
|
1999-08-13 01:37:52 -04:00
|
|
|
if have_header("ndbm.h") and have_func("dbm_open")
|
1999-08-24 04:21:56 -04:00
|
|
|
have_func("dbm_clearerr") unless gdbm
|
1998-01-16 07:13:05 -05:00
|
|
|
create_makefile("dbm")
|
|
|
|
end
|