pike.git / src / modules / HTTPLoop / configure.in

version» Context lines:

pike.git/src/modules/HTTPLoop/configure.in:11:   AC_CHECK_LIB(net, __get_socket_descriptor)      AC_CHECK_HEADERS(poll.h sys/poll.h sys/socket.h netinet/in.h arpa/inet.h \    asm/unistd.h sys/uio.h sys/types.h winsock2.h ws2tcpip.h)      if test "$ac_cv_header_winsock2_h" = "yes"; then :; else    # Note: This header file interferes with winsock2.h.    AC_CHECK_HEADERS(winsock.h)   fi    - AC_CHECK_FUNCS(poll gmtime_r gmtime sendfile signal inet_ntoa inet_ntop) + AC_CHECK_FUNCS(poll gmtime_r gmtime sendfile inet_ntoa inet_ntop)      AC_SUBST(RANLIB)      #   # NOTE: The test for sendfile is a duplicate of the test in the files module.   # It should probably be moved to the main configure-script.   # Note also that the test in the files module is more complete than this one.   # /grubba 2000-03-26   #   if test "$ac_cv_func_sendfile" = "yes"; then    AC_MSG_CHECKING(if sendfile takes 4(Linux) or 7(FreeBSD) arguments)    AC_CACHE_VAL(pike_cv_freebsd_sendfile, [    AC_TRY_COMPILE([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #ifdef HAVE_SYS_SOCKET_H   #include <sys/socket.h>   #endif /* HAVE_SYS_SOCKET_H */   #ifdef HAVE_SYS_UIO_H   #include <sys/uio.h>   #endif /* HAVE_SYS_UIO_H */    ], [    return sendfile(0,0,0,0,(void *)0,(void *)0,0);    ], [    # Probably FreeBSD-style, but we need to check that