--- dsniff-2.3/configure.in.orig Sat Dec 2 23:16:50 2000 +++ dsniff-2.3/configure.in Mon Aug 26 10:58:36 2002 @@ -138,10 +138,33 @@ fi done if test "x$have_db" = "x"; then - if test -f /usr/include/db_185.h; then + if test -f /usr/include/db3/db_185.h -a \ + -f /usr/lib/libdb-3.2.a; then + AC_DEFINE(HAVE_DB_185_H) + DBINC="-I/usr/include/db3" + DBLIB="-ldb-3.2" + have_db=yes + elif test -f /usr/include/db3/db_185.h -a \ + -f /usr/lib/libdb-3.1.a; then + AC_DEFINE(HAVE_DB_185_H) + DBINC="-I/usr/include/db3" + DBLIB="-ldb-3.1" + have_db=yes + elif test -f /usr/include/db2/db_185.h; then + AC_DEFINE(HAVE_DB_185_H) + DBINC="-I/usr/include/db2" + DBLIB="-ldb2" + have_db=yes + elif test -f /usr/include/db_185.h; then AC_DEFINE(HAVE_DB_185_H) DBLIB="-ldb" have_db=yes + elif test -f /usr/include/db1/db.h -a \ + -f /usr/lib/libdb1.a; then + AC_DEFINE(HAVE_DB_H) + DBINC="-I/usr/include/db1" + DBLIB="-ldb1" + have_db=yes elif test -f /usr/include/db.h; then AC_DEFINE(HAVE_DB_H) have_db=yes