diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | configure.ac | 15 |
2 files changed, 16 insertions, 0 deletions
@@ -169,6 +169,7 @@ NEWS * more strict check for server.stat-cache-engine * Read hostname from absolute https:// uris in the request line (patch by Adrian Schröter <adrian@suse.de>) * [ssl/md5] prefix our own md5 implementation with li_ so it doesn't conflict with the openssl one (fixes #2269) + * Enable linux-aio-sendfile for testing in autotools too - 1.5.0-r19.. - * -F option added for spawn-fcgi diff --git a/configure.ac b/configure.ac index dd5e88e2..751c32cf 100644 --- a/configure.ac +++ b/configure.ac @@ -551,6 +551,21 @@ if test x$ipv6 = xtrue; then fi fi +dnl Check for libaio +AC_MSG_CHECKING(for libaio) +AC_ARG_WITH(libaio, AC_HELP_STRING([--with-libaio],[enable libaio network write handlers]), +[WITH_LIBAIO=$withval],[WITH_LIBAIO=no]) +AC_MSG_RESULT([$WITH_LIBAIO]) +if test "$WITH_LIBAIO" != "no"; then + AC_CHECK_LIB(aio, io_getevents, [ + AC_CHECK_HEADERS([libaio.h],[ + AIO_LIB=-laio + AC_DEFINE([HAVE_LIBAIO], [1], [libaio]) + AC_DEFINE([HAVE_LIBAIO_H], [1], [libaio.h]) + ]) + ]) + AC_SUBST(AIO_LIB) +fi AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes) |