From: Glenn Burkhardt Date: Mon, 6 Oct 2003 20:11:39 +0000 (+0000) Subject: db configuration fix for Debian; yet another location for ndbm. X-Git-Tag: RELEASE_1_2~65 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=08baf4f8bc7623c41a9753c71aed9a4042196aac;p=mmh db configuration fix for Debian; yet another location for ndbm. --- 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