[dovecot-cvs] dovecot configure.in,1.277.2.12,1.277.2.13
cras at dovecot.org
cras at dovecot.org
Sun Jun 18 04:34:43 EEST 2006
Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv7814
Modified Files:
Tag: branch_1_0
configure.in
Log Message:
Fixes to io notify detection. Patch by Marcus Rueckert
Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.277.2.12
retrieving revision 1.277.2.13
diff -u -d -r1.277.2.12 -r1.277.2.13
--- configure.in 18 Jun 2006 00:24:52 -0000 1.277.2.12
+++ configure.in 18 Jun 2006 01:34:41 -0000 1.277.2.13
@@ -422,6 +422,7 @@
have_notify=none
if test "$notify" = "" || test "$notify" = "inotify" ; then
+ AC_MSG_CHECKING([if we can use inotify])
dnl * inotify?
AC_TRY_RUN([
#define _GNU_SOURCE
@@ -458,28 +459,36 @@
have_notify=inotify
notify=inotify
AC_DEFINE(IOLOOP_NOTIFY_INOTIFY,, Use Linux inotify)
+ AC_MSG_RESULT("yes")
], [
+ AC_MSG_RESULT("no")
if test "$notify" = "inotify"; then
AC_MSG_WARN([inotify requested but not available])
+ notify=""
fi
])
fi
if test "$notify" = "" || test "$notify" = "kqueue"; then
+ AC_MSG_CHECKING([if we can use BSD kqueue() notify])
dnl * BSD kqueue() notify
if test "$ac_cv_func_kqueue" == yes && test "$ac_cv_func_kevent" == yes ; then
have_notify=kqueue
notify=kqueue
+ AC_MSG_RESULT("yes")
AC_DEFINE(IOLOOP_NOTIFY_KQUEUE,,
Use BSD kqueue directory changes notificaton)
else
+ AC_MSG_RESULT("no")
if test "$notfify" = "kqueue" ; then
AC_MSG_WARN([kqueue notify requested but kqueue() is not available])
+ notify=""
fi
fi
fi
if test "$notify" = "" || test "$notify" = "dnotify"; then
+ AC_MSG_CHECKING([if we can use dnotify])
dnl * dnotify?
AC_TRY_COMPILE([
#define _GNU_SOURCE
@@ -490,10 +499,12 @@
fcntl(0, F_SETSIG, SIGRTMIN);
fcntl(0, F_NOTIFY, DN_CREATE | DN_DELETE | DN_RENAME | DN_MULTISHOT);
], [
+ AC_MSG_RESULT("yes")
AC_DEFINE(IOLOOP_NOTIFY_DNOTIFY,, Use Linux dnotify)
have_notify=dnotify
notify=dnotify
], [
+ AC_MSG_RESULT("no")
if test "$notify" = "dnotify"; then
AC_MSG_WARN([dnotify requested but not available])
fi
More information about the dovecot-cvs
mailing list