pike.git
/
src
/
modules
/
_Stdio
/
configure.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/_Stdio/configure.in:7:
AC_HAVE_HEADERS(sys/types.h sys/socket.h arpa/inet.h sys/socketvar.h \ netinet/in.h poll.h sys/poll.h sys/uio.h sys/mman.h linux/mman.h sys/time.h \ sys/param.h sys/mount.h ustat.h sys/statfs.h sys/statvfs.h sys/vfs.h \ sys/stream.h sys/protosw.h netdb.h sys/sysproto.h winsock2.h ws2tcpip.h \ direct.h sys/wait.h process.h sys/file.h net/netdb.h unistd.h sys/termios.h \ termios.h poll.h sys/poll.h sys/select.h sys/un.h netinet/tcp.h \ sys/sendfile.h sys/ioctl.h linux/if.h linux/magic.h sys/xattr.h libzfs.h \ AvailabilityMacros.h,,,[ /* Needed for <sys/socket.h> on FreeBSD 4.9. */
-
#ifdef HAVE_SYS_TYPES_H
+
#include <sys/types.h>
-
#endif
+
/* Needed for <sys/socketvar.h> on Solaris 10. */ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif /* Needed for <sys/mount.h> on OpenBSD */ #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif ])
pike.git/src/modules/_Stdio/configure.in:80:
#define WIN32 100 #define _WIN32_WINDOWS 0x05ff #define _WIN32_WINNT 0x05ff #define NTDDI_VERSION 0x05ffffff #define WIN32_LEAN_AND_MEAN #define _GNU_SOURCE #ifdef HAVE_WINSOCK2_H #include <winsock2.h> #endif
-
#ifdef HAVE_SYS_TYPES_H
+
#include <sys/types.h>
-
#endif
+
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif ], [ int val = IPPROTO_IPV6; ], [ pike_cv_have_IPPROTO_IPV6=yes ], [ pike_cv_have_IPPROTO_IPV6=no ])
pike.git/src/modules/_Stdio/configure.in:206:
if test "$pike_cv_struct_stat_atim" = "yes"; then AC_MSG_RESULT(yes) AC_DEFINE(HAVE_STRUCT_STAT_NSEC) else AC_MSG_RESULT(no) fi AC_MSG_CHECKING([if struct sockaddr_un has a sun_len member (BSD)]) AC_CACHE_VAL(pike_cv_struct_sockaddr_un_sun_len, [ 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 */ ], [ struct sockaddr_un addr; addr.sun_len = 10; ], [pike_cv_struct_sockaddr_un_sun_len=yes], [pike_cv_struct_sockaddr_un_sun_len=no]) ])
pike.git/src/modules/_Stdio/configure.in:230:
AC_MSG_RESULT(yes) AC_DEFINE(HAVE_STRUCT_SOCKADDR_UN_SUN_LEN) else AC_MSG_RESULT(no) fi if test "$ac_cv_func_sendfile" = "yes"; then AC_MSG_CHECKING(if sendfile takes 4(Linux) or 6(HP/UX or MacOS X) or 7(FreeBSD) arguments) AC_CACHE_VAL(pike_cv_sendfile_args, [ 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 # we indeed have a prototype... 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 */ ], [ /* This should fail on FreeBSD and HPUX. * If it succeeds, we do not have a prototype, * which would indicate Linux. */ return sendfile(0,0,(void *)0,0); ], [ pike_cv_sendfile_args=4 ], [ pike_cv_sendfile_args=7 ]) ], [ 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 */ ], [ /* Try HPUX */ return (int)sendfile(0,0,0,0,(void *)0,0); ], [ pike_cv_sendfile_args=6 ], [ pike_cv_sendfile_args=4 ])
pike.git/src/modules/_Stdio/configure.in:338:
# FIXME: Detect whether HPUX: # sbsize_t sendfile(int from, int to, off_t off, bsize_t bytes, # struct iovec *hdtrl, int flags) # or MacOS X: # int sendfile(int to, int from, off_t off, off_t *bytes, # struct sf_hdtrl *hdtrl, int flags) AC_MSG_CHECKING(struct sf_hdtr) AC_CACHE_VAL(pike_cv_has_struct_sf_hdtr, [ AC_TRY_LINK([
-
#ifdef HAVE_SYS_TYPES_H
+
#include <sys/types.h>
-
#endif
+
#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif #ifdef HAVE_SYS_UIO_H #include <sys/uio.h> #endif ], [ struct sf_hdtr foo; ], [ pike_cv_has_struct_sf_hdtr=yes
pike.git/src/modules/_Stdio/configure.in:720:
#ifndef POSIX_SOURCE #define POSIX_SOURCE #endif #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif #ifdef HAVE_SYS_SYSPROTO_H #include <sys/sysproto.h> #endif
-
#ifdef HAVE_SYS_TYPES_H
+
#include <sys/types.h>
-
#endif
+
#include <sys/stat.h> #ifdef HAVE_SYS_VFS_H #include <sys/vfs.h> #endif #ifdef HAVE_SYS_STATFS_H #include <sys/statfs.h> #endif #ifdef HAVE_SYS_MOUNT_H #include <sys/mount.h> #endif