diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2011-05-05 20:06:11 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2011-05-05 20:06:11 +0000 |
commit | 0d944e0d0f2d02f3fdf37b05e12251e42c11f6d8 (patch) | |
tree | d56b52c788e979821334717caef28ed19a779ed9 | |
parent | 9bb0d4df8c9bafd71cd90c15d483a2d648adcf5f (diff) | |
download | lighttpd-0d944e0d0f2d02f3fdf37b05e12251e42c11f6d8.tar.gz |
Enable linux-aio-sendfile for testing in autotools too
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2792 152afb58-edef-0310-8abb-c4023f1b3aa9
-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) |