~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to lib/gl/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## DO NOT EDIT! GENERATED AUTOMATICALLY!
2
2
## Process this file with automake to produce Makefile.in.
3
 
# Copyright (C) 2002-2009 Free Software Foundation, Inc.
 
3
# Copyright (C) 2002-2010 Free Software Foundation, Inc.
4
4
#
5
5
# This file is free software, distributed under the terms of the GNU
6
6
# General Public License.  As a special exception to the GNU General
9
9
# the same distribution terms as the rest of that program.
10
10
#
11
11
# Generated by gnulib-tool.
12
 
# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --with-tests --avoid=alignof-tests --avoid=lseek-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext lib-msvc-compat lib-symbol-versions memmem-simple memmove minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf vsnprintf
 
12
# Reproduce by: gnulib-tool --import --dir=. --local-dir=gl/override --lib=liblgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gl/tests --aux-dir=build-aux --with-tests --avoid=alignof-tests --avoid=lseek-tests --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files byteswap c-ctype fseeko func gettext lib-msvc-compat lib-symbol-versions memmem-simple minmax netdb read-file snprintf sockets socklen stdint strcase strverscmp sys_socket sys_stat time_r unistd vasprintf vsnprintf
13
13
 
14
14
AUTOMAKE_OPTIONS = 1.5 gnits
15
15
 
53
53
# We need the following in order to create <alloca.h> when the system
54
54
# doesn't have one that works with the given compiler.
55
55
alloca.h: alloca.in.h
 
56
        $(AM_V_GEN)rm -f $@-t $@ && \
56
57
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
57
58
          cat $(srcdir)/alloca.in.h; \
58
 
        } > $@-t
 
59
        } > $@-t && \
59
60
        mv -f $@-t $@
60
61
MOSTLYCLEANFILES += alloca.h alloca.h-t
61
62
 
63
64
 
64
65
## end   gnulib module alloca-opt
65
66
 
 
67
## begin gnulib module arg-nonnull
 
68
 
 
69
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
 
70
# statements but through direct file reference. Therefore this snippet must be
 
71
# present in all Makefile.am that need it. This is ensured by the applicability
 
72
# 'all' defined above.
 
73
 
 
74
BUILT_SOURCES += arg-nonnull.h
 
75
# The arg-nonnull.h that gets inserted into generated .h files is the same as
 
76
# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
 
77
arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
 
78
        $(AM_V_GEN)rm -f $@-t $@ && \
 
79
        sed -n -e '/GL_ARG_NONNULL/,$$p' \
 
80
          < $(top_srcdir)/build-aux/arg-nonnull.h \
 
81
          > $@-t && \
 
82
        mv $@-t $@
 
83
MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
 
84
 
 
85
ARG_NONNULL_H=arg-nonnull.h
 
86
 
 
87
EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h
 
88
 
 
89
## end   gnulib module arg-nonnull
 
90
 
66
91
## begin gnulib module byteswap
67
92
 
68
93
BUILT_SOURCES += $(BYTESWAP_H)
70
95
# We need the following in order to create <byteswap.h> when the system
71
96
# doesn't have one.
72
97
byteswap.h: byteswap.in.h
 
98
        $(AM_V_GEN)rm -f $@-t $@ && \
73
99
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
74
100
          cat $(srcdir)/byteswap.in.h; \
75
 
        } > $@-t
 
101
        } > $@-t && \
76
102
        mv -f $@-t $@
77
103
MOSTLYCLEANFILES += byteswap.h byteswap.h-t
78
104
 
80
106
 
81
107
## end   gnulib module byteswap
82
108
 
 
109
## begin gnulib module c++defs
 
110
 
 
111
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
 
112
# statements but through direct file reference. Therefore this snippet must be
 
113
# present in all Makefile.am that need it. This is ensured by the applicability
 
114
# 'all' defined above.
 
115
 
 
116
BUILT_SOURCES += c++defs.h
 
117
# The c++defs.h that gets inserted into generated .h files is the same as
 
118
# build-aux/c++defs.h, except that it has the copyright header cut off.
 
119
c++defs.h: $(top_srcdir)/build-aux/c++defs.h
 
120
        $(AM_V_GEN)rm -f $@-t $@ && \
 
121
        sed -n -e '/_GL_CXXDEFS/,$$p' \
 
122
          < $(top_srcdir)/build-aux/c++defs.h \
 
123
          > $@-t && \
 
124
        mv $@-t $@
 
125
MOSTLYCLEANFILES += c++defs.h c++defs.h-t
 
126
 
 
127
CXXDEFS_H=c++defs.h
 
128
 
 
129
EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h
 
130
 
 
131
## end   gnulib module c++defs
 
132
 
83
133
## begin gnulib module c-ctype
84
134
 
85
135
liblgnu_la_SOURCES += c-ctype.h c-ctype.c
101
151
# We need the following in order to create <errno.h> when the system
102
152
# doesn't have one that is POSIX compliant.
103
153
errno.h: errno.in.h
104
 
        rm -f $@-t $@
 
154
        $(AM_V_GEN)rm -f $@-t $@ && \
105
155
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
106
156
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
107
157
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
113
163
              -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
114
164
              -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
115
165
              < $(srcdir)/errno.in.h; \
116
 
        } > $@-t
 
166
        } > $@-t && \
117
167
        mv $@-t $@
118
168
MOSTLYCLEANFILES += errno.h errno.h-t
119
169
 
128
178
# We need the following in order to create <float.h> when the system
129
179
# doesn't have one that works with the given compiler.
130
180
float.h: float.in.h
131
 
        rm -f $@-t $@
 
181
        $(AM_V_GEN)rm -f $@-t $@ && \
132
182
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
133
183
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
134
184
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
135
185
              -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
136
186
              < $(srcdir)/float.in.h; \
137
 
        } > $@-t
 
187
        } > $@-t && \
138
188
        mv $@-t $@
139
189
MOSTLYCLEANFILES += float.h float.h-t
140
190
 
180
230
 
181
231
## end   gnulib module havelib
182
232
 
183
 
## begin gnulib module link-warning
184
 
 
185
 
LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
186
 
 
187
 
EXTRA_DIST += $(top_srcdir)/build-aux/link-warning.h
188
 
 
189
 
## end   gnulib module link-warning
190
 
 
191
233
## begin gnulib module lseek
192
234
 
193
235
 
197
239
 
198
240
## end   gnulib module lseek
199
241
 
 
242
## begin gnulib module memchr
 
243
 
 
244
 
 
245
EXTRA_DIST += memchr.c memchr.valgrind
 
246
 
 
247
EXTRA_liblgnu_la_SOURCES += memchr.c
 
248
 
 
249
## end   gnulib module memchr
 
250
 
200
251
## begin gnulib module memmem-simple
201
252
 
202
253
 
206
257
 
207
258
## end   gnulib module memmem-simple
208
259
 
209
 
## begin gnulib module memmove
210
 
 
211
 
 
212
 
EXTRA_DIST += memmove.c
213
 
 
214
 
EXTRA_liblgnu_la_SOURCES += memmove.c
215
 
 
216
 
## end   gnulib module memmove
217
 
 
218
260
## begin gnulib module minmax
219
261
 
220
262
liblgnu_la_SOURCES += minmax.h
223
265
 
224
266
## begin gnulib module netdb
225
267
 
226
 
BUILT_SOURCES += $(NETDB_H)
 
268
BUILT_SOURCES += netdb.h
227
269
 
228
270
# We need the following in order to create <netdb.h> when the system
229
271
# doesn't have one that works with the given compiler.
230
 
netdb.h: netdb.in.h
231
 
        rm -f $@-t $@
 
272
netdb.h: netdb.in.h $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
273
        $(AM_V_GEN)rm -f $@-t $@ && \
232
274
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
233
275
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
234
276
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
240
282
              -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \
241
283
              -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \
242
284
              -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \
 
285
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
286
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
243
287
              < $(srcdir)/netdb.in.h; \
244
 
        } > $@-t
 
288
        } > $@-t && \
245
289
        mv $@-t $@
246
290
MOSTLYCLEANFILES += netdb.h netdb.h-t
247
291
 
297
341
# We need the following in order to create <stdbool.h> when the system
298
342
# doesn't have one that works.
299
343
stdbool.h: stdbool.in.h
300
 
        rm -f $@-t $@
 
344
        $(AM_V_GEN)rm -f $@-t $@ && \
301
345
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
302
346
          sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
303
 
        } > $@-t
 
347
        } > $@-t && \
304
348
        mv $@-t $@
305
349
MOSTLYCLEANFILES += stdbool.h stdbool.h-t
306
350
 
308
352
 
309
353
## end   gnulib module stdbool
310
354
 
 
355
## begin gnulib module stddef
 
356
 
 
357
BUILT_SOURCES += $(STDDEF_H)
 
358
 
 
359
# We need the following in order to create <stddef.h> when the system
 
360
# doesn't have one that works with the given compiler.
 
361
stddef.h: stddef.in.h
 
362
        $(AM_V_GEN)rm -f $@-t $@ && \
 
363
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
364
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
365
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
366
              -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
 
367
              -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
 
368
              -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
 
369
              < $(srcdir)/stddef.in.h; \
 
370
        } > $@-t && \
 
371
        mv $@-t $@
 
372
MOSTLYCLEANFILES += stddef.h stddef.h-t
 
373
 
 
374
EXTRA_DIST += stddef.in.h
 
375
 
 
376
## end   gnulib module stddef
 
377
 
311
378
## begin gnulib module stdint
312
379
 
313
380
BUILT_SOURCES += $(STDINT_H)
315
382
# We need the following in order to create <stdint.h> when the system
316
383
# doesn't have one that works with the given compiler.
317
384
stdint.h: stdint.in.h
318
 
        rm -f $@-t $@
 
385
        $(AM_V_GEN)rm -f $@-t $@ && \
319
386
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
320
387
          sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
321
388
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
342
409
              -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
343
410
              -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
344
411
              < $(srcdir)/stdint.in.h; \
345
 
        } > $@-t
 
412
        } > $@-t && \
346
413
        mv $@-t $@
347
414
MOSTLYCLEANFILES += stdint.h stdint.h-t
348
415
 
356
423
 
357
424
# We need the following in order to create <stdio.h> when the system
358
425
# doesn't have one that works with the given compiler.
359
 
stdio.h: stdio.in.h
360
 
        rm -f $@-t $@
 
426
stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
427
        $(AM_V_GEN)rm -f $@-t $@ && \
361
428
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
362
429
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
363
430
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
364
431
              -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
 
432
              -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
 
433
              -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
 
434
              -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
 
435
              -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
365
436
              -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
366
437
              -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
 
438
              -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
 
439
              -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
 
440
              -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
 
441
              -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
 
442
              -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
 
443
              -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
 
444
              -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
 
445
              -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
 
446
              -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
 
447
              -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
 
448
              -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
 
449
              -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
 
450
              -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
 
451
              -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
 
452
              -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
367
453
              -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
368
454
              -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
 
455
              -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
 
456
              -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
 
457
              -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
 
458
              -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
 
459
              -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
 
460
              -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
369
461
              -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
370
462
              -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
 
463
              -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
 
464
              -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
 
465
              -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
 
466
              -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
371
467
              -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
372
468
              -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
373
469
              -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
374
470
              -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
375
471
              -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
376
472
              -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
377
 
              -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
378
 
              -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
379
 
              -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
380
 
              -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
381
 
              -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
382
 
              -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
383
 
              -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
384
 
              -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
385
 
              -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
386
 
              -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
387
 
              -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
388
 
              -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
389
 
              -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
390
 
              -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
391
 
              -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
392
 
              -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
393
 
              -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
394
 
              -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
395
 
              -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
396
 
              -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
397
 
              -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
398
 
              -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
399
 
              -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
400
 
              -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
401
 
              -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
402
 
              -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
403
 
              -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
404
 
              -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
405
 
              -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
 
473
              < $(srcdir)/stdio.in.h | \
 
474
          sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
 
475
              -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
 
476
              -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
 
477
              -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
406
478
              -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
407
 
              -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
408
479
              -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
409
 
              -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
410
 
              -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
411
480
              -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
 
481
              -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
 
482
              -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
 
483
              -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
 
484
              -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
 
485
              -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
412
486
              -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
413
 
              -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
414
 
              -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
415
 
              -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
416
 
              -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
417
 
              -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
418
 
              -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
 
487
              -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
 
488
              -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
419
489
              -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
 
490
              -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
 
491
              -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
420
492
              -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
 
493
              -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
421
494
              -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
422
 
              -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
 
495
              -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
423
496
              -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
424
 
              -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
425
 
              -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
426
 
              -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
427
 
              -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
428
 
              -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
 
497
              -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
429
498
              -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
 
499
              -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
430
500
              -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
431
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
432
 
              < $(srcdir)/stdio.in.h; \
433
 
        } > $@-t
 
501
              -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
 
502
              -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
 
503
              -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
 
504
              -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
 
505
              -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
 
506
              -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
 
507
              -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
 
508
              -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
 
509
              -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
 
510
              -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
 
511
              -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
 
512
              -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
 
513
              -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
 
514
              -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
 
515
              -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
 
516
              -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
 
517
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
518
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
519
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
 
520
        } > $@-t && \
434
521
        mv $@-t $@
435
522
MOSTLYCLEANFILES += stdio.h stdio.h-t
436
523
 
446
533
 
447
534
# We need the following in order to create <stdlib.h> when the system
448
535
# doesn't have one that works with the given compiler.
449
 
stdlib.h: stdlib.in.h
450
 
        rm -f $@-t $@
 
536
stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
537
        $(AM_V_GEN)rm -f $@-t $@ && \
451
538
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
452
539
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
453
540
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
454
541
              -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
455
 
              -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
456
 
              -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
457
 
              -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
 
542
              -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
458
543
              -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
459
 
              -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
 
544
              -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
460
545
              -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
461
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' \
462
549
              -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
 
550
              -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
 
551
              -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
463
552
              -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
 
553
              -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
 
554
              -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
464
555
              -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
465
556
              -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
 
557
              -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
 
558
              -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
466
559
              -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
467
560
              -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
468
561
              -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
469
562
              -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
470
563
              -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
 
564
              -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
471
565
              -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
472
566
              -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
473
567
              -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
 
568
              -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
 
569
              -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
474
570
              -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
 
571
              -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
475
572
              -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
476
573
              -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
 
574
              -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
 
575
              -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
 
576
              -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
 
577
              -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
 
578
              -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
 
579
              -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
 
580
              -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
477
581
              -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
478
 
              -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
 
582
              -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
479
583
              -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
480
584
              -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
481
585
              -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
483
587
              -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
484
588
              -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
485
589
              -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
 
590
              -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
486
591
              -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
487
 
              -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
 
592
              -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
488
593
              -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
489
594
              -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
 
595
              -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
 
596
              -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
490
597
              -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
491
 
              -e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
492
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
598
              -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
 
599
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
600
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
601
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
493
602
              < $(srcdir)/stdlib.in.h; \
494
 
        } > $@-t
 
603
        } > $@-t && \
495
604
        mv $@-t $@
496
605
MOSTLYCLEANFILES += stdlib.h stdlib.h-t
497
606
 
514
623
 
515
624
# We need the following in order to create <string.h> when the system
516
625
# doesn't have one that works with the given compiler.
517
 
string.h: string.in.h
518
 
        rm -f $@-t $@
 
626
string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
627
        $(AM_V_GEN)rm -f $@-t $@ && \
519
628
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
520
629
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
521
630
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
534
643
              -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
535
644
              -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
536
645
              -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
 
646
              -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \
537
647
              -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
538
648
              -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
539
649
              -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
542
652
              -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
543
653
              -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
544
654
              -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
 
655
              -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \
545
656
              -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
546
657
              -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
547
658
              -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
552
663
              -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
553
664
              -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
554
665
              -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
 
666
              < $(srcdir)/string.in.h | \
 
667
          sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
 
668
              -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
555
669
              -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
556
670
              -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
557
671
              -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
560
674
              -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
561
675
              -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
562
676
              -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
563
 
              -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
564
677
              -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
565
678
              -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
566
679
              -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
567
680
              -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
568
681
              -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
569
682
              -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
570
 
              -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
571
683
              -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
572
684
              -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
 
685
              -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
 
686
              -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
573
687
              -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
574
688
              -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
575
689
              -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
576
690
              -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
577
691
              -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
 
692
              -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
 
693
              -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
 
694
              -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
578
695
              -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
579
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
696
              -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
 
697
              -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
 
698
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
699
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
700
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
580
701
              < $(srcdir)/string.in.h; \
581
 
        } > $@-t
 
702
        } > $@-t && \
582
703
        mv $@-t $@
583
704
MOSTLYCLEANFILES += string.h string.h-t
584
705
 
592
713
 
593
714
# We need the following in order to create <strings.h> when the system
594
715
# doesn't have one that works with the given compiler.
595
 
strings.h: strings.in.h
596
 
        rm -f $@-t $@
 
716
strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
 
717
        $(AM_V_GEN)rm -f $@-t $@ && \
597
718
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
598
719
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
599
720
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
600
721
              -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
601
722
              -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
602
723
              -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
603
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
724
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
725
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
604
726
              < $(srcdir)/strings.in.h; \
605
 
        } > $@-t
 
727
        } > $@-t && \
606
728
        mv $@-t $@
607
729
MOSTLYCLEANFILES += strings.h strings.h-t
608
730
 
621
743
 
622
744
## begin gnulib module sys_socket
623
745
 
624
 
BUILT_SOURCES += $(SYS_SOCKET_H)
 
746
BUILT_SOURCES += sys/socket.h
625
747
 
626
748
# We need the following in order to create <sys/socket.h> when the system
627
749
# doesn't have one that works with the given compiler.
628
 
sys/socket.h: sys_socket.in.h
629
 
        @MKDIR_P@ sys
 
750
sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
 
751
        $(AM_V_at)$(MKDIR_P) sys
 
752
        $(AM_V_GEN)rm -f $@-t $@ && \
630
753
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
631
754
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
632
755
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
647
770
              -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
648
771
              -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
649
772
              -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
 
773
              -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \
650
774
              -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
651
775
              -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
652
776
              -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
653
777
              -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
654
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
778
              -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
 
779
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
780
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
781
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
655
782
              < $(srcdir)/sys_socket.in.h; \
656
 
        } > $@-t
 
783
        } > $@-t && \
657
784
        mv -f $@-t $@
658
785
MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
659
786
MOSTLYCLEANDIRS += sys
664
791
 
665
792
## begin gnulib module sys_stat
666
793
 
667
 
BUILT_SOURCES += $(SYS_STAT_H)
 
794
BUILT_SOURCES += sys/stat.h
668
795
 
669
796
# We need the following in order to create <sys/stat.h> when the system
670
797
# has one that is incomplete.
671
 
sys/stat.h: sys_stat.in.h
672
 
        @MKDIR_P@ sys
673
 
        rm -f $@-t $@
 
798
sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
799
        $(AM_V_at)$(MKDIR_P) sys
 
800
        $(AM_V_GEN)rm -f $@-t $@ && \
674
801
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
675
802
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
676
803
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
677
804
              -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
 
805
              -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
 
806
              -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
 
807
              -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
678
808
              -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
679
809
              -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
 
810
              -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
 
811
              -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
 
812
              -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
 
813
              -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
 
814
              -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
 
815
              -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
 
816
              -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
 
817
              -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
 
818
              -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
 
819
              -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
680
820
              -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
681
821
              -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
 
822
              -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
 
823
              -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
 
824
              -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
 
825
              -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
 
826
              -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
 
827
              -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
 
828
              -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
 
829
              -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
 
830
              -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
682
831
              -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
683
832
              -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
684
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
833
              -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
 
834
              -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
 
835
              -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
 
836
              -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
 
837
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
838
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
839
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
685
840
              < $(srcdir)/sys_stat.in.h; \
686
 
        } > $@-t
 
841
        } > $@-t && \
687
842
        mv $@-t $@
688
843
MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
689
844
MOSTLYCLEANDIRS += sys
698
853
 
699
854
# We need the following in order to create <time.h> when the system
700
855
# doesn't have one that works with the given compiler.
701
 
time.h: time.in.h
702
 
        rm -f $@-t $@
 
856
time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
857
        $(AM_V_GEN)rm -f $@-t $@ && \
703
858
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
704
859
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
705
860
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
706
 
              -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
707
 
              -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
708
 
              -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
709
 
              -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
710
 
              -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
711
 
              -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
712
 
              -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
 
861
              -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
 
862
              -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
 
863
              -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
 
864
              -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
 
865
              -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
 
866
              -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
 
867
              -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \
 
868
              -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
 
869
              -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
 
870
              -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
 
871
              -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
 
872
              -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
 
873
              -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
 
874
              -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
 
875
              -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
 
876
              -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
 
877
              -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
 
878
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
879
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
880
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
713
881
              < $(srcdir)/time.in.h; \
714
 
        } > $@-t
 
882
        } > $@-t && \
715
883
        mv $@-t $@
716
884
MOSTLYCLEANFILES += time.h time.h-t
717
885
 
734
902
 
735
903
# We need the following in order to create an empty placeholder for
736
904
# <unistd.h> when the system doesn't have one.
737
 
unistd.h: unistd.in.h
738
 
        rm -f $@-t $@
 
905
unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
906
        $(AM_V_GEN)rm -f $@-t $@ && \
739
907
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
740
908
          sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
741
909
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
744
912
              -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
745
913
              -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
746
914
              -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
 
915
              -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
747
916
              -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
748
917
              -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
 
918
              -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
749
919
              -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
 
920
              -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
750
921
              -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
751
922
              -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
752
923
              -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
753
924
              -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
754
925
              -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
 
926
              -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
755
927
              -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
 
928
              -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
756
929
              -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
757
930
              -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
758
931
              -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
759
932
              -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
760
933
              -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
 
934
              -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
761
935
              -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
 
936
              -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
 
937
              -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
 
938
              -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
762
939
              -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
 
940
              -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
 
941
              -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
763
942
              -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
 
943
              -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
 
944
              -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
 
945
              -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
 
946
              -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
764
947
              -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
 
948
              -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
 
949
              -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
 
950
              -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
765
951
              -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
 
952
              < $(srcdir)/unistd.in.h | \
 
953
          sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
766
954
              -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
 
955
              -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
767
956
              -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
 
957
              -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
 
958
              -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
 
959
              -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
768
960
              -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
769
961
              -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
770
962
              -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
771
963
              -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
 
964
              -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
772
965
              -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
 
966
              -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
773
967
              -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
774
 
              -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
 
968
              -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
775
969
              -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
 
970
              -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
 
971
              -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
 
972
              -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
 
973
              -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
776
974
              -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
 
975
              -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
777
976
              -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
 
977
              -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
 
978
              -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
 
979
              -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \
 
980
              -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
 
981
              -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
778
982
              -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
779
983
              -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
 
984
              -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
 
985
              -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
780
986
              -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
781
987
              -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
782
988
              -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
783
989
              -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
784
 
              -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
 
990
              -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
 
991
              -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
 
992
              -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
785
993
              -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
 
994
              -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
786
995
              -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
787
996
              -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
 
997
              -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
 
998
              -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
788
999
              -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
 
1000
              -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
 
1001
              -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
 
1002
              -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
 
1003
              -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
 
1004
              -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
 
1005
              -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
 
1006
              -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
 
1007
              -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
 
1008
              -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
 
1009
              -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
789
1010
              -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
790
1011
              -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
791
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
792
 
              < $(srcdir)/unistd.in.h; \
793
 
        } > $@-t
 
1012
              -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
 
1013
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
1014
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
1015
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
 
1016
        } > $@-t && \
794
1017
        mv $@-t $@
795
1018
MOSTLYCLEANFILES += unistd.h unistd.h-t
796
1019
 
825
1048
 
826
1049
## end   gnulib module vsnprintf
827
1050
 
 
1051
## begin gnulib module warn-on-use
 
1052
 
 
1053
BUILT_SOURCES += warn-on-use.h
 
1054
# The warn-on-use.h that gets inserted into generated .h files is the same as
 
1055
# build-aux/warn-on-use.h, except that it has the copyright header cut off.
 
1056
warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
 
1057
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1058
        sed -n -e '/^.ifndef/,$$p' \
 
1059
          < $(top_srcdir)/build-aux/warn-on-use.h \
 
1060
          > $@-t && \
 
1061
        mv $@-t $@
 
1062
MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
 
1063
 
 
1064
WARN_ON_USE_H=warn-on-use.h
 
1065
 
 
1066
EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
 
1067
 
 
1068
## end   gnulib module warn-on-use
 
1069
 
828
1070
## begin gnulib module wchar
829
1071
 
830
 
BUILT_SOURCES += $(WCHAR_H)
 
1072
BUILT_SOURCES += wchar.h
831
1073
 
832
1074
# We need the following in order to create <wchar.h> when the system
833
1075
# version does not work standalone.
834
 
wchar.h: wchar.in.h
835
 
        rm -f $@-t $@
 
1076
wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
1077
        $(AM_V_GEN)rm -f $@-t $@ && \
836
1078
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
837
1079
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
838
1080
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
873
1115
              -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
874
1116
              -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
875
1117
              -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
876
 
              -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
 
1118
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
1119
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
1120
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
877
1121
            < $(srcdir)/wchar.in.h; \
878
 
        } > $@-t
 
1122
        } > $@-t && \
879
1123
        mv $@-t $@
880
1124
MOSTLYCLEANFILES += wchar.h wchar.h-t
881
1125