posix_spawn_file_actions_* tests: Fix module dependencies.
[gnulib.git] / modules / gethostname
blobb41dfad9a747dc4cb60fab30e716caf8e0d09e16
1 Description:
2 gethostname() function: Return machine's hostname.
4 Files:
5 lib/gethostname.c
6 m4/gethostname.m4
7 lib/w32sock.h
9 Depends-on:
10 unistd
11 sys_socket      [test $HAVE_GETHOSTNAME = 0]
12 errno           [test $HAVE_GETHOSTNAME = 0]
13 sockets         [test $HAVE_GETHOSTNAME = 0]
14 msvc-nothrow    [test $HAVE_GETHOSTNAME = 0]
16 configure.ac:
17 gl_FUNC_GETHOSTNAME
18 if test $HAVE_GETHOSTNAME = 0; then
19   AC_LIBOBJ([gethostname])
20   gl_PREREQ_GETHOSTNAME
22 gl_UNISTD_MODULE_INDICATOR([gethostname])
24 Makefile.am:
26 Include:
27 <unistd.h>
29 Link:
30 $(GETHOSTNAME_LIB)
32 License:
33 LGPLv2+
35 Maintainer:
36 all