changes
This commit is contained in:
@ -8,50 +8,6 @@ AM_MAINTAINER_MODE
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
ENABLE_VERIFY_CACHE=1
|
||||
AC_ARG_ENABLE(verify-cache,
|
||||
[AC_HELP_STRING(--enable-verify-cache, [
|
||||
Enables the cache in the verify worker.
|
||||
Required a dbm implemenation.
|
||||
(default=yes)])],
|
||||
if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
|
||||
if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
|
||||
)
|
||||
AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache])
|
||||
|
||||
AC_ARG_WITH(bdb-lib-dir,
|
||||
[AC_HELP_STRING(--with-bdb-lib-dir, [
|
||||
Directory for Berkeley DB library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-lib-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
LDFLAGS="-L$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(bdb-inc-dir,
|
||||
[AC_HELP_STRING(--with-bdb-inc-dir, [
|
||||
Directory for Berkeley include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-inc-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="-I$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -114,10 +70,87 @@ AC_FUNC_SELECT_ARGTYPES
|
||||
AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr strtol dlopen dlsym dlerror], [],
|
||||
[AC_MSG_ERROR([*** missing function, we can't go without it])])
|
||||
|
||||
dnl verify_BUILD=libverify_worker.la
|
||||
verify_BUILD=
|
||||
AC_SUBST(verify_BUILD)
|
||||
|
||||
AC_CONFIG_FILES([Makefile libsmmapdfw/Makefile smmapd/Makefile test/Makefile verify/Makefile cyrus/Makefile])
|
||||
|
||||
AC_ARG_WITH(bdb-lib-dir,
|
||||
[AC_HELP_STRING(--with-bdb-lib-dir, [
|
||||
Directory for Berkeley DB library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-lib-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
LDFLAGS="-L$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(bdb-inc-dir,
|
||||
[AC_HELP_STRING(--with-bdb-inc-dir, [
|
||||
Directory for Berkeley include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-inc-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="-I$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
|
||||
|
||||
ENABLE_VERIFY_CACHE=1
|
||||
AC_ARG_ENABLE(verify-cache,
|
||||
[AC_HELP_STRING(--enable-verify-cache, [
|
||||
Enables the cache in the verify worker.
|
||||
Required a dbm implemenation.
|
||||
(default=yes)])],
|
||||
if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
|
||||
if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
|
||||
)
|
||||
AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache])
|
||||
|
||||
verify_BUILD=
|
||||
AC_ARG_ENABLE(verify-worker,
|
||||
[AC_HELP_STRING(--enable-verify-worker, [
|
||||
Enables the sender address verification worker.
|
||||
(default=no)])],
|
||||
verify_BUILD=libverify_worker.la
|
||||
)
|
||||
|
||||
test_BUILD=
|
||||
AC_ARG_ENABLE(test-worker,
|
||||
[AC_HELP_STRING(--enable-test-worker, [
|
||||
Enables the test worker (just an example).
|
||||
(default=no)])],
|
||||
test_BUILD=libtest_workers.la
|
||||
)
|
||||
|
||||
cyrus_BUILD=
|
||||
AC_ARG_ENABLE(cyrus-worker,
|
||||
[AC_HELP_STRING(--enable-cyrus-worker, [
|
||||
Enables the cyrus mailbox checker.
|
||||
(default=no)])],
|
||||
cyrus_BUILD=libcyrus_worker.la
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
AC_SUBST(verify_BUILD)
|
||||
AC_SUBST(test_BUILD)
|
||||
AC_SUBST(cyrus_BUILD)
|
||||
|
||||
|
||||
AC_CONFIG_FILES([Makefile libsmmapdfw/Makefile smmapd/Makefile test_worker/Makefile verify_worker/Makefile cyrus_worker/Makefile])
|
||||
|
||||
AC_OUTPUT
|
||||
|
Reference in New Issue
Block a user