diff -Nur inn-2.4.1.orig/configure.in inn-2.4.1/configure.in --- inn-2.4.1.orig/configure.in 2004-09-07 14:53:23.800246638 +0200 +++ inn-2.4.1/configure.in 2004-09-07 14:55:04.045893609 +0200 @@ -375,20 +375,20 @@ done fi if test x"$BERKELEY_DB_DIR" = xyes ; then - for v in db41 db4 db3 db2 ; do + for v in 4.2 4.1 4 3 2 ; do - if test -d "/usr/local/include/$v" ; then + if test -d "/usr/local/include/db$v" ; then BERKELEY_DB_LDFLAGS="-L/usr/local/lib" - BERKELEY_DB_CFLAGS="-I/usr/local/include/$v" - BERKELEY_DB_LIB="-l$v" + BERKELEY_DB_CFLAGS="-I/usr/local/include/db$v" + BERKELEY_DB_LIB="-ldb-$v" AC_MSG_RESULT(FreeBSD locations) break fi done if test x"$BERKELEY_DB_LIB" = x ; then - for v in db41 db4 db3 db2 ; do + for v in 4.2 4.1 4 3 2 ; do - if test -d "/usr/include/$v" ; then + if test -d "/usr/include/db$v" ; then - BERKELEY_DB_CFLAGS="-I/usr/include/$v" - BERKELEY_DB_LIB="-l$v" + BERKELEY_DB_CFLAGS="-I/usr/include/db$v" + BERKELEY_DB_LIB="-ldb-$v" AC_MSG_RESULT(Linux locations) break fi