glob: merge from glibc with Zanella glob changes
[gnulib.git] / modules / socket
blob49625494ab13927b741f512f9fdc496139105777
1 Description:
2 socket() function: create a socket.
4 Files:
5 lib/socket.c
6 lib/w32sock.h
8 Depends-on:
9 sys_socket
10 socketlib
11 errno           [test "$ac_cv_header_winsock2_h" = yes]
12 sockets         [test "$ac_cv_header_winsock2_h" = yes]
13 msvc-nothrow    [test "$ac_cv_header_winsock2_h" = yes]
15 configure.ac:
16 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
17 if test "$ac_cv_header_winsock2_h" = yes; then
18   AC_LIBOBJ([socket])
20 # When this module is used, sockets may actually occur as file descriptors,
21 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
22 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
23 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
24 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
25 if test "$ac_cv_header_winsock2_h" = yes; then
26   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
27   SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
29 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
31 Makefile.am:
33 Include:
34 <sys/socket.h>
36 Link:
37 $(LIBSOCKET)
39 License:
40 LGPLv2+
42 Maintainer:
43 Paolo Bonzini, Simon Josefsson