BDB4 from pkgsrc
Hi,
when installing BDB4 from [1]pkgsrc, include files end up in
.../include/db4/ while libraries go to .../lib/. The current configure
script needs the attached patch to detect this correctly.
Regards, Jukka
P.S.: I ignored correct indentation to make the patch more concise.
[1] http://www.pkgsrc.org/
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
diff -r e96bd1f85634 configure.ac
--- a/configure.ac Wed Apr 04 16:31:50 2007 -0700
+++ b/configure.ac Thu Apr 05 11:22:08 2007 +0200
@@ -874,8 +874,9 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--
for v in / $BDB_VERSIONS; do
if test -r "$d/include/$v/db.h"; then
BDB_INCLUDE_DIR="$d/include/$v"
- if test -d "$d/lib/$v"; then
- BDB_LIB_DIR="$d/lib/$v"
+ for bdblibdir in "$d/lib/$v" "$d/lib"; do
+ if test -d "$bdblibdir"; then
+ BDB_LIB_DIR="$bdblibdir"
for l in `echo $BDB_VERSIONS`; do
CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
@@ -893,6 +894,7 @@ AC_ARG_ENABLE(hcache, AC_HELP_STRING([--
done
test x$ac_cv_dbcreate = xyes && break
fi
+ done
fi
done
test x$BDB_LIB != x && break