[dovecot-cvs] dovecot configure.in,1.147,1.148

cras at procontrol.fi cras at procontrol.fi
Sun Aug 24 16:43:55 EEST 2003


Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv29796

Modified Files:
	configure.in 
Log Message:
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
is now implemented for Linux dnotify.



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- configure.in	24 Aug 2003 06:49:55 -0000	1.147
+++ configure.in	24 Aug 2003 12:43:53 -0000	1.148
@@ -225,6 +225,21 @@
 	AC_DEFINE(IOLOOP_SELECT,, Implement I/O loop with select())
 ])
 
+dnl * dnotify?
+AC_TRY_COMPILE([
+  #define _GNU_SOURCE
+  #include <fcntl.h>
+  #include <signal.h>
+  #include <unistd.h>
+], [
+  fcntl(0, F_SETSIG, SIGRTMIN);
+  fcntl(0, F_NOTIFY, DN_CREATE | DN_DELETE | DN_RENAME | DN_MULTISHOT);
+], [
+  AC_DEFINE(IOLOOP_NOTIFY_DNOTIFY,, Use Linux dnotify)
+], [
+  AC_DEFINE(IOLOOP_NOTIFY_NONE,, No special notify support)
+])
+
 dnl * OS specific options
 case "$host_os" in
 	hpux*)



More information about the dovecot-cvs mailing list