summaryrefslogtreecommitdiff
path: root/ext/dbm/extconf.rb
blob: c75412e680d787c36133a77397e116ff26f84001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'mkmf'
$LDFLAGS = "-L/usr/local/lib"
if dir = with_config("dbm-include")
  $CFLAGS = "-I#{dir}"
end
have_library("gdbm", "dbm_open") 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")
  create_makefile("dbm")
end