AC_INIT(CoW Webserver, 0.4.0, roper@cs.ucdavis.edu, cow)
|
AC_INIT(CoW Webserver, 0.4.2, roper@cs.ucdavis.edu, cow)
|
|
# Check for TCP_CORK
#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)
# ])
## Use sendfile() support?
#AC_MSG_CHECKING(whether to use sendfile)
#AC_ARG_ENABLE(sendfile,
# AC_HELP_STRING([--disable-sendfile],
# [disable sendfile() support, use writev() instead]),
#[
# if test "$enableval" = "no"; then
# AC_MSG_RESULT(no)
# else
# AC_MSG_RESULT(yes)
# AC_DEFINE([USE_SENDFILE], [], [Send responses with sendfile()])
# fi
#],
#[
# AC_MSG_RESULT(yes)
# AC_DEFINE([USE_SENDFILE], [], [Send responses with sendfile()])
#])
# Enable HTTP PUT requests?
AC_MSG_CHECKING(whether to enable PUT requests)
AC_ARG_ENABLE(put,
AC_HELP_STRING([--enable-put],
[Enable HTTP PUT requests]),
[
if test "$enableval" = "no"; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)
AC_DEFINE([ENABLE_PUT], [], [Enable PUT requests])
fi
],
[
AC_MSG_RESULT(no)
])
# Enable 503 (too busy) HTTP responses?
AC_MSG_CHECKING(whether to send 503 responses when overloaded)
AC_ARG_ENABLE(put,
AC_HELP_STRING([--enable-503],
[Enable HTTP 503 responses when overloaded]),
[
if test "$enableval" = "no"; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)
AC_DEFINE([ENABLE_503], [], [Enable 503 HTTP responses])
fi
],
[
AC_MSG_RESULT(no)
])
# Disable Keep-alive support?
AC_MSG_CHECKING(whether to enable keep-alive connections)
AC_ARG_ENABLE(keepalive,
AC_HELP_STRING([--disable-keepalive],
[disable keep-alive connections]),
[
if test "$enableval" = "no"; then
AC_MSG_RESULT(no)
AC_DEFINE([DISABLE_KEEPALIVE], [],
[Disable persistent connections])
else
AC_MSG_RESULT(yes)
fi
],
[
AC_MSG_RESULT(yes)
])
# 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=""
])
# Enable dmalloc?
AC_MSG_CHECKING(whether to link with the Dmalloc memory debugger/profiler)
AC_ARG_WITH(dmalloc,
AC_HELP_STRING([--with-dmalloc],
[link with the Dmalloc memory debugger/profiler]),
[
if test "$withval" = "yes"; then
AC_MSG_RESULT(trying)
AC_CHECK_LIB(dmalloc, dmalloc_malloc)
else
AC_MSG_RESULT(no)
fi
],
[
AC_MSG_RESULT(no)
])
|