mod_auth_dbm on some systems using glibc 2.2 (i.e. SuSE 7.1).
PR: 6929
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@88554
13f79535-47bb-0310-9956-
ffa450edef68
DBM_LIB="-ldbm"
elif ./helpers/TestCompile lib ndbm dbm_open; then
DBM_LIB="-lndbm"
+ if ./helpers/TestCompile lib db1 dbm_open; then
+ # Red Hat needs this; ndbm.h lives in db1
+ CFLAGS="$CFLAGS -I/usr/include/db1"
+ fi
elif ./helpers/TestCompile lib db1 dbm_open; then
- # For Red Hat 7
+ # For Red Hat 7, if not handled by the ndbm case above
DBM_LIB="-ldb1"
CFLAGS="$CFLAGS -I/usr/include/db1"
fi
#define dbm_open sdbm_open
#define dbm_fetch sdbm_fetch
#define dbm_close sdbm_close
-#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
- && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
-#include <db1/ndbm.h>
#else
#include <ndbm.h>
#endif
* so we also need to know the file extension
*/
#ifndef NO_DBM_REWRITEMAP
-#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
- && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
-#include <db1/ndbm.h>
-#else
#include <ndbm.h>
-#endif
#if defined(DBM_SUFFIX)
#define NDBM_FILE_SUFFIX DBM_SUFFIX
#elif defined(__FreeBSD__) || (defined(DB_LOCK) && defined(DB_SHMEM))