You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/02/22 04:07:55 UTC
[PATCH] libdb
(1.2b7 compiles and runs fine on linux).
I'm not 100% sure that all linuxes have this property, but RedHat requires
-ldb for either dbm or db support. In most cases when berkeley db lib is
installed it's available as -ldb... so here's a patch to Configure which
makes it include -ldb when mod_auth_db is included.
It also sets DBM_LIB="" on freebsd, since freebsd and bsdi have dbm compat
routines right in libc.
But this probably shouldn't go in b7 'cause it'll require testing on all
platforms to make sure it don't muck up.
Dean
*** Configure.dist Fri Feb 21 18:56:24 1997
--- Configure Fri Feb 21 19:02:12 1997
***************
*** 151,159 ****
PLAT=`./helpers/GuessOS`
! # Preset DBM_LIB. Can be overridden on a per-platform basis.
DBM_LIB="-ldbm"
#
# Look for ranlib. Do it early in case we want to override it below
--- 151,160 ----
PLAT=`./helpers/GuessOS`
! # Preset DBM_LIB, DB_LIB. Can be overridden on a per-platform basis.
DBM_LIB="-ldbm"
+ DB_LIB="-ldb"
#
# Look for ranlib. Do it early in case we want to override it below
***************
*** 259,264 ****
--- 260,266 ----
DEF_WANTHSREGEX=yes
OS='Linux'
CFLAGS="$CFLAGS -DLINUX"
+ DBM_LIB="-ldb"
;;
*-lynx-lynxos*)
OS='LynxOS'
***************
*** 283,288 ****
--- 285,291 ----
OS='FreeBSD/NetBSD'
LIBS="$LIBS -lcrypt"
DBM_LIB=""
+ DB_LIB=""
;;
*-openbsd*)
OS='OpenBSD'
***************
*** 508,513 ****
--- 511,523 ----
#
if grep mod_auth_dbm Makefile > /dev/null; then
LIBS="$LIBS $DBM_LIB"
+ fi
+
+ #
+ # Are they using db auth? If so, add DB library.
+ #
+ if grep 'mod_auth_db\.o' Makefile > /dev/null; then
+ LIBS="$LIBS $DB_LIB"
fi
#