summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2006-09-16 15:00:09 +0000
committerFlorian Westphal <fw@strlen.de>2006-09-16 15:00:09 +0000
commit147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06 (patch)
tree5120d7c0051065f9a08d346bedb0fa81e2f78c81 /configure.in
parentf6e729443e6f1ef72d5687828bfe2bb327d552ac (diff)
downloadngircd-147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06.tar.gz
ngircd-147de9dfa9aea84f7b7cd0eded7a0f07ba36ea06.zip
add support for the poll() interface
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in22
1 files changed, 21 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index ee45da37..2381916b 100644
--- a/configure.in
+++ b/configure.in
@@ -8,7 +8,7 @@
 # (at your option) any later version.
 # Please read the file COPYING, README and AUTHORS for more information.
 #
-# $Id: configure.in,v 1.121 2006/09/09 17:07:39 fw Exp $
+# $Id: configure.in,v 1.122 2006/09/16 15:00:09 fw Exp $
 #
 
 # -- Initialisation --
@@ -200,6 +200,25 @@ fi
 
 
 x_io_backend=select
+AC_ARG_WITH(poll,
+	[  --without-poll          disable poll support (autodetected by default)],
+	[	if test "$withval" != "no"; then
+			if test "$withval" != "yes"; then
+				CFLAGS="-I$withval/include $CFLAGS"
+				CPPFLAGS="-I$withval/include $CPPFLAGS"
+				LDFLAGS="-L$withval/lib $LDFLAGS"
+			fi
+			AC_CHECK_FUNCS(poll, x_io_backend=poll,
+				AC_MSG_ERROR([Can't enable poll support!])
+			)
+		fi
+	],
+	[
+		AC_CHECK_FUNCS(poll, x_io_backend=poll)
+	]
+)
+
+
 AC_ARG_WITH(epoll,
 	[  --without-epoll         disable epoll support (autodetected by default)],
 	[	if test "$withval" != "no"; then
@@ -218,6 +237,7 @@ AC_ARG_WITH(epoll,
 	]
 )
 
+
 AC_ARG_WITH(kqueue,
 	[  --without-kqueue        disable kqueue support (autodetected by default)],
 	[	if test "$withval" != "no"; then