From 64b663c0c479a3af01e3ccacdb3aa3f6a8c4a6a1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 Oct 2008 22:51:05 +0200 Subject: Reduce the dependencies of m4/sys_socket_h.m4. --- m4/sys_socket_h.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/sys_socket_h.m4') diff --git a/m4/sys_socket_h.m4 b/m4/sys_socket_h.m4 index 9d2d92c5a2..85a0ace8ad 100644 --- a/m4/sys_socket_h.m4 +++ b/m4/sys_socket_h.m4 @@ -71,8 +71,8 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET], # Sets and substitutes HAVE_WINSOCK2_H. AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2], [ - AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS]) + m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) + m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) AC_CHECK_HEADERS_ONCE([sys/socket.h]) if test $ac_cv_header_sys_socket_h != yes; then dnl We cannot use AC_CHECK_HEADERS_ONCE here, because that would make -- cgit v1.2.1