Index: configure.ac
===================================================================
RCS file: /cvs/unreal/Attic/configure.ac,v
retrieving revision 1.1.2.14
diff -u -B -r1.1.2.14 configure.ac
--- configure.ac	19 Dec 2010 16:38:07 -0000	1.1.2.14
+++ configure.ac	20 Dec 2010 04:25:17 -0000
@@ -421,6 +421,11 @@
 AC_SUBST(STRTOUL)
 AC_SUBST(CRYPTOLIB)
 AC_SUBST(MODULEFLAGS)
+AC_ARG_WITH([poll], [AS_HELP_STRING([--with-poll], [Have the IRCd use poll() instead of select(). Experimental, unsupported feature.])],
+	[], [with_poll="no"])
+AS_IF([test "x$with_poll" = "xyes"],
+	[AC_CHECK_FUNCS([poll], [], [AC_MSG_ERROR([You requested I use poll() but I can't find that function in the C library.])])
+	AC_DEFINE([USE_POLL], [], [Use poll() instead of select(). Experimental, unsupported feature.])])
 AC_ARG_WITH(listen, [AS_HELP_STRING([--with-listen=backlog],[Specify the listen backlog value])],
 	[AC_DEFINE_UNQUOTED([LISTEN_SIZE], [$withval], [Set to the listen backlog size you want])],
 	[AC_DEFINE([LISTEN_SIZE], [5], [Set to the listen backlog size you want])])
