Lines 18-41
Link Here
|
18 |
|
18 |
|
19 |
if test "$enable_berkeley_db" != no; then |
19 |
if test "$enable_berkeley_db" != no; then |
20 |
|
20 |
|
21 |
AC_CHECK_HEADERS([ \ |
21 |
AC_CHECK_HEADERS([db.h]) |
22 |
db4/db.h \ |
|
|
23 |
db3/db.h \ |
24 |
db.h \ |
25 |
db_185.h \ |
26 |
]) |
27 |
|
22 |
|
28 |
dnl db_create is used by db3 and db4 |
23 |
dnl db_create is used by db3 and db4 |
29 |
|
24 |
|
30 |
AC_FIND_FUNC_NO_LIBS(db_create, db4 db3 db, [ |
25 |
AC_FIND_FUNC_NO_LIBS(db_create, db, [ |
31 |
#include <stdio.h> |
26 |
#include <stdio.h> |
32 |
#ifdef HAVE_DB4_DB_H |
|
|
33 |
#include <db4/db.h> |
34 |
#elif defined(HAVE_DB3_DB_H) |
35 |
#include <db3/db.h> |
36 |
#else |
37 |
#include <db.h> |
27 |
#include <db.h> |
38 |
#endif |
|
|
39 |
],[NULL, NULL, 0]) |
28 |
],[NULL, NULL, 0]) |
40 |
|
29 |
|
41 |
if test "$ac_cv_func_db_create" = "yes"; then |
30 |
if test "$ac_cv_func_db_create" = "yes"; then |
Lines 50-66
Link Here
|
50 |
|
39 |
|
51 |
dnl dbopen is used by db1/db2 |
40 |
dnl dbopen is used by db1/db2 |
52 |
|
41 |
|
53 |
AC_FIND_FUNC_NO_LIBS(dbopen, db2 db, [ |
42 |
AC_FIND_FUNC_NO_LIBS(dbopen, db, [ |
54 |
#include <stdio.h> |
43 |
#include <stdio.h> |
55 |
#if defined(HAVE_DB2_DB_H) |
|
|
56 |
#include <db2/db.h> |
57 |
#elif defined(HAVE_DB_185_H) |
58 |
#include <db_185.h> |
59 |
#elif defined(HAVE_DB_H) |
60 |
#include <db.h> |
44 |
#include <db.h> |
61 |
#else |
|
|
62 |
#error no db.h |
63 |
#endif |
64 |
],[NULL, 0, 0, 0, NULL]) |
45 |
],[NULL, 0, 0, 0, NULL]) |
65 |
|
46 |
|
66 |
if test "$ac_cv_func_dbopen" = "yes"; then |
47 |
if test "$ac_cv_func_dbopen" = "yes"; then |