Import getloadavg module from gnulib.
[bpt/emacs.git] / lib / gnulib.mk
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
4 #
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License. As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
10 #
11 # Generated by gnulib-tool.
12 # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files dtoastr getloadavg getopt-gnu ignore-value mktime strftime
13
14
15 MOSTLYCLEANFILES += core *.stackdump
16
17 noinst_LIBRARIES += libgnu.a
18
19 libgnu_a_SOURCES =
20 libgnu_a_LIBADD = $(gl_LIBOBJS)
21 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
22 EXTRA_libgnu_a_SOURCES =
23
24 ## begin gnulib module arg-nonnull
25
26 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
27 # statements but through direct file reference. Therefore this snippet must be
28 # present in all Makefile.am that need it. This is ensured by the applicability
29 # 'all' defined above.
30
31 BUILT_SOURCES += arg-nonnull.h
32 # The arg-nonnull.h that gets inserted into generated .h files is the same as
33 # build-aux/arg-nonnull.h, except that it has the copyright header cut off.
34 arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
35 $(AM_V_GEN)rm -f $@-t $@ && \
36 sed -n -e '/GL_ARG_NONNULL/,$$p' \
37 < $(top_srcdir)/./arg-nonnull.h \
38 > $@-t && \
39 mv $@-t $@
40 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
41
42 ARG_NONNULL_H=arg-nonnull.h
43
44 EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
45
46 ## end gnulib module arg-nonnull
47
48 ## begin gnulib module c++defs
49
50 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
51 # statements but through direct file reference. Therefore this snippet must be
52 # present in all Makefile.am that need it. This is ensured by the applicability
53 # 'all' defined above.
54
55 BUILT_SOURCES += c++defs.h
56 # The c++defs.h that gets inserted into generated .h files is the same as
57 # build-aux/c++defs.h, except that it has the copyright header cut off.
58 c++defs.h: $(top_srcdir)/./c++defs.h
59 $(AM_V_GEN)rm -f $@-t $@ && \
60 sed -n -e '/_GL_CXXDEFS/,$$p' \
61 < $(top_srcdir)/./c++defs.h \
62 > $@-t && \
63 mv $@-t $@
64 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
65
66 CXXDEFS_H=c++defs.h
67
68 EXTRA_DIST += $(top_srcdir)/./c++defs.h
69
70 ## end gnulib module c++defs
71
72 ## begin gnulib module dtoastr
73
74 libgnu_a_SOURCES += dtoastr.c
75
76 EXTRA_DIST += ftoastr.c ftoastr.h
77
78 EXTRA_libgnu_a_SOURCES += ftoastr.c
79
80 ## end gnulib module dtoastr
81
82 ## begin gnulib module getloadavg
83
84
85 EXTRA_DIST += getloadavg.c
86
87 EXTRA_libgnu_a_SOURCES += getloadavg.c
88
89 ## end gnulib module getloadavg
90
91 ## begin gnulib module getopt-posix
92
93 BUILT_SOURCES += $(GETOPT_H)
94
95 # We need the following in order to create <getopt.h> when the system
96 # doesn't have one that works with the given compiler.
97 getopt.h: getopt.in.h $(ARG_NONNULL_H)
98 $(AM_V_GEN)rm -f $@-t $@ && \
99 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
100 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
101 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
102 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
103 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
104 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
105 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
106 < $(srcdir)/getopt.in.h; \
107 } > $@-t && \
108 mv -f $@-t $@
109 MOSTLYCLEANFILES += getopt.h getopt.h-t
110
111 EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
112
113 EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
114
115 ## end gnulib module getopt-posix
116
117 ## begin gnulib module gettext-h
118
119 libgnu_a_SOURCES += gettext.h
120
121 ## end gnulib module gettext-h
122
123 ## begin gnulib module ignore-value
124
125 libgnu_a_SOURCES += ignore-value.h
126
127 ## end gnulib module ignore-value
128
129 ## begin gnulib module intprops
130
131
132 EXTRA_DIST += intprops.h
133
134 ## end gnulib module intprops
135
136 ## begin gnulib module mktime
137
138
139 EXTRA_DIST += mktime-internal.h mktime.c
140
141 EXTRA_libgnu_a_SOURCES += mktime.c
142
143 ## end gnulib module mktime
144
145 ## begin gnulib module stdbool
146
147 BUILT_SOURCES += $(STDBOOL_H)
148
149 # We need the following in order to create <stdbool.h> when the system
150 # doesn't have one that works.
151 stdbool.h: stdbool.in.h
152 $(AM_V_GEN)rm -f $@-t $@ && \
153 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
154 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
155 } > $@-t && \
156 mv $@-t $@
157 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
158
159 EXTRA_DIST += stdbool.in.h
160
161 ## end gnulib module stdbool
162
163 ## begin gnulib module stddef
164
165 BUILT_SOURCES += $(STDDEF_H)
166
167 # We need the following in order to create <stddef.h> when the system
168 # doesn't have one that works with the given compiler.
169 stddef.h: stddef.in.h
170 $(AM_V_GEN)rm -f $@-t $@ && \
171 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
172 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
173 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
174 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
175 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
176 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
177 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
178 < $(srcdir)/stddef.in.h; \
179 } > $@-t && \
180 mv $@-t $@
181 MOSTLYCLEANFILES += stddef.h stddef.h-t
182
183 EXTRA_DIST += stddef.in.h
184
185 ## end gnulib module stddef
186
187 ## begin gnulib module stdlib
188
189 BUILT_SOURCES += stdlib.h
190
191 # We need the following in order to create <stdlib.h> when the system
192 # doesn't have one that works with the given compiler.
193 stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
194 $(AM_V_GEN)rm -f $@-t $@ && \
195 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
196 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
197 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
198 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
199 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
200 -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \
201 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
202 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
203 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
204 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
205 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
206 -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
207 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
208 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
209 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
210 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
211 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
212 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
213 -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
214 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
215 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
216 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
217 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
218 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
219 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
220 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
221 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
222 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
223 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \
224 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
225 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
226 < $(srcdir)/stdlib.in.h | \
227 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
228 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
229 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
230 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
231 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
232 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
233 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
234 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
235 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
236 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
237 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
238 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
239 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
240 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
241 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
242 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
243 -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
244 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
245 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
246 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
247 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
248 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
249 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
250 -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
251 -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
252 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
253 -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
254 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
255 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
256 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
257 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
258 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
259 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
260 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
261 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
262 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
263 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
264 } > $@-t && \
265 mv $@-t $@
266 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
267
268 EXTRA_DIST += stdlib.in.h
269
270 ## end gnulib module stdlib
271
272 ## begin gnulib module strftime
273
274
275 EXTRA_DIST += strftime.c strftime.h
276
277 EXTRA_libgnu_a_SOURCES += strftime.c
278
279 ## end gnulib module strftime
280
281 ## begin gnulib module time
282
283 BUILT_SOURCES += time.h
284
285 # We need the following in order to create <time.h> when the system
286 # doesn't have one that works with the given compiler.
287 time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
288 $(AM_V_GEN)rm -f $@-t $@ && \
289 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
290 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
291 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
292 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
293 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
294 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
295 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
296 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
297 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
298 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
299 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
300 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
301 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
302 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
303 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
304 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
305 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
306 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
307 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
308 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
309 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
310 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
311 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
312 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
313 < $(srcdir)/time.in.h; \
314 } > $@-t && \
315 mv $@-t $@
316 MOSTLYCLEANFILES += time.h time.h-t
317
318 EXTRA_DIST += time.in.h
319
320 ## end gnulib module time
321
322 ## begin gnulib module time_r
323
324
325 EXTRA_DIST += time_r.c
326
327 EXTRA_libgnu_a_SOURCES += time_r.c
328
329 ## end gnulib module time_r
330
331 ## begin gnulib module unistd
332
333 BUILT_SOURCES += unistd.h
334
335 # We need the following in order to create an empty placeholder for
336 # <unistd.h> when the system doesn't have one.
337 unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
338 $(AM_V_GEN)rm -f $@-t $@ && \
339 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
340 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
341 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
342 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
343 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
344 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
345 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
346 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
347 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
348 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
349 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
350 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
351 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
352 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
353 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
354 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
355 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
356 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
357 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
358 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
359 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
360 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
361 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
362 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
363 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
364 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
365 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
366 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
367 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
368 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
369 -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \
370 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
371 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
372 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
373 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
374 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
375 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
376 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
377 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
378 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
379 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
380 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
381 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
382 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
383 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
384 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
385 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
386 < $(srcdir)/unistd.in.h | \
387 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
388 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
389 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
390 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
391 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
392 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
393 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
394 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
395 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
396 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
397 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
398 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
399 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
400 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
401 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
402 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
403 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
404 -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
405 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
406 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
407 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
408 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
409 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
410 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
411 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
412 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
413 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
414 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
415 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
416 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
417 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
418 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
419 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
420 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
421 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
422 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
423 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
424 | \
425 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
426 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
427 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
428 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
429 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
430 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
431 -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
432 -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
433 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
434 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
435 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
436 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
437 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
438 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
439 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
440 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
441 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
442 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
443 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
444 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
445 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
446 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
447 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
448 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
449 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
450 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
451 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
452 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
453 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
454 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
455 } > $@-t && \
456 mv $@-t $@
457 MOSTLYCLEANFILES += unistd.h unistd.h-t
458
459 EXTRA_DIST += unistd.in.h
460
461 ## end gnulib module unistd
462
463 ## begin gnulib module warn-on-use
464
465 BUILT_SOURCES += warn-on-use.h
466 # The warn-on-use.h that gets inserted into generated .h files is the same as
467 # build-aux/warn-on-use.h, except that it has the copyright header cut off.
468 warn-on-use.h: $(top_srcdir)/./warn-on-use.h
469 $(AM_V_GEN)rm -f $@-t $@ && \
470 sed -n -e '/^.ifndef/,$$p' \
471 < $(top_srcdir)/./warn-on-use.h \
472 > $@-t && \
473 mv $@-t $@
474 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
475
476 WARN_ON_USE_H=warn-on-use.h
477
478 EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
479
480 ## end gnulib module warn-on-use
481
482
483 mostlyclean-local: mostlyclean-generic
484 @for dir in '' $(MOSTLYCLEANDIRS); do \
485 if test -n "$$dir" && test -d $$dir; then \
486 echo "rmdir $$dir"; rmdir $$dir; \
487 fi; \
488 done; \
489 :