1 diff -ur ocaml-3.07beta2/configure ocaml-3.07beta2-/configure
2 --- ocaml-3.07beta2/configure 2003-08-20 17:10:58.000000000 +0200
3 +++ ocaml-3.07beta2-/configure 2003-08-26 11:12:29.000000000 +0200
4 @@ -1225,51 +1225,12 @@
6 # See if we can compile the dbm library
8 -dbm_include="not found"
12 -for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do
13 - if test -f $dir/ndbm.h; then
15 - if sh ./hasgot dbm_open; then
17 - elif sh ./hasgot -lndbm dbm_open; then
19 - elif sh ./hasgot -ldb1 dbm_open; then
21 - elif sh ./hasgot -lgdbm dbm_open; then
23 - elif sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then
24 - dbm_link="-lgdbm_compat -lgdbm"
28 - if test -f $dir/gdbm-ndbm.h; then
31 - if sh ./hasgot -lgdbm_compat -lgdbm dbm_open; then
32 - dbm_link="-lgdbm_compat -lgdbm"
37 -if test "$dbm_include" = "not found" || test "$dbm_link" = "not found"; then
38 - echo "NDBM not found, the \"dbm\" library will not be supported."
40 - echo "NDBM found (in $dbm_include)"
41 - if test "$dbm_include" = "/usr/include"; then
44 - dbm_include="-I$dbm_include"
46 - echo "DBM_INCLUDES=$dbm_include" >> Makefile
47 - echo "DBM_LINK=$dbm_link" >> Makefile
48 - if test "$use_gdbm_ndbm" = "yes"; then
49 - echo "#define DBM_USES_GDBM_NDBM" >> s.h
51 - otherlibraries="$otherlibraries dbm"
55 +echo "DBM_INCLUDES=$dbm_include" >> Makefile
56 +echo "DBM_LINK=$dbm_link" >> Makefile
57 +otherlibraries="$otherlibraries dbm"
61 diff -ur ocaml-3.07beta2/otherlibs/dbm/cldbm.c ocaml-3.07beta2-/otherlibs/dbm/cldbm.c
62 --- ocaml-3.07beta2/otherlibs/dbm/cldbm.c 2003-07-08 15:50:31.000000000 +0200
63 +++ ocaml-3.07beta2-/otherlibs/dbm/cldbm.c 2003-08-26 11:11:19.000000000 +0200
65 #ifdef DBM_USES_GDBM_NDBM
66 #include <gdbm-ndbm.h>
69 +#define DB_DBM_HSEARCH 1
73 /* Quite close to sys_open_flags, but we need RDWR */