From: Martin Kraemer Date: Mon, 20 Aug 2001 07:00:23 +0000 (+0000) Subject: On modern systems (e.g., FreeBSD), the db* functions reside in libc X-Git-Tag: 2.0.25~263 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96c5f632ba04f4919e3ac4e1c335668dc3dd44bc;p=apache On modern systems (e.g., FreeBSD), the db* functions reside in libc rather than in libdb. Also, be more precise in telling what is actually checked for (we are NOT testing for main(), but we are testing for dbopen(), right?). Without the first fix, configuration would fail completely for FreeBSD git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90391 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/config.m4 b/modules/aaa/config.m4 index 2126f4110e..a1f92aa754 100644 --- a/modules/aaa/config.m4 +++ b/modules/aaa/config.m4 @@ -11,7 +11,10 @@ APACHE_MODULE(auth_dbm, DBM-based access databases, , , most) APACHE_MODULE(auth_db, DB-based access databases, , , , [ AC_CHECK_HEADERS(db.h,,enable_auth_db=no) - AC_CHECK_LIB(db,main,,enable_auth_db=no) + AC_CHECK_LIB(c,dbopen,,enable_auth_db=yes) + if test x"$enable_auth_db" = x"no"; then + AC_CHECK_LIB(db,dbopen,,enable_auth_db=no) + fi ]) APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most, [