X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.in;h=c4b8cd897d7e9b53f04e822061208acd5f73d22c;hb=5fd902c1cb309c93e174241e84bd0346f0adadb0;hp=4149de9db44dcebfde3d953b3ce9e4fc354bf1c1;hpb=937a1d5deef2727cdf22ef3afda61fe766d234df;p=mmh diff --git a/configure.in b/configure.in index 4149de9..c4b8cd8 100644 --- a/configure.in +++ b/configure.in @@ -139,6 +139,28 @@ fi AC_SUBST(POPLIB)dnl AC_SUBST(POPSED)dnl +dnl What method of locking to use? +undefine([locking])dnl +AC_ARG_WITH(locking, +[ --with-locking=LOCKTYPE specify the file locking method]) + +if test x"$with_locking" = x"dot"; then + LOCKTYPE="dot" + AC_DEFINE(DOT_LOCKING)dnl +elif test x"$with_locking" = x"flock"; then + LOCKTYPE="flock" + AC_DEFINE(FLOCK_LOCKING)dnl +elif test x"$with_locking" = x"lockf"; then + LOCKTYPE="lockf" + AC_DEFINE(LOCKF_LOCKING)dnl +elif test x"$with_locking" = x"fcntl"; then + LOCKTYPE="fcntl" + AC_DEFINE(FCNTL_LOCKING)dnl +else + LOCKTYPE="dot" + AC_DEFINE(DOT_LOCKING)dnl +fi + dnl What method of posting should post use? undefine([mts])dnl AC_ARG_WITH(mts, @@ -828,6 +850,7 @@ config files install path : ${nmhsysconf2} man page install path : ${nmhman} backup prefix : ${backup_prefix} transport system : ${MTS} +file locking type : ${LOCKTYPE} default smtp servers : ${smtpservers} default editor : ${editorpath} default pager : ${pagerpath}