Changeset 1457

Show
Ignore:
Timestamp:
11/18/2006 05:06:25 PM (22 months ago)
Author:
jan
Message:

added check for aio_suspend and the lib providing it to configure

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1413 r1457  
    408408fi 
    409409 
    410 dnl Check for memcache 
     410dnl Check for libaio 
    411411AC_MSG_CHECKING(for libaio) 
    412412AC_ARG_WITH(linux-aio, AC_HELP_STRING([--with-linux-aio],[Async IO support for Linux via libaio]), 
     
    424424fi 
    425425  
     426 AC_SEARCH_LIBS(aio_suspend, rt, [ 
     427         AC_CHECK_HEADERS([aio.h],[ 
     428                 if test "$ac_cv_search_aio_suspend" != no; then 
     429                   test "$ac_cv_search_aio_suspend" = "none required" || POSIX_AIO_LIB="$ac_cv_search_aio_suspend -pthread" 
     430                 fi 
     431 
     432                 AC_DEFINE([HAVE_LIBRT], [1], [librt]) 
     433                 AC_DEFINE([HAVE_AIO_H], [1], [aio.h]) 
     434         ]) 
     435 ]) 
     436 AC_SUBST(POSIX_AIO_LIB) 
     437 
    426438save_LIBS=$LIBS 
    427439AC_SEARCH_LIBS(crypt,crypt,[ 
  • trunk/src/Makefile.am

    r1414 r1457  
    6666      network_solaris_sendfilev.c network_openssl.c \ 
    6767      network_linux_aio.c \ 
     68      network_posix_aio.c \ 
    6869      splaytree.c \ 
    6970      http_resp.c http_resp_parser.c \ 
     
    305306 
    306307lighttpd_SOURCES = $(src) 
    307 lighttpd_LDADD = $(PCRE_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) $(common_libadd) $(SSL_LIB) $(FAM_LIBS) $(AIO_LIB) 
     308lighttpd_LDADD = $(PCRE_LIB) $(DL_LIB) $(SENDFILE_LIB) $(ATTR_LIB) $(common_libadd) $(SSL_LIB) $(FAM_LIBS) $(AIO_LIB) $(POSIX_AIO_LIB) 
    308309lighttpd_LDFLAGS = -export-dynamic 
    309310lighttpd_CCPFLAGS = $(FAM_CFLAGS)