aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in31
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 2065ce0cfa..4e616ee2b9 100644
--- a/configure.in
+++ b/configure.in
@@ -187,6 +187,33 @@ AC_SUBST(THREADS_LIBS)
AC_SUBST(THREADS_CFLAGS)
dnl **************************************************
+dnl * File locking
+dnl **************************************************
+
+AC_ARG_ENABLE(dot-locking,
+[ --enable-dot-locking=[yes/no] Enable support for locking mail files with dot locking],,enable_dot_locking=yes)
+if test "x$enable_dot_locking" = "xyes"; then
+ AC_DEFINE(USE_DOT)
+ msg_dot=Yes
+else
+ msg_dot=No
+fi
+
+AC_ARG_ENABLE(file-locking,
+[ --enable-file-locking=[fcntl/flock/no] Enable support for locking mail files with file locking],,enable_file_locking=fcntl)
+if test "x$enable_file_locking" = "xfcntl"; then
+ AC_DEFINE(USE_FCNTL)
+ msg_file=fcntl
+else
+ if test "x$enable_file_locking" = "xflock"; then
+ AC_DEFINE(USE_FLOCK)
+ msg_file=flock
+ else
+ msg_file=No
+ fi
+fi
+
+dnl **************************************************
dnl * Print check
dnl **************************************************
AC_MSG_CHECKING(for GnomePrint libraries version either 0.20 or later)
@@ -710,6 +737,8 @@ echo "
LDAP support: $msg_ldap
Pilot conduits: $msg_pilot
Kerberos 4/5: $msg_krb4/$msg_krb5
- Use movemail: $with_movemail
+ Use movemail: $with_movemail
+ Dot Locking: $msg_dot
+ File Locking: $msg_file
Crypto support: $msg_crypto
"