Branch: Tag:

2003-04-30

2003-04-30 10:24:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added check for <ws2tcpip.h>.

Rev: src/configure.in:1.718

1: - AC_REVISION("$Id: configure.in,v 1.717 2003/04/26 15:35:40 agehall Exp $") + AC_REVISION("$Id: configure.in,v 1.718 2003/04/30 10:24:52 grubba Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2382:   AC_HEADER_TIME   AC_HEADER_STDC   AC_CHECK_HEADERS(sys/rusage.h time.h sys/time.h sys/types.h unistd.h stdlib.h \ - memory.h values.h string.h strings.h fcntl.h sys/filio.h sys/sockio.h crypt.h \ - locale.h sys/select.h net/socket.h sys/mman.h setjmp.h sys/user.h \ - limits.h pthread.h crt/signal.h sys/id.h mach-o/dyld.h sys/ptrace.h \ - thread.h dlfcn.h dld.h dl.h sys/times.h sched.h sys/procfs.h sys/param.h \ - winsock.h sys/ioct.h sys/socket.h malloc.h netinet/in.h sys/wait.h winbase.h \ - grp.h pwd.h passwd.h group.h winsock2.h signal.h sys/file.h poll.h sys/poll.h \ - socket.h ieeefp.h fp_class.h floatingpoint.h sys/priocntl.h sys/sched.h \ - windows.h float.h errno.h stddef.h mmx.h sys/termio.h sys/termios.h valgrind.h memcheck.h \ - sys/prctl.h) +  memory.h values.h string.h strings.h fcntl.h sys/filio.h \ +  sys/sockio.h crypt.h locale.h sys/select.h net/socket.h \ +  sys/mman.h setjmp.h sys/user.h limits.h pthread.h \ +  crt/signal.h sys/id.h mach-o/dyld.h sys/ptrace.h \ +  thread.h dlfcn.h dld.h dl.h sys/times.h sched.h \ +  sys/procfs.h sys/param.h winsock.h sys/ioct.h sys/socket.h \ +  malloc.h netinet/in.h sys/wait.h winbase.h grp.h pwd.h \ +  passwd.h group.h winsock2.h signal.h sys/file.h poll.h \ +  sys/poll.h socket.h ieeefp.h fp_class.h floatingpoint.h \ +  sys/priocntl.h sys/sched.h windows.h float.h errno.h \ +  stddef.h mmx.h sys/termio.h sys/termios.h ws2tcpip.h \ +  valgrind.h memcheck.h sys/prctl.h)      # some Linux systems have a broken resource.h that compiles anyway /Mirar   AC_MSG_CHECKING([for sys/resource.h])
3255:   #endif      /* NT */ - #ifdef HAVE_WINSOCK_H + #ifdef HAVE_WINSOCK2_H + #include <WinSock2.h> + #ifdef HAVE_WS2TCPIP_H + /* Needed for IPv6 support. */ + #include <WS2tcpip.h> + #endif + #elif defined(HAVE_WINSOCK_H)   #include <winsock.h>   #endif   
3287:   #endif      /* NT */ - #ifdef HAVE_WINSOCK_H + #ifdef HAVE_WINSOCK2_H + #include <WinSock2.h> + #ifdef HAVE_WS2TCPIP_H + /* Needed for IPv6 support. */ + #include <WS2tcpip.h> + #endif + #elif defined(HAVE_WINSOCK_H)   #include <winsock.h>   #endif   
3324:   #endif      /* NT */ - #ifdef HAVE_WINSOCK_H + #ifdef HAVE_WINSOCK2_H + #include <WinSock2.h> + #ifdef HAVE_WS2TCPIP_H + /* Needed for IPv6 support. */ + #include <WS2tcpip.h> + #endif + #elif defined(HAVE_WINSOCK_H)   #include <winsock.h>   #endif   
3475:   #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif /* HAVE_NETINET_IN_H */ + #ifdef HAVE_WINSOCK2_H + #include <WinSock2.h> + #ifdef HAVE_WS2TCPIP_H + #include <WS2tcpip.h> + #endif + #elif defined(HAVE_WINSOCK_H) + #include <winsock.h> + #endif   ],[    struct sockaddr_in6 foo;   ],pike_cv_has_struct_sockaddr_in6=yes,pike_cv_has_struct_sockaddr_in6=no)
3819:      MY_CHECK_HEADERS(strchr,string.h unistd.h stdlib.h)   MY_CHECK_HEADERS(malloc,memory.h unistd.h stdlib.h) - MY_CHECK_HEADERS(getpeername,sys/socket.h sys/socketvar.h sys/socketio.h winsock.h winsock2.h) + MY_CHECK_HEADERS(getpeername,sys/socket.h sys/socketvar.h sys/socketio.h winsock.h winsock2.h ws2tcpip.h)   MY_CHECK_HEADERS(popen,stdio.h unistd.h)   MY_CHECK_HEADERS(getenv,unistd.h stdlib.h) - MY_CHECK_HEADERS(gethostname,unistd.h netdb.h winsock.h winsock2.h) + MY_CHECK_HEADERS(gethostname,unistd.h netdb.h winsock.h winsock2.h ws2tcpip.h)      AC_ALLOCA