Adjust to recent gnulib change for @GUARD_PREFIX@.
[bpt/emacs.git] / lib / gnulib.mk
CommitLineData
743c80a7
PE
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.
6a3e57bb 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 --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files careadlinkat crypto/md5 crypto/sha1 dtoastr filemode getloadavg getopt-gnu ignore-value intprops lstat mktime readlink socklen stdarg stdio strftime strtoumax symlink sys_stat
743c80a7
PE
13
14
15MOSTLYCLEANFILES += core *.stackdump
16
17noinst_LIBRARIES += libgnu.a
18
19libgnu_a_SOURCES =
20libgnu_a_LIBADD = $(gl_LIBOBJS)
21libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
22EXTRA_libgnu_a_SOURCES =
23
7ec98caf
PE
24## begin gnulib module allocator
25
26libgnu_a_SOURCES += allocator.c
27
28EXTRA_DIST += allocator.h
29
30## end gnulib module allocator
31
1fd182f0
PE
32## begin gnulib module arg-nonnull
33
34# The BUILT_SOURCES created by this Makefile snippet are not used via #include
35# statements but through direct file reference. Therefore this snippet must be
36# present in all Makefile.am that need it. This is ensured by the applicability
37# 'all' defined above.
38
39BUILT_SOURCES += arg-nonnull.h
40# The arg-nonnull.h that gets inserted into generated .h files is the same as
41# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
42arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
43 $(AM_V_GEN)rm -f $@-t $@ && \
44 sed -n -e '/GL_ARG_NONNULL/,$$p' \
45 < $(top_srcdir)/./arg-nonnull.h \
46 > $@-t && \
47 mv $@-t $@
48MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
49
50ARG_NONNULL_H=arg-nonnull.h
51
52EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
53
54## end gnulib module arg-nonnull
55
56## begin gnulib module c++defs
57
58# The BUILT_SOURCES created by this Makefile snippet are not used via #include
59# statements but through direct file reference. Therefore this snippet must be
60# present in all Makefile.am that need it. This is ensured by the applicability
61# 'all' defined above.
62
63BUILT_SOURCES += c++defs.h
64# The c++defs.h that gets inserted into generated .h files is the same as
65# build-aux/c++defs.h, except that it has the copyright header cut off.
66c++defs.h: $(top_srcdir)/./c++defs.h
67 $(AM_V_GEN)rm -f $@-t $@ && \
68 sed -n -e '/_GL_CXXDEFS/,$$p' \
69 < $(top_srcdir)/./c++defs.h \
70 > $@-t && \
71 mv $@-t $@
72MOSTLYCLEANFILES += c++defs.h c++defs.h-t
73
74CXXDEFS_H=c++defs.h
75
76EXTRA_DIST += $(top_srcdir)/./c++defs.h
77
78## end gnulib module c++defs
79
d1fdcab7
PE
80## begin gnulib module careadlinkat
81
82libgnu_a_SOURCES += careadlinkat.c
83
7ec98caf 84EXTRA_DIST += careadlinkat.h
d1fdcab7
PE
85
86## end gnulib module careadlinkat
87
942f733f
PE
88## begin gnulib module crypto/md5
89
90
91EXTRA_DIST += md5.c md5.h
92
93EXTRA_libgnu_a_SOURCES += md5.c
94
95## end gnulib module crypto/md5
96
13c3daa4
LL
97## begin gnulib module crypto/sha1
98
99
100EXTRA_DIST += sha1.c sha1.h
101
102EXTRA_libgnu_a_SOURCES += sha1.c
103
104## end gnulib module crypto/sha1
105
36f13e16
PE
106## begin gnulib module dosname
107
19548d08 108if gl_GNULIB_ENABLED_dosname
36f13e16 109
19548d08 110endif
36f13e16
PE
111EXTRA_DIST += dosname.h
112
113## end gnulib module dosname
114
f737437b 115## begin gnulib module dtoastr
743c80a7 116
f737437b 117libgnu_a_SOURCES += dtoastr.c
743c80a7 118
f737437b
PE
119EXTRA_DIST += ftoastr.c ftoastr.h
120
121EXTRA_libgnu_a_SOURCES += ftoastr.c
122
123## end gnulib module dtoastr
a451f14b 124
5fa4ac76
PE
125## begin gnulib module filemode
126
127
128EXTRA_DIST += filemode.c filemode.h
129
130EXTRA_libgnu_a_SOURCES += filemode.c
131
132## end gnulib module filemode
133
79ab4b7f
PE
134## begin gnulib module getloadavg
135
136
137EXTRA_DIST += getloadavg.c
138
139EXTRA_libgnu_a_SOURCES += getloadavg.c
140
141## end gnulib module getloadavg
142
e275c824
PE
143## begin gnulib module getopt-posix
144
145BUILT_SOURCES += $(GETOPT_H)
146
147# We need the following in order to create <getopt.h> when the system
148# doesn't have one that works with the given compiler.
54fc1789 149getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
e275c824
PE
150 $(AM_V_GEN)rm -f $@-t $@ && \
151 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
6a3e57bb
PE
152 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
153 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
e275c824
PE
154 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
155 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
156 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
157 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
158 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
159 < $(srcdir)/getopt.in.h; \
160 } > $@-t && \
161 mv -f $@-t $@
162MOSTLYCLEANFILES += getopt.h getopt.h-t
163
164EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
165
166EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
167
168## end gnulib module getopt-posix
169
170## begin gnulib module gettext-h
171
19548d08 172if gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36
e275c824
PE
173libgnu_a_SOURCES += gettext.h
174
19548d08 175endif
e275c824
PE
176## end gnulib module gettext-h
177
67342916
PE
178## begin gnulib module ignore-value
179
1fc5f204
PE
180
181EXTRA_DIST += ignore-value.h
67342916
PE
182
183## end gnulib module ignore-value
184
a451f14b
PE
185## begin gnulib module intprops
186
187
188EXTRA_DIST += intprops.h
189
190## end gnulib module intprops
743c80a7 191
b6f5355a 192## begin gnulib module inttypes-incomplete
a8a2bb29
PE
193
194BUILT_SOURCES += inttypes.h
195
196# We need the following in order to create <inttypes.h> when the system
197# doesn't have one that works with the given compiler.
198inttypes.h: inttypes.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) $(ARG_NONNULL_H)
199 $(AM_V_GEN)rm -f $@-t $@ && \
200 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
201 sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
202 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
203 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
204 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
205 -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
206 -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
207 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
208 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
209 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
210 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
211 -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
212 -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
213 -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
214 -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
215 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
216 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
217 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
218 -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
219 -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
220 -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
221 -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
222 -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
223 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
224 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
225 < $(srcdir)/inttypes.in.h; \
226 } > $@-t && \
227 mv $@-t $@
228MOSTLYCLEANFILES += inttypes.h inttypes.h-t
229
230EXTRA_DIST += inttypes.in.h
231
b6f5355a 232## end gnulib module inttypes-incomplete
a8a2bb29 233
ae0d7250
PE
234## begin gnulib module lstat
235
236
237EXTRA_DIST += lstat.c
238
239EXTRA_libgnu_a_SOURCES += lstat.c
240
241## end gnulib module lstat
242
1fd182f0
PE
243## begin gnulib module mktime
244
245
246EXTRA_DIST += mktime-internal.h mktime.c
247
248EXTRA_libgnu_a_SOURCES += mktime.c
249
250## end gnulib module mktime
251
ae0d7250
PE
252## begin gnulib module readlink
253
254
255EXTRA_DIST += readlink.c
256
257EXTRA_libgnu_a_SOURCES += readlink.c
258
259## end gnulib module readlink
260
261## begin gnulib module stat
262
19548d08 263if gl_GNULIB_ENABLED_stat
ae0d7250 264
19548d08 265endif
ae0d7250
PE
266EXTRA_DIST += stat.c
267
268EXTRA_libgnu_a_SOURCES += stat.c
269
270## end gnulib module stat
271
c378da0b
PE
272## begin gnulib module stdarg
273
274BUILT_SOURCES += $(STDARG_H)
275
276# We need the following in order to create <stdarg.h> when the system
277# doesn't have one that works with the given compiler.
278if GL_GENERATE_STDARG_H
279stdarg.h: stdarg.in.h $(top_builddir)/config.status
280 $(AM_V_GEN)rm -f $@-t $@ && \
281 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
6a3e57bb
PE
282 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
283 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
c378da0b
PE
284 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
285 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
286 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
287 < $(srcdir)/stdarg.in.h; \
288 } > $@-t && \
289 mv $@-t $@
290else
291stdarg.h: $(top_builddir)/config.status
292 rm -f $@
293endif
294MOSTLYCLEANFILES += stdarg.h stdarg.h-t
295
296EXTRA_DIST += stdarg.in.h
297
298## end gnulib module stdarg
299
16c3e636
PE
300## begin gnulib module stdbool
301
302BUILT_SOURCES += $(STDBOOL_H)
303
304# We need the following in order to create <stdbool.h> when the system
305# doesn't have one that works.
54fc1789
PE
306if GL_GENERATE_STDBOOL_H
307stdbool.h: stdbool.in.h $(top_builddir)/config.status
16c3e636
PE
308 $(AM_V_GEN)rm -f $@-t $@ && \
309 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
310 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
311 } > $@-t && \
312 mv $@-t $@
54fc1789
PE
313else
314stdbool.h: $(top_builddir)/config.status
315 rm -f $@
316endif
16c3e636
PE
317MOSTLYCLEANFILES += stdbool.h stdbool.h-t
318
319EXTRA_DIST += stdbool.in.h
320
321## end gnulib module stdbool
322
1fd182f0
PE
323## begin gnulib module stddef
324
325BUILT_SOURCES += $(STDDEF_H)
326
327# We need the following in order to create <stddef.h> when the system
328# doesn't have one that works with the given compiler.
54fc1789
PE
329if GL_GENERATE_STDDEF_H
330stddef.h: stddef.in.h $(top_builddir)/config.status
1fd182f0
PE
331 $(AM_V_GEN)rm -f $@-t $@ && \
332 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
6a3e57bb
PE
333 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
334 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1fd182f0
PE
335 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
336 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
337 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
338 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
339 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
340 < $(srcdir)/stddef.in.h; \
341 } > $@-t && \
342 mv $@-t $@
54fc1789
PE
343else
344stddef.h: $(top_builddir)/config.status
345 rm -f $@
346endif
1fd182f0
PE
347MOSTLYCLEANFILES += stddef.h stddef.h-t
348
349EXTRA_DIST += stddef.in.h
350
351## end gnulib module stddef
352
5f90be1b
PE
353## begin gnulib module stdint
354
355BUILT_SOURCES += $(STDINT_H)
356
357# We need the following in order to create <stdint.h> when the system
358# doesn't have one that works with the given compiler.
54fc1789
PE
359if GL_GENERATE_STDINT_H
360stdint.h: stdint.in.h $(top_builddir)/config.status
5f90be1b
PE
361 $(AM_V_GEN)rm -f $@-t $@ && \
362 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
6a3e57bb
PE
363 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
364 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
5f90be1b
PE
365 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
366 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
367 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
368 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
369 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
370 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
371 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
372 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
373 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
374 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
375 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
376 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
377 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
378 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
379 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
380 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
381 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
382 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
383 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
384 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
385 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
386 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
387 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
388 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
389 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
390 < $(srcdir)/stdint.in.h; \
391 } > $@-t && \
392 mv $@-t $@
54fc1789
PE
393else
394stdint.h: $(top_builddir)/config.status
395 rm -f $@
396endif
5f90be1b
PE
397MOSTLYCLEANFILES += stdint.h stdint.h-t
398
399EXTRA_DIST += stdint.in.h
400
401## end gnulib module stdint
402
77185bdf
PE
403## begin gnulib module stdio
404
405BUILT_SOURCES += stdio.h
406
407# We need the following in order to create <stdio.h> when the system
408# doesn't have one that works with the given compiler.
54fc1789 409stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
77185bdf
PE
410 $(AM_V_GEN)rm -f $@-t $@ && \
411 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
6a3e57bb
PE
412 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
413 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
77185bdf
PE
414 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
415 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
416 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
417 -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
418 -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
419 -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
cc2e7b46
PE
420 -e 's|@''GNULIB_FGETC''@|$(GNULIB_FGETC)|g' \
421 -e 's|@''GNULIB_FGETS''@|$(GNULIB_FGETS)|g' \
77185bdf
PE
422 -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
423 -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
424 -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
425 -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
426 -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
427 -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
cc2e7b46 428 -e 's|@''GNULIB_FREAD''@|$(GNULIB_FREAD)|g' \
77185bdf 429 -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
cc2e7b46 430 -e 's|@''GNULIB_FSCANF''@|$(GNULIB_FSCANF)|g' \
77185bdf
PE
431 -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
432 -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
433 -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
434 -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
435 -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
cc2e7b46
PE
436 -e 's|@''GNULIB_GETC''@|$(GNULIB_GETC)|g' \
437 -e 's|@''GNULIB_GETCHAR''@|$(GNULIB_GETCHAR)|g' \
77185bdf
PE
438 -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
439 -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
cc2e7b46 440 -e 's|@''GNULIB_GETS''@|$(GNULIB_GETS)|g' \
77185bdf
PE
441 -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
442 -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
443 -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
444 -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
445 -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
446 -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
447 -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
448 -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
449 -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
450 -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
451 -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
452 -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
cc2e7b46 453 -e 's|@''GNULIB_SCANF''@|$(GNULIB_SCANF)|g' \
77185bdf
PE
454 -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
455 -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
cc2e7b46 456 -e 's|@''GNULIB_STDIO_H_NONBLOCKING''@|$(GNULIB_STDIO_H_NONBLOCKING)|g' \
77185bdf
PE
457 -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
458 -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
459 -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
460 -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
461 -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
462 -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
cc2e7b46
PE
463 -e 's|@''GNULIB_VFSCANF''@|$(GNULIB_VFSCANF)|g' \
464 -e 's|@''GNULIB_VSCANF''@|$(GNULIB_VSCANF)|g' \
77185bdf
PE
465 -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
466 -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
467 -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
468 -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
469 < $(srcdir)/stdio.in.h | \
470 sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
471 -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \
472 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
473 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
474 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
475 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
476 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
477 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
478 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
479 -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
480 -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
481 -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
482 -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
483 -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
484 -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
485 -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
486 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
487 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
488 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
489 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
490 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
491 -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
492 -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
493 -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
494 -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
495 -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
496 -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
497 -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
498 -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
499 -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
500 -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
501 -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
502 -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
503 -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
504 -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
505 -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
cc2e7b46 506 -e 's|@''REPLACE_STDIO_READ_FUNCS''@|$(REPLACE_STDIO_READ_FUNCS)|g' \
77185bdf
PE
507 -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
508 -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
509 -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
510 -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
511 -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
512 -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
513 -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
514 -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
515 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
516 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
517 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
518 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
519 } > $@-t && \
520 mv $@-t $@
521MOSTLYCLEANFILES += stdio.h stdio.h-t
522
523EXTRA_DIST += stdio.in.h
524
525## end gnulib module stdio
526
79ab4b7f
PE
527## begin gnulib module stdlib
528
529BUILT_SOURCES += stdlib.h
530
531# We need the following in order to create <stdlib.h> when the system
532# doesn't have one that works with the given compiler.
54fc1789 533stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
79ab4b7f
PE
534 $(AM_V_GEN)rm -f $@-t $@ && \
535 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
6a3e57bb
PE
536 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
537 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
79ab4b7f
PE
538 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
539 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
540 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
541 -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \
542 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
543 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
544 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
545 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
546 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
547 -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
548 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
ae0d7250 549 -e 's|@''GNULIB_MBTOWC''@|$(GNULIB_MBTOWC)|g' \
79ab4b7f
PE
550 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
551 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
552 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
553 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
554 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
555 -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
556 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
557 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
558 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
559 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
560 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
561 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
562 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
563 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
564 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
565 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \
566 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
567 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
ae0d7250 568 -e 's|@''GNULIB_WCTOMB''@|$(GNULIB_WCTOMB)|g' \
dd463884
PE
569 < $(srcdir)/stdlib.in.h | \
570 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
79ab4b7f
PE
571 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
572 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
573 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
574 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
575 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
576 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
577 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
578 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
579 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
580 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
581 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
582 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
583 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
584 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
585 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
586 -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
587 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
588 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
589 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
590 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
591 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
592 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
593 -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
594 -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
595 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
596 -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
ae0d7250 597 -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
79ab4b7f
PE
598 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
599 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
600 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
601 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
602 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
603 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
604 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
ae0d7250 605 -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
79ab4b7f
PE
606 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
607 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
dd463884 608 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
79ab4b7f
PE
609 } > $@-t && \
610 mv $@-t $@
611MOSTLYCLEANFILES += stdlib.h stdlib.h-t
612
613EXTRA_DIST += stdlib.in.h
614
615## end gnulib module stdlib
616
16c3e636
PE
617## begin gnulib module strftime
618
619
620EXTRA_DIST += strftime.c strftime.h
621
622EXTRA_libgnu_a_SOURCES += strftime.c
623
624## end gnulib module strftime
625
b6f5355a
PE
626## begin gnulib module strtoull
627
19548d08 628if gl_GNULIB_ENABLED_strtoull
b6f5355a 629
19548d08 630endif
b6f5355a
PE
631EXTRA_DIST += strtol.c strtoul.c strtoull.c
632
633EXTRA_libgnu_a_SOURCES += strtol.c strtoul.c strtoull.c
634
635## end gnulib module strtoull
636
a8a2bb29
PE
637## begin gnulib module strtoumax
638
639
b6f5355a 640EXTRA_DIST += strtoimax.c strtoumax.c
a8a2bb29 641
b6f5355a 642EXTRA_libgnu_a_SOURCES += strtoimax.c strtoumax.c
a8a2bb29
PE
643
644## end gnulib module strtoumax
645
ae0d7250
PE
646## begin gnulib module symlink
647
648
649EXTRA_DIST += symlink.c
650
651EXTRA_libgnu_a_SOURCES += symlink.c
652
653## end gnulib module symlink
654
5fa4ac76
PE
655## begin gnulib module sys_stat
656
657BUILT_SOURCES += sys/stat.h
658
659# We need the following in order to create <sys/stat.h> when the system
660# has one that is incomplete.
54fc1789 661sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
5fa4ac76
PE
662 $(AM_V_at)$(MKDIR_P) sys
663 $(AM_V_GEN)rm -f $@-t $@ && \
664 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
6a3e57bb
PE
665 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
666 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
5fa4ac76
PE
667 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
668 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
669 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
670 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
671 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
672 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
673 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
674 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
675 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
676 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
677 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
678 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
679 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
680 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
681 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
682 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
683 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
684 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
685 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
686 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
687 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
688 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
689 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
690 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
691 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
692 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
693 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
694 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
695 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
696 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
697 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
698 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
699 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
700 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
701 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
702 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
703 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
704 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
705 < $(srcdir)/sys_stat.in.h; \
706 } > $@-t && \
707 mv $@-t $@
708MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
709MOSTLYCLEANDIRS += sys
710
711EXTRA_DIST += sys_stat.in.h
712
713## end gnulib module sys_stat
714
1fd182f0
PE
715## begin gnulib module time
716
717BUILT_SOURCES += time.h
718
719# We need the following in order to create <time.h> when the system
720# doesn't have one that works with the given compiler.
54fc1789 721time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1fd182f0
PE
722 $(AM_V_GEN)rm -f $@-t $@ && \
723 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
6a3e57bb
PE
724 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
725 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1fd182f0
PE
726 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
727 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
728 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
729 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
730 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
731 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
732 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
733 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
734 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
735 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
736 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
737 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
738 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
739 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
740 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
741 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
742 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
743 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
744 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
745 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
746 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
747 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
748 < $(srcdir)/time.in.h; \
749 } > $@-t && \
750 mv $@-t $@
751MOSTLYCLEANFILES += time.h time.h-t
752
753EXTRA_DIST += time.in.h
754
755## end gnulib module time
756
757## begin gnulib module time_r
758
759
760EXTRA_DIST += time_r.c
761
762EXTRA_libgnu_a_SOURCES += time_r.c
763
764## end gnulib module time_r
765
e275c824
PE
766## begin gnulib module unistd
767
768BUILT_SOURCES += unistd.h
769
770# We need the following in order to create an empty placeholder for
771# <unistd.h> when the system doesn't have one.
54fc1789 772unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
e275c824
PE
773 $(AM_V_GEN)rm -f $@-t $@ && \
774 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
6a3e57bb
PE
775 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
776 -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
e275c824
PE
777 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
778 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
779 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
780 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
781 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
782 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
783 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
784 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
785 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
786 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
787 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
788 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
789 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
790 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
791 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
792 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
793 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
794 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
795 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
796 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
797 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
798 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
799 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
800 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
1fc5f204 801 -e 's|@''GNULIB_GROUP_MEMBER''@|$(GNULIB_GROUP_MEMBER)|g' \
e275c824
PE
802 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
803 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
804 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
805 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
806 -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \
807 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
808 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
809 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
cc2e7b46 810 -e 's|@''GNULIB_READ''@|$(GNULIB_READ)|g' \
e275c824
PE
811 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
812 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
813 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
814 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
815 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
816 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
817 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
818 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
cc2e7b46 819 -e 's|@''GNULIB_UNISTD_H_NONBLOCKING''@|$(GNULIB_UNISTD_H_NONBLOCKING)|g' \
e275c824
PE
820 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
821 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
822 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
823 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
824 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
825 < $(srcdir)/unistd.in.h | \
826 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
827 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
828 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
829 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
830 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
831 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
832 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
833 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
834 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
835 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
836 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
837 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
838 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
839 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
1fc5f204 840 -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \
e275c824
PE
841 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
842 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
843 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
844 -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
845 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
846 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
847 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
848 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
849 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
850 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
851 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
852 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
853 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
854 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
855 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
856 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
857 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
858 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
859 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
860 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
861 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
862 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
863 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
dd463884
PE
864 | \
865 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
e275c824
PE
866 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
867 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
868 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
869 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
870 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
871 -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
872 -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
873 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
874 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
875 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
876 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
877 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
878 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
879 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
880 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
cc2e7b46 881 -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
e275c824
PE
882 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
883 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
884 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
885 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
886 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
887 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
888 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
889 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
890 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
891 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
892 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
893 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
894 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
895 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
896 } > $@-t && \
897 mv $@-t $@
898MOSTLYCLEANFILES += unistd.h unistd.h-t
899
900EXTRA_DIST += unistd.in.h
901
902## end gnulib module unistd
903
a8a2bb29
PE
904## begin gnulib module verify
905
19548d08 906if gl_GNULIB_ENABLED_verify
a8a2bb29 907
19548d08 908endif
1fc5f204
PE
909EXTRA_DIST += verify.h
910
a8a2bb29
PE
911## end gnulib module verify
912
1fd182f0
PE
913## begin gnulib module warn-on-use
914
915BUILT_SOURCES += warn-on-use.h
916# The warn-on-use.h that gets inserted into generated .h files is the same as
917# build-aux/warn-on-use.h, except that it has the copyright header cut off.
918warn-on-use.h: $(top_srcdir)/./warn-on-use.h
919 $(AM_V_GEN)rm -f $@-t $@ && \
920 sed -n -e '/^.ifndef/,$$p' \
921 < $(top_srcdir)/./warn-on-use.h \
922 > $@-t && \
923 mv $@-t $@
924MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
925
926WARN_ON_USE_H=warn-on-use.h
927
928EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
929
930## end gnulib module warn-on-use
931
743c80a7
PE
932
933mostlyclean-local: mostlyclean-generic
934 @for dir in '' $(MOSTLYCLEANDIRS); do \
935 if test -n "$$dir" && test -d $$dir; then \
936 echo "rmdir $$dir"; rmdir $$dir; \
937 fi; \
938 done; \
939 :