From 08baf4f8bc7623c41a9753c71aed9a4042196aac Mon Sep 17 00:00:00 2001 From: Glenn Burkhardt Date: Mon, 6 Oct 2003 20:11:39 +0000 Subject: [PATCH] db configuration fix for Debian; yet another location for ndbm. --- configure.in | 5 +++-- uip/slocal.c | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index c3fb81a..a5e891c 100644 --- a/configure.in +++ b/configure.in @@ -555,13 +555,14 @@ AC_CHECK_FUNC(dbm_open, , AC_CHECK_LIB(ndbm, dbm_open, , AC_CHECK_LIB(dbm, dbm_open, , AC_CHECK_LIB(db1, dbm_open, , - AC_CHECK_LIB(gdbm, dbm_open))))) + AC_CHECK_LIB(gdbm, dbm_open, , + AC_CHECK_LIB(db, __db_ndbm_open)))))) dnl ---------------- dnl CHECK FOR NDBM.H dnl ---------------- -AC_CHECK_HEADERS(db1/ndbm.h gdbm/ndbm.h, break, ) +AC_CHECK_HEADERS(db1/ndbm.h gdbm/ndbm.h db.h, break, ) dnl ---------------- dnl CHECK FOR HESIOD diff --git a/uip/slocal.c b/uip/slocal.c index 6bf3e15..bbf1850 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -55,9 +55,14 @@ extern int initgroups(char*, int); #ifdef HAVE_GDBM_NDBM_H #include #else +#if defined(HAVE_DB_H) && defined(HAVE_LIBDB) +#define DB_DBM_HSEARCH 1 +#include +#else #include #endif #endif +#endif #include -- 1.7.10.4