434
|
1 # unistd_h.m4 serial 36
|
|
2 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc.
|
|
3 dnl This file is free software; the Free Software Foundation
|
|
4 dnl gives unlimited permission to copy and/or distribute it,
|
|
5 dnl with or without modifications, as long as this notice is preserved.
|
|
6
|
|
7 dnl Written by Simon Josefsson, Bruno Haible.
|
|
8
|
|
9 AC_DEFUN([gl_UNISTD_H],
|
|
10 [
|
|
11 dnl Use AC_REQUIRE here, so that the default behavior below is expanded
|
|
12 dnl once only, before all statements that occur in other macros.
|
|
13 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
14
|
|
15 gl_CHECK_NEXT_HEADERS([unistd.h])
|
|
16
|
|
17 AC_CHECK_HEADERS_ONCE([unistd.h])
|
|
18 if test $ac_cv_header_unistd_h = yes; then
|
|
19 HAVE_UNISTD_H=1
|
|
20 else
|
|
21 HAVE_UNISTD_H=0
|
|
22 fi
|
|
23 AC_SUBST([HAVE_UNISTD_H])
|
|
24 ])
|
|
25
|
|
26 AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
|
|
27 [
|
|
28 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
|
|
29 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
30 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
|
|
31 ])
|
|
32
|
|
33 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
|
|
34 [
|
|
35 GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
|
|
36 GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
|
|
37 GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
|
|
38 GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3])
|
|
39 GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
|
|
40 GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
|
|
41 GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT])
|
|
42 GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
|
|
43 GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT])
|
|
44 GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
|
|
45 GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
|
|
46 GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
|
|
47 GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
|
|
48 GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
|
|
49 GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS])
|
|
50 GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
|
|
51 GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
|
|
52 GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
|
|
53 GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
|
|
54 GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
|
|
55 GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
|
|
56 GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT])
|
|
57 GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
|
|
58 GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2])
|
|
59 GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD])
|
|
60 GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
|
|
61 GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT])
|
|
62 GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR])
|
|
63 GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
|
|
64 GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
|
|
65 GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
|
|
66 GNULIB_UNISTD_H_GETOPT=0; AC_SUBST([GNULIB_UNISTD_H_GETOPT])
|
|
67 GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
|
|
68 GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
|
|
69 GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT])
|
|
70 GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP])
|
|
71 GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
|
|
72 dnl Assume proper GNU behavior unless another module says otherwise.
|
|
73 HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
|
|
74 HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
|
|
75 HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
|
|
76 HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
|
|
77 HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
|
|
78 HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
|
|
79 HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
|
|
80 HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
|
|
81 HAVE_GETDOMAINNAME=1; AC_SUBST([HAVE_GETDOMAINNAME])
|
|
82 HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
|
|
83 HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
|
|
84 HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
|
|
85 HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
|
|
86 HAVE_GETUSERSHELL=1; AC_SUBST([HAVE_GETUSERSHELL])
|
|
87 HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
|
|
88 HAVE_LINK=1; AC_SUBST([HAVE_LINK])
|
|
89 HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
|
|
90 HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
|
|
91 HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
|
|
92 HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
|
|
93 HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
|
|
94 HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
|
|
95 HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
|
|
96 HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
|
|
97 HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
|
|
98 HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
|
|
99 HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
|
|
100 HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
|
|
101 HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
|
|
102 HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
|
|
103 REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
|
|
104 REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
|
|
105 REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
|
|
106 REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
|
|
107 REPLACE_FCHDIR=0; AC_SUBST([REPLACE_FCHDIR])
|
|
108 REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
|
|
109 REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
|
|
110 REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
|
|
111 REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
|
|
112 REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
|
|
113 REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
|
|
114 REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
|
|
115 REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
|
|
116 REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
|
|
117 REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
|
|
118 REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
|
|
119 REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
|
|
120 REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
|
|
121 REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
|
|
122 REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
|
|
123 REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
|
|
124 REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
|
|
125 UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
|
|
126 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
|
|
127 AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
|
|
128 ])
|