+2006-07-05 Eric Blake <ebb9@byu.net>
+
+ * sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
+ to avoid 'header present but could not be compiled' on cygwin.
+
2006-07-03 Bruno Haible <bruno@clisp.org>
* strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
-# sockpfaf.m4 serial 3
+# sockpfaf.m4 serial 4
dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_SOCKET_FAMILIES],
[
- AC_CHECK_HEADERS_ONCE(sys/socket.h netinet/in.h winsock2.h)
+ AC_REQUIRE([gl_HEADER_SYS_SOCKET])
+ AC_CHECK_HEADERS_ONCE([netinet/in.h])
AC_MSG_CHECKING(for IPv4 sockets)
AC_CACHE_VAL(gl_cv_socket_ipv4,