AC_MSG_CHECKING(availability of TCP_CORK)
AC_EGREP_CPP(SUCCESS,
[
#include <netinet/tcp.h>
#ifdef TCP_CORK
SUCCESS
#endif
],[
AC_MSG_RESULT(present)
AC_DEFINE([HAVE_TCPCORK], [], [TCP_CORK option is available])
AC_MSG_CHECKING(whether to use TCP_CORK)
AC_ARG_ENABLE(tcpcork,
AC_HELP_STRING([--disable-tcpcork],
[disable use of TCP_CORK buffering on Linux]),
[
if test "$enableval" = "no"; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)
AC_DEFINE([USE_TCPCORK], [],
[Use TCP_CORK buffering on Linux])
fi
],
[
AC_MSG_RESULT(yes)
AC_DEFINE([USE_TCPCORK], [],
[Use TCP_CORK buffering on Linux])
])
],[
AC_MSG_RESULT(not present)
])
|
#AC_MSG_CHECKING(availability of TCP_CORK)
#AC_EGREP_CPP(SUCCESS,
# [
# #include <netinet/tcp.h>
# #ifdef TCP_CORK
# SUCCESS
# #endif
# ],[
# AC_MSG_RESULT(present)
# AC_DEFINE([HAVE_TCPCORK], [], [TCP_CORK option is available])
#
# AC_MSG_CHECKING(whether to use TCP_CORK)
# AC_ARG_ENABLE(tcpcork,
# AC_HELP_STRING([--disable-tcpcork],
# [disable use of TCP_CORK buffering on Linux]),
# [
# if test "$enableval" = "no"; then
# AC_MSG_RESULT(no)
# else
# AC_MSG_RESULT(yes)
# AC_DEFINE([USE_TCPCORK], [],
# [Use TCP_CORK buffering on Linux])
# fi
# ],
# [
# AC_MSG_RESULT(yes)
# AC_DEFINE([USE_TCPCORK], [],
# [Use TCP_CORK buffering on Linux])
# ])
# ],[
# AC_MSG_RESULT(not present)
# ])
|
# Limit response concurrency?
AC_MSG_CHECKING(whether to limit response concurrency)
AC_ARG_ENABLE(response-concurrency,
AC_HELP_STRING([--enable-response-concurrency=CONC],
[limit to CONC simultaneous responses]),
[
if test "$enableval" = "no"; then
AC_MSG_RESULT(unlimited)
else
if test "$enableval" = "yes"; then
AC_MSG_RESULT(unlimited)
else
AC_MSG_RESULT(limit to $enableval)
AC_DEFINE_UNQUOTED([RESPONSE_CONCURRENCY],
$enableval,
[Maximum number of concurrent responses])
fi
|
# Enable epoll-based pth code (highly experimental)
AC_MSG_CHECKING(whether to build Pth on top of epoll (very experimental))
AC_ARG_WITH(epoll,
AC_HELP_STRING([--with-epoll],
[build Pth on top of epoll (very experimental)]),
[
if test "$withval" = "yes"; then
AC_MSG_RESULT(yes)
EPOLL_FLAG="--enable-epoll"
else
AC_MSG_RESULT(no)
EPOLL_FLAG=""
fi
],
[
AC_MSG_RESULT(no)
EPOLL_FLAG=""
|