This commit is contained in:
whottgen
2004-09-29 20:25:33 +00:00
parent 9625f3b078
commit 6d68536b59
4 changed files with 320 additions and 301 deletions

View File

@ -30,19 +30,6 @@ AC_CHECK_LIB(pthread, pthread_create,
)
)
AC_CHECK_LIB([db], [__db_ndbm_open],
[ LIBS="$LIBS -ldb" ],
AC_CHECK_LIB([db], [__db_ndbm_open_4002],
[ LIBS="$LIBS -ldb" ],
AC_CHECK_LIB([db41], [__db_ndbm_open],
[ LIBS="$LIBS -ldb41" ],
AC_CHECK_LIB([db42], [__db_ndbm_open_4002],
[ LIBS="$LIBS -ldb42" ],
[ AC_MSG_ERROR([*** Berkeley DB not found]) ]
)
)
)
)
AC_CHECK_LIB([resolv], [inet_aton])
AC_CHECK_LIB([socket], [connect])
@ -84,7 +71,7 @@ AC_ARG_WITH(bdb-lib-dir,
yes)
;;
*)
LDFLAGS="-L$withval"
LDFLAGS="$LDFLAGS -L$withval"
;;
esac ]
)
@ -101,13 +88,12 @@ AC_ARG_WITH(bdb-inc-dir,
yes)
;;
*)
CPPFLAGS="-I$withval"
CPPFLAGS="$CPPFLAGS -I$withval"
;;
esac ]
)
ENABLE_VERIFY_CACHE=1
AC_ARG_ENABLE(verify-cache,
[AC_HELP_STRING(--enable-verify-cache, [
@ -117,6 +103,30 @@ AC_ARG_ENABLE(verify-cache,
if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
)
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
AC_CHECK_LIB([db], [__db_ndbm_open],
[ BDB_LIBS="-ldb" ],
AC_CHECK_LIB([db], [__db_ndbm_open_4002],
[ BDB_LIBS="-ldb" ],
AC_CHECK_LIB([db41], [__db_ndbm_open],
[ BDB_LIBS="-ldb41" ],
AC_CHECK_LIB([db42], [__db_ndbm_open_4002],
[ BDB_LIBS="-ldb42" ],
BDB_NOT_FOUND=1
)
)
)
)
fi
AC_SUBST(BDB_LIBS)
if test "x$BDB_NOT_FOUND" = "x1"; then
echo "*** no db/dbm found, disabling verify cache"
ENABLE_VERIFY_CACHE=0
fi
AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache])
verify_BUILD=