]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2521. [bug] Improve epoll cross compilation support. [RT #19047]
authorMark Andrews <marka@isc.org>
Mon, 22 Dec 2008 04:16:37 +0000 (04:16 +0000)
committerMark Andrews <marka@isc.org>
Mon, 22 Dec 2008 04:16:37 +0000 (04:16 +0000)
CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index 65ad9732ae54e7380d70d41c964ef2d35e00077c..5c99be97c22a55229385237391a83d48e0b70ba8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2521.  [bug]           Improve epoll cross compilation support. [RT #19047]
+
 2520.  [bug]           Update xml statistics version number to 2.0 as change
                        #2388 made the schema incompatible to the previous
                        version. [RT #19080]
index a16f81522ee0e31c15e5dc1817f3db4ada7c5fab..81ba229e10de8d127494bf00bd0aa7483c24dc41 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.461 $)
+AC_REVISION($Revision: 1.462 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.59)
@@ -367,10 +367,10 @@ AC_SUBST(ISC_PLATFORM_HAVEKQUEUE)
 # so we need to try running the code, not just test its existence.
 #
 AC_ARG_ENABLE(epoll,
-       [  --enable-epoll          use Linux epoll when available [[default=yes]]],
-             want_epoll="$enableval",  want_epoll="yes")
+[  --enable-epoll          use Linux epoll when available [[default=auto]]],
+             want_epoll="$enableval",  want_epoll="auto")
 case $want_epoll in
-yes)
+auto)
        AC_MSG_CHECKING(epoll support)
        AC_TRY_RUN([
 #include <sys/epoll.h>
@@ -385,6 +385,9 @@ int main() {
        [AC_MSG_RESULT(no)
        ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"])
        ;;
+yes)
+       ISC_PLATFORM_HAVEEPOLL="#define ISC_PLATFORM_HAVEEPOLL 1"
+       ;;
 *)
        ISC_PLATFORM_HAVEEPOLL="#undef ISC_PLATFORM_HAVEEPOLL"
        ;;