X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4823929d7c53e0cb167884ef35c34db34fef2729..448debd081b8bfad38ba43b21bea34a9c0eb49c2:/m4/locking.m4?ds=sidebyside diff --git a/m4/locking.m4 b/m4/locking.m4 index e013790a..2895d882 100644 --- a/m4/locking.m4 +++ b/m4/locking.m4 @@ -33,11 +33,19 @@ AS_CASE([$with_locking], [AC_MSG_ERROR([--without-locking not supported])], [AC_MSG_ERROR([Unknown locking type $with_locking])]) -AC_DEFINE_UNQUOTED([DEFAULT_LOCKING], [$with_locking], +AC_DEFINE_UNQUOTED([DEFAULT_LOCKING], ["$with_locking"], [The default lock type for the mail spool file]) +AC_SUBST([default_locking], [$with_locking]) AC_MSG_RESULT([$with_locking]) +supported_locks="fcntl dot" +AS_IF([test x"$ac_cv_func_flock" = x"yes"], + [supported_locks="$supported_locks flock"]) +AS_IF([test x"$ac_cv_func_lockf" = x"yes"], + [supported_locks="$supported_locks lockf"]) +AC_SUBST([supported_locks]) + dnl Should we use a locking directory? AC_ARG_ENABLE([lockdir], [AS_HELP_STRING([--enable-lockdir=dir], [Store dot-lock files in "dir"])], [