[dovecot-cvs] dovecot configure.in,1.293,1.294

cras at dovecot.org cras at dovecot.org
Sun Jul 2 18:30:15 EEST 2006


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv12961

Modified Files:
	configure.in 
Log Message:
Don't use epoll/kqueue by default unless --with-ioloop=auto is given.
They're not necessarily as stable.



Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.293
retrieving revision 1.294
diff -u -d -r1.293 -r1.294
--- configure.in	27 Jun 2006 07:20:06 -0000	1.293
+++ configure.in	2 Jul 2006 15:30:12 -0000	1.294
@@ -54,9 +54,9 @@
 
 AC_ARG_WITH(ioloop,
 [  --with-ioloop=IOLOOP    Specify the I/O loop method to use
-                          (epoll, kqueue, poll; default is poll)],
+                          (epoll, kqueue, poll; auto for best; default is poll)],
 	ioloop=$withval,
-	ioloop=)
+	ioloop=poll)
 
 AC_ARG_WITH(notify,
 [  --with-notify=IOLOOP    Specify the file system notification method to use
@@ -372,7 +372,7 @@
 dnl * I/O loop function
 have_ioloop=no
 
-if test "$ioloop" = "" || test "$ioloop" = "epoll"; then
+if test "$ioloop" = "auto" || test "$ioloop" = "epoll"; then
   AC_TRY_RUN([
     #include <sys/epoll.h>
 
@@ -385,23 +385,23 @@
     have_ioloop=yes
     ioloop=epoll
   ], [
-    if test "$ioloop" != "" ; then
-      AC_MSG_WARN([epoll ioloop requested but epoll_create() is not available])
+    if test "$ioloop" = "epoll" ; then
+      AC_MSG_ERROR([epoll ioloop requested but epoll_create() is not available])
     fi
   ])
 fi
 
-if test "$ioloop" = "" || test "$ioloop" = "kqueue"; then
+if test "$ioloop" = "auto" || test "$ioloop" = "kqueue"; then
     if test "$ac_cv_func_kqueue" = yes && test "$ac_cv_func_kevent" = yes; then
       AC_DEFINE(IOLOOP_KQUEUE,, [Implement I/O loop with BSD kqueue()])
       ioloop=kqueue
       have_ioloop=yes
     elif test "$ioloop" = "kqueue"; then
-      AC_MSG_WARN([kqueue ioloop requested but kqueue() is not available])
+      AC_MSG_ERROR([kqueue ioloop requested but kqueue() is not available])
     fi
 fi
 
-if test "$ioloop" = "" || test "$ioloop" = "poll"; then
+if test "$ioloop" = "auto" || test "$ioloop" = "poll"; then
   AC_CHECK_FUNC(poll, [
     AC_DEFINE(IOLOOP_POLL,, Implement I/O loop with poll())
     ioloop=poll
@@ -458,7 +458,7 @@
   ], [
     AC_MSG_RESULT("no")
     if test "$notify" = "inotify"; then
-      AC_MSG_WARN([inotify requested but not available])
+      AC_MSG_ERROR([inotify requested but not available])
       notify=""
     fi
   ])
@@ -476,7 +476,7 @@
   else 
     AC_MSG_RESULT("no")
     if test "$notfify" = "kqueue" ; then
-      AC_MSG_WARN([kqueue notify requested but kqueue() is not available])
+      AC_MSG_ERROR([kqueue notify requested but kqueue() is not available])
       notify=""
     fi
   fi
@@ -501,7 +501,7 @@
   ], [
     AC_MSG_RESULT("no")
     if test "$notify" = "dnotify"; then
-      AC_MSG_WARN([dnotify requested but not available])
+      AC_MSG_ERROR([dnotify requested but not available])
     fi
   ])
 fi



More information about the dovecot-cvs mailing list