mirror of
https://github.com/znc/znc.git
synced 2026-07-05 09:21:31 +02:00
Use poll() instead of select() by default
ZNC now uses poll() unless it is disabled by ./configure --disable-poll. This should get rid of the limit to FD_SETSIZE sockets (~1024). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2153 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -648,6 +648,7 @@ enable_sasl
|
||||
enable_optimization
|
||||
enable_c_ares
|
||||
enable_run_from_source
|
||||
enable_poll
|
||||
with_module_prefix
|
||||
with_module_data_prefix
|
||||
enable_tcl
|
||||
@@ -1303,6 +1304,7 @@ Optional Features:
|
||||
--disable-c-ares disable c-ares usage
|
||||
--enable-run-from-source
|
||||
znc will be runnable without installation
|
||||
--disable-poll use select() instead of poll()
|
||||
--enable-tcl enable modtcl
|
||||
|
||||
Optional Packages:
|
||||
@@ -2960,6 +2962,13 @@ else
|
||||
RUNFROMSOURCE="no"
|
||||
fi
|
||||
|
||||
# Check whether --enable-poll was given.
|
||||
if test "${enable_poll+set}" = set; then :
|
||||
enableval=$enable_poll; POLL="$enableval"
|
||||
else
|
||||
POLL="yes"
|
||||
fi
|
||||
|
||||
|
||||
if test "$DEBUG" != "no"; then
|
||||
appendCXX -ggdb -D_DEBUG
|
||||
@@ -2979,6 +2988,10 @@ if test "x$GXX" = "xyes"; then
|
||||
appendCXX -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow
|
||||
fi
|
||||
|
||||
if test "$POLL" = "yes"; then
|
||||
appendCXX -DCSOCK_USE_POLL
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
|
||||
$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
|
||||
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
|
||||
|
||||
@@ -122,6 +122,10 @@ AC_ARG_ENABLE( [run-from-source],
|
||||
fi
|
||||
RUNFROMSOURCE="$enableval"],
|
||||
[RUNFROMSOURCE="no"])
|
||||
AC_ARG_ENABLE( [poll],
|
||||
AS_HELP_STRING([--disable-poll], [use select() instead of poll()]),
|
||||
[POLL="$enableval"],
|
||||
[POLL="yes"])
|
||||
|
||||
if test "$DEBUG" != "no"; then
|
||||
appendCXX -ggdb -D_DEBUG
|
||||
@@ -141,6 +145,10 @@ if test "x$GXX" = "xyes"; then
|
||||
appendCXX -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow
|
||||
fi
|
||||
|
||||
if test "$POLL" = "yes"; then
|
||||
appendCXX -DCSOCK_USE_POLL
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB( gnugetopt, getopt_long,)
|
||||
AC_CHECK_FUNC([lstat], [appendCXX -DHAVE_LSTAT])
|
||||
PKG_PROG_PKG_CONFIG()
|
||||
|
||||
Reference in New Issue
Block a user