Add an entertaining `procedure->pointer' test.
[bpt/guile.git] / lib / Makefile.am
CommitLineData
103dc4d4
LC
1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
61cd9dc9 3# Copyright (C) 2002-2010 Free Software Foundation, Inc.
103dc4d4
LC
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.
5ad8e59f 12# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --libtool --macro-prefix=gl --no-vc-files alignof alloca-opt announce-gen autobuild byteswap canonicalize-lgpl duplocale environ extensions flock fpieee full-read full-write func gendocs getaddrinfo git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton lib-symbol-versions lib-symbol-visibility libunistring locale maintainer-makefile putenv stdlib strcase strftime striconveh string sys_stat verify version-etc-fsf vsnprintf warnings
103dc4d4 13
24d56127 14AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects
103dc4d4 15
aa7a939c 16SUBDIRS =
103dc4d4
LC
17noinst_HEADERS =
18noinst_LIBRARIES =
19noinst_LTLIBRARIES =
20EXTRA_DIST =
21BUILT_SOURCES =
22SUFFIXES =
23MOSTLYCLEANFILES = core *.stackdump
24MOSTLYCLEANDIRS =
25CLEANFILES =
26DISTCLEANFILES =
27MAINTAINERCLEANFILES =
28
29AM_CPPFLAGS =
f240aacb 30AM_CFLAGS =
103dc4d4
LC
31
32noinst_LTLIBRARIES += libgnu.la
33
34libgnu_la_SOURCES =
35libgnu_la_LIBADD = $(gl_LTLIBOBJS)
36libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
37EXTRA_libgnu_la_SOURCES =
38libgnu_la_LDFLAGS = $(AM_LDFLAGS)
39
8912421c
LC
40## begin gnulib module alignof
41
42
43EXTRA_DIST += alignof.h
44
45## end gnulib module alignof
46
103dc4d4
LC
47## begin gnulib module alloca-opt
48
49BUILT_SOURCES += $(ALLOCA_H)
50
51# We need the following in order to create <alloca.h> when the system
52# doesn't have one that works with the given compiler.
53alloca.h: alloca.in.h
8912421c 54 $(AM_V_GEN)rm -f $@-t $@ && \
103dc4d4
LC
55 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
56 cat $(srcdir)/alloca.in.h; \
8912421c 57 } > $@-t && \
103dc4d4
LC
58 mv -f $@-t $@
59MOSTLYCLEANFILES += alloca.h alloca.h-t
60
61EXTRA_DIST += alloca.in.h
62
63## end gnulib module alloca-opt
64
c84bdaf6
LC
65## begin gnulib module announce-gen
66
67
68EXTRA_DIST += $(top_srcdir)/build-aux/announce-gen
69
70## end gnulib module announce-gen
71
1cd4fffc
LC
72## begin gnulib module arg-nonnull
73
61cd9dc9
LC
74# The BUILT_SOURCES created by this Makefile snippet are not used via #include
75# statements but through direct file reference. Therefore this snippet must be
76# present in all Makefile.am that need it. This is ensured by the applicability
77# 'all' defined above.
78
1cd4fffc
LC
79BUILT_SOURCES += arg-nonnull.h
80# The arg-nonnull.h that gets inserted into generated .h files is the same as
81# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
82arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
83 $(AM_V_GEN)rm -f $@-t $@ && \
84 sed -n -e '/GL_ARG_NONNULL/,$$p' \
85 < $(top_srcdir)/build-aux/arg-nonnull.h \
86 > $@-t && \
87 mv $@-t $@
88MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
89
90ARG_NONNULL_H=arg-nonnull.h
91
92EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h
93
94## end gnulib module arg-nonnull
95
8912421c
LC
96## begin gnulib module arpa_inet
97
61cd9dc9 98BUILT_SOURCES += arpa/inet.h
8912421c
LC
99
100# We need the following in order to create <arpa/inet.h> when the system
101# doesn't have one.
61cd9dc9 102arpa/inet.h: arpa_inet.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c
LC
103 $(AM_V_at)$(MKDIR_P) arpa
104 $(AM_V_GEN)rm -f $@-t $@ && \
105 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
106 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
107 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
108 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
109 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
110 -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
111 -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
112 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
113 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
1cd4fffc 114 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 115 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
116 < $(srcdir)/arpa_inet.in.h; \
117 } > $@-t && \
118 mv $@-t $@
119MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
120MOSTLYCLEANDIRS += arpa
121
122EXTRA_DIST += arpa_inet.in.h
123
124## end gnulib module arpa_inet
125
24d56127
LC
126## begin gnulib module byteswap
127
128BUILT_SOURCES += $(BYTESWAP_H)
129
130# We need the following in order to create <byteswap.h> when the system
131# doesn't have one.
132byteswap.h: byteswap.in.h
8912421c 133 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
134 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
135 cat $(srcdir)/byteswap.in.h; \
8912421c 136 } > $@-t && \
24d56127
LC
137 mv -f $@-t $@
138MOSTLYCLEANFILES += byteswap.h byteswap.h-t
139
140EXTRA_DIST += byteswap.in.h
141
142## end gnulib module byteswap
143
f4c79b3c
LC
144## begin gnulib module c++defs
145
146# The BUILT_SOURCES created by this Makefile snippet are not used via #include
147# statements but through direct file reference. Therefore this snippet must be
148# present in all Makefile.am that need it. This is ensured by the applicability
149# 'all' defined above.
150
151BUILT_SOURCES += c++defs.h
152# The c++defs.h that gets inserted into generated .h files is the same as
153# build-aux/c++defs.h, except that it has the copyright header cut off.
154c++defs.h: $(top_srcdir)/build-aux/c++defs.h
155 $(AM_V_GEN)rm -f $@-t $@ && \
156 sed -n -e '/_GL_CXXDEFS/,$$p' \
157 < $(top_srcdir)/build-aux/c++defs.h \
158 > $@-t && \
159 mv $@-t $@
160MOSTLYCLEANFILES += c++defs.h c++defs.h-t
161
162CXXDEFS_H=c++defs.h
163
164EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h
165
166## end gnulib module c++defs
167
24d56127
LC
168## begin gnulib module c-ctype
169
170libgnu_la_SOURCES += c-ctype.h c-ctype.c
171
172## end gnulib module c-ctype
173
174## begin gnulib module c-strcase
175
176libgnu_la_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
177
178## end gnulib module c-strcase
179
180## begin gnulib module c-strcaseeq
181
182
183EXTRA_DIST += c-strcaseeq.h
184
185## end gnulib module c-strcaseeq
186
ffca4c22
AW
187## begin gnulib module canonicalize-lgpl
188
189
8912421c 190EXTRA_DIST += canonicalize-lgpl.c
ffca4c22
AW
191
192EXTRA_libgnu_la_SOURCES += canonicalize-lgpl.c
193
194## end gnulib module canonicalize-lgpl
195
4a462e35
NJ
196## begin gnulib module configmake
197
198# Retrieve values of the variables through 'configure' followed by
199# 'make', not directly through 'configure', so that a user who
200# sets some of these variables consistently on the 'make' command
201# line gets correct results.
202#
203# One advantage of this approach, compared to the classical
204# approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
205# is that it protects against the use of undefined variables.
206# If, say, $(libdir) is not set in the Makefile, LIBDIR is not
207# defined by this module, and code using LIBDIR gives a
208# compilation error.
209#
210# Another advantage is that 'make' output is shorter.
211#
212# Listed in the same order as the GNU makefile conventions.
213# The Automake-defined pkg* macros are appended, in the order
214# listed in the Automake 1.10a+ documentation.
215configmake.h: Makefile
8912421c 216 $(AM_V_GEN)rm -f $@-t && \
4a462e35
NJ
217 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
218 echo '#define PREFIX "$(prefix)"'; \
219 echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
220 echo '#define BINDIR "$(bindir)"'; \
221 echo '#define SBINDIR "$(sbindir)"'; \
222 echo '#define LIBEXECDIR "$(libexecdir)"'; \
223 echo '#define DATAROOTDIR "$(datarootdir)"'; \
224 echo '#define DATADIR "$(datadir)"'; \
225 echo '#define SYSCONFDIR "$(sysconfdir)"'; \
226 echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
227 echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
228 echo '#define INCLUDEDIR "$(includedir)"'; \
229 echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
230 echo '#define DOCDIR "$(docdir)"'; \
231 echo '#define INFODIR "$(infodir)"'; \
232 echo '#define HTMLDIR "$(htmldir)"'; \
233 echo '#define DVIDIR "$(dvidir)"'; \
234 echo '#define PDFDIR "$(pdfdir)"'; \
235 echo '#define PSDIR "$(psdir)"'; \
236 echo '#define LIBDIR "$(libdir)"'; \
237 echo '#define LISPDIR "$(lispdir)"'; \
238 echo '#define LOCALEDIR "$(localedir)"'; \
239 echo '#define MANDIR "$(mandir)"'; \
240 echo '#define MANEXT "$(manext)"'; \
241 echo '#define PKGDATADIR "$(pkgdatadir)"'; \
242 echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
243 echo '#define PKGLIBDIR "$(pkglibdir)"'; \
244 echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
8912421c 245 } | sed '/""/d' > $@-t && \
f240aacb
LC
246 if test -f $@ && cmp $@-t $@ > /dev/null; then \
247 rm -f $@-t; \
248 else \
249 rm -f $@; mv $@-t $@; \
250 fi
251
4a462e35
NJ
252BUILT_SOURCES += configmake.h
253CLEANFILES += configmake.h configmake.h-t
254
255## end gnulib module configmake
256
c3b16a5d
LC
257## begin gnulib module duplocale
258
259
260EXTRA_DIST += duplocale.c
261
262EXTRA_libgnu_la_SOURCES += duplocale.c
263
264## end gnulib module duplocale
265
c4b681fd
LC
266## begin gnulib module errno
267
268BUILT_SOURCES += $(ERRNO_H)
269
270# We need the following in order to create <errno.h> when the system
271# doesn't have one that is POSIX compliant.
272errno.h: errno.in.h
8912421c 273 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
274 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
275 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
276 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
277 -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
278 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
279 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
280 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
281 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
282 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
283 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
284 < $(srcdir)/errno.in.h; \
8912421c 285 } > $@-t && \
c4b681fd
LC
286 mv $@-t $@
287MOSTLYCLEANFILES += errno.h errno.h-t
288
289EXTRA_DIST += errno.in.h
290
291## end gnulib module errno
292
293## begin gnulib module float
294
295BUILT_SOURCES += $(FLOAT_H)
296
297# We need the following in order to create <float.h> when the system
298# doesn't have one that works with the given compiler.
299float.h: float.in.h
8912421c 300 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
301 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
302 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
303 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
304 -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
305 < $(srcdir)/float.in.h; \
8912421c 306 } > $@-t && \
c4b681fd
LC
307 mv $@-t $@
308MOSTLYCLEANFILES += float.h float.h-t
309
310EXTRA_DIST += float.in.h
311
312## end gnulib module float
313
f240aacb
LC
314## begin gnulib module flock
315
316
317EXTRA_DIST += flock.c
318
319EXTRA_libgnu_la_SOURCES += flock.c
320
321## end gnulib module flock
322
9b36a80c
LC
323## begin gnulib module full-read
324
325libgnu_la_SOURCES += full-read.h full-read.c
326
327## end gnulib module full-read
328
329## begin gnulib module full-write
330
331libgnu_la_SOURCES += full-write.h full-write.c
332
333## end gnulib module full-write
334
c84bdaf6
LC
335## begin gnulib module gendocs
336
337
338EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh
339
340## end gnulib module gendocs
341
61cd9dc9
LC
342## begin gnulib module getaddrinfo
343
344
345EXTRA_DIST += gai_strerror.c getaddrinfo.c
346
347EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c
348
349## end gnulib module getaddrinfo
350
4f02b98d
LC
351## begin gnulib module gettext-h
352
353libgnu_la_SOURCES += gettext.h
354
355## end gnulib module gettext-h
356
5ad8e59f
LC
357## begin gnulib module git-version-gen
358
359
360EXTRA_DIST += $(top_srcdir)/build-aux/git-version-gen
361
362## end gnulib module git-version-gen
363
c84bdaf6
LC
364## begin gnulib module gitlog-to-changelog
365
366
367EXTRA_DIST += $(top_srcdir)/build-aux/gitlog-to-changelog
368
369## end gnulib module gitlog-to-changelog
370
371## begin gnulib module gnu-web-doc-update
372
373
374EXTRA_DIST += $(top_srcdir)/build-aux/gnu-web-doc-update
375
376## end gnulib module gnu-web-doc-update
377
378## begin gnulib module gnumakefile
379
380distclean-local: clean-GNUmakefile
381clean-GNUmakefile:
382 test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
383
384EXTRA_DIST += $(top_srcdir)/GNUmakefile
385
386## end gnulib module gnumakefile
387
388## begin gnulib module gnupload
389
390
391EXTRA_DIST += $(top_srcdir)/build-aux/gnupload
392
393## end gnulib module gnupload
394
24d56127
LC
395## begin gnulib module gperf
396
397GPERF = gperf
398
399## end gnulib module gperf
400
401## begin gnulib module havelib
402
403
404EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
405
406## end gnulib module havelib
407
f4c79b3c 408## begin gnulib module iconv-h
24d56127
LC
409
410BUILT_SOURCES += $(ICONV_H)
411
412# We need the following in order to create <iconv.h> when the system
413# doesn't have one that works with the given compiler.
f4c79b3c 414iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 415 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
416 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
417 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
418 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
419 -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \
420 -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \
421 -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \
422 -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
423 -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \
f4c79b3c 424 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 425 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 426 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
24d56127 427 < $(srcdir)/iconv.in.h; \
8912421c 428 } > $@-t && \
24d56127
LC
429 mv $@-t $@
430MOSTLYCLEANFILES += iconv.h iconv.h-t
431
f4c79b3c
LC
432EXTRA_DIST += iconv.in.h
433
434## end gnulib module iconv-h
435
436## begin gnulib module iconv_open
437
24d56127
LC
438iconv_open-aix.h: iconv_open-aix.gperf
439 $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t
440 mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h
441iconv_open-hpux.h: iconv_open-hpux.gperf
442 $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t
443 mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h
444iconv_open-irix.h: iconv_open-irix.gperf
445 $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t
446 mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h
447iconv_open-osf.h: iconv_open-osf.gperf
448 $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t
449 mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h
8912421c
LC
450iconv_open-solaris.h: iconv_open-solaris.gperf
451 $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t
452 mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h
453BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
454MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t iconv_open-solaris.h-t
455MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
456EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
24d56127 457
f4c79b3c 458EXTRA_DIST += iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c
24d56127
LC
459
460EXTRA_libgnu_la_SOURCES += iconv_open.c
461
462## end gnulib module iconv_open
463
464## begin gnulib module iconv_open-utf
465
466
467EXTRA_DIST += iconv.c iconv_close.c
468
469EXTRA_libgnu_la_SOURCES += iconv.c iconv_close.c
470
471## end gnulib module iconv_open-utf
472
8912421c
LC
473## begin gnulib module inet_ntop
474
475
476EXTRA_DIST += inet_ntop.c
477
478EXTRA_libgnu_la_SOURCES += inet_ntop.c
479
480## end gnulib module inet_ntop
481
482## begin gnulib module inet_pton
483
484
485EXTRA_DIST += inet_pton.c
486
487EXTRA_libgnu_la_SOURCES += inet_pton.c
488
489## end gnulib module inet_pton
490
d9a9e182
AW
491## begin gnulib module lib-symbol-visibility
492
493# The value of $(CFLAG_VISIBILITY) needs to be added to the CFLAGS for the
494# compilation of all sources that make up the library. This line here does it
495# only for the gnulib part of it. The developer is responsible for adding
496# $(CFLAG_VISIBILITY) to the Makefile.ams of the other portions of the library.
497AM_CFLAGS += $(CFLAG_VISIBILITY)
498
499## end gnulib module lib-symbol-visibility
500
a927b6c1
LC
501## begin gnulib module libunistring
502
503
504EXTRA_DIST += libunistring.valgrind
505
506## end gnulib module libunistring
507
4a462e35
NJ
508## begin gnulib module localcharset
509
510libgnu_la_SOURCES += localcharset.h localcharset.c
511
512# We need the following in order to install a simple file in $(libdir)
513# which is shared with other installed packages. We use a list of referencing
514# packages so that "make uninstall" will remove the file if and only if it
515# is not used by another installed package.
516# On systems with glibc-2.1 or newer, the file is redundant, therefore we
517# avoid installing it.
518
519all-local: charset.alias ref-add.sed ref-del.sed
520
521charset_alias = $(DESTDIR)$(libdir)/charset.alias
522charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
f240aacb
LC
523install-exec-local: install-exec-localcharset
524install-exec-localcharset: all-local
525 if test $(GLIBC21) = no; then \
526 case '$(host_os)' in \
527 darwin[56]*) \
528 need_charset_alias=true ;; \
529 darwin* | cygwin* | mingw* | pw32* | cegcc*) \
530 need_charset_alias=false ;; \
531 *) \
532 need_charset_alias=true ;; \
533 esac ; \
534 else \
535 need_charset_alias=false ; \
536 fi ; \
537 if $$need_charset_alias; then \
538 $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
539 fi ; \
4a462e35
NJ
540 if test -f $(charset_alias); then \
541 sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
542 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
543 rm -f $(charset_tmp) ; \
544 else \
f240aacb 545 if $$need_charset_alias; then \
4a462e35
NJ
546 sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
547 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
548 rm -f $(charset_tmp) ; \
549 fi ; \
550 fi
551
f240aacb
LC
552uninstall-local: uninstall-localcharset
553uninstall-localcharset: all-local
4a462e35
NJ
554 if test -f $(charset_alias); then \
555 sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
556 if grep '^# Packages using this file: $$' $(charset_tmp) \
557 > /dev/null; then \
558 rm -f $(charset_alias); \
559 else \
560 $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
561 fi; \
562 rm -f $(charset_tmp); \
563 fi
564
565charset.alias: config.charset
8912421c
LC
566 $(AM_V_GEN)rm -f t-$@ $@ && \
567 $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \
4a462e35
NJ
568 mv t-$@ $@
569
570SUFFIXES += .sed .sin
571.sin.sed:
8912421c
LC
572 $(AM_V_GEN)rm -f t-$@ $@ && \
573 sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \
4a462e35
NJ
574 mv t-$@ $@
575
576CLEANFILES += charset.alias ref-add.sed ref-del.sed
577
578EXTRA_DIST += config.charset ref-add.sin ref-del.sin
579
580## end gnulib module localcharset
581
414e4441
LC
582## begin gnulib module locale
583
61cd9dc9 584BUILT_SOURCES += locale.h
414e4441
LC
585
586# We need the following in order to create <locale.h> when the system
587# doesn't have one that provides all definitions.
f4c79b3c 588locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
414e4441
LC
589 $(AM_V_GEN)rm -f $@-t $@ && \
590 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
591 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
592 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
593 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
594 -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
f4c79b3c 595 -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
414e4441
LC
596 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
597 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
f4c79b3c 598 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 599 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 600 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
414e4441
LC
601 < $(srcdir)/locale.in.h; \
602 } > $@-t && \
603 mv $@-t $@
604MOSTLYCLEANFILES += locale.h locale.h-t
605
606EXTRA_DIST += locale.in.h
607
608## end gnulib module locale
609
8912421c
LC
610## begin gnulib module lstat
611
612
613EXTRA_DIST += lstat.c
614
615EXTRA_libgnu_la_SOURCES += lstat.c
616
617## end gnulib module lstat
618
c84bdaf6
LC
619## begin gnulib module maintainer-makefile
620
621EXTRA_DIST += $(top_srcdir)/maint.mk
622
623## end gnulib module maintainer-makefile
624
f240aacb
LC
625## begin gnulib module malloc-posix
626
627
628EXTRA_DIST += malloc.c
629
630EXTRA_libgnu_la_SOURCES += malloc.c
631
632## end gnulib module malloc-posix
633
ffca4c22
AW
634## begin gnulib module malloca
635
636libgnu_la_SOURCES += malloca.c
637
638EXTRA_DIST += malloca.h malloca.valgrind
639
640## end gnulib module malloca
641
4a462e35
NJ
642## begin gnulib module mbrlen
643
644
645EXTRA_DIST += mbrlen.c
646
647EXTRA_libgnu_la_SOURCES += mbrlen.c
648
649## end gnulib module mbrlen
650
651## begin gnulib module mbrtowc
652
653
654EXTRA_DIST += mbrtowc.c
655
656EXTRA_libgnu_la_SOURCES += mbrtowc.c
657
658## end gnulib module mbrtowc
659
660## begin gnulib module mbsinit
661
662
663EXTRA_DIST += mbsinit.c
664
665EXTRA_libgnu_la_SOURCES += mbsinit.c
666
667## end gnulib module mbsinit
668
c4b681fd
LC
669## begin gnulib module memchr
670
671
672EXTRA_DIST += memchr.c memchr.valgrind
673
674EXTRA_libgnu_la_SOURCES += memchr.c
675
676## end gnulib module memchr
677
61cd9dc9
LC
678## begin gnulib module netdb
679
a927b6c1 680BUILT_SOURCES += netdb.h
61cd9dc9
LC
681
682# We need the following in order to create <netdb.h> when the system
683# doesn't have one that works with the given compiler.
a927b6c1 684netdb.h: netdb.in.h $(ARG_NONNULL_H) $(WARN_ON_USE_H)
61cd9dc9
LC
685 $(AM_V_GEN)rm -f $@-t $@ && \
686 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
687 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
688 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
689 -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \
690 -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \
691 -e 's|@''GNULIB_GETADDRINFO''@|$(GNULIB_GETADDRINFO)|g' \
692 -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \
693 -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \
694 -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \
695 -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \
696 -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \
697 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
a927b6c1 698 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
61cd9dc9
LC
699 < $(srcdir)/netdb.in.h; \
700 } > $@-t && \
701 mv $@-t $@
702MOSTLYCLEANFILES += netdb.h netdb.h-t
703
704EXTRA_DIST += netdb.in.h
705
706## end gnulib module netdb
707
8912421c
LC
708## begin gnulib module netinet_in
709
710BUILT_SOURCES += $(NETINET_IN_H)
711
712# We need the following in order to create <netinet/in.h> when the system
713# doesn't have one.
714netinet/in.h: netinet_in.in.h
715 $(AM_V_at)$(MKDIR_P) netinet
716 $(AM_V_GEN)rm -f $@-t $@ && \
717 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
718 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
719 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
720 -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
721 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
722 < $(srcdir)/netinet_in.in.h; \
723 } > $@-t && \
724 mv $@-t $@
725MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
726MOSTLYCLEANDIRS += netinet
727
728EXTRA_DIST += netinet_in.in.h
729
730## end gnulib module netinet_in
731
ffca4c22
AW
732## begin gnulib module pathmax
733
734
735EXTRA_DIST += pathmax.h
736
737## end gnulib module pathmax
738
f240aacb
LC
739## begin gnulib module putenv
740
741
742EXTRA_DIST += putenv.c
743
744EXTRA_libgnu_la_SOURCES += putenv.c
745
746## end gnulib module putenv
747
ffca4c22
AW
748## begin gnulib module readlink
749
750
751EXTRA_DIST += readlink.c
752
753EXTRA_libgnu_la_SOURCES += readlink.c
754
755## end gnulib module readlink
756
9b36a80c
LC
757## begin gnulib module safe-read
758
759
760EXTRA_DIST += safe-read.c safe-read.h
761
762EXTRA_libgnu_la_SOURCES += safe-read.c
763
764## end gnulib module safe-read
765
766## begin gnulib module safe-write
767
768
769EXTRA_DIST += safe-write.c safe-write.h
770
771EXTRA_libgnu_la_SOURCES += safe-write.c
772
773## end gnulib module safe-write
774
c4b681fd
LC
775## begin gnulib module size_max
776
777libgnu_la_SOURCES += size_max.h
778
779## end gnulib module size_max
780
61cd9dc9
LC
781## begin gnulib module snprintf
782
783
784EXTRA_DIST += snprintf.c
785
786EXTRA_libgnu_la_SOURCES += snprintf.c
787
788## end gnulib module snprintf
789
8912421c
LC
790## begin gnulib module stat
791
792
793EXTRA_DIST += stat.c
794
795EXTRA_libgnu_la_SOURCES += stat.c
796
797## end gnulib module stat
798
4f02b98d
LC
799## begin gnulib module stdarg
800
801BUILT_SOURCES += $(STDARG_H)
802
803# We need the following in order to create <stdarg.h> when the system
804# doesn't have one that works with the given compiler.
805stdarg.h: stdarg.in.h
806 $(AM_V_GEN)rm -f $@-t $@ && \
807 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
808 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
809 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
810 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
811 < $(srcdir)/stdarg.in.h; \
812 } > $@-t && \
813 mv $@-t $@
814MOSTLYCLEANFILES += stdarg.h stdarg.h-t
815
816EXTRA_DIST += stdarg.in.h
817
818## end gnulib module stdarg
819
e65fc94b
LC
820## begin gnulib module stdbool
821
822BUILT_SOURCES += $(STDBOOL_H)
823
824# We need the following in order to create <stdbool.h> when the system
825# doesn't have one that works.
826stdbool.h: stdbool.in.h
8912421c 827 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
828 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
829 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
8912421c 830 } > $@-t && \
e65fc94b
LC
831 mv $@-t $@
832MOSTLYCLEANFILES += stdbool.h stdbool.h-t
833
834EXTRA_DIST += stdbool.in.h
835
836## end gnulib module stdbool
837
8912421c
LC
838## begin gnulib module stddef
839
840BUILT_SOURCES += $(STDDEF_H)
841
842# We need the following in order to create <stddef.h> when the system
843# doesn't have one that works with the given compiler.
844stddef.h: stddef.in.h
845 $(AM_V_GEN)rm -f $@-t $@ && \
846 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
847 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
848 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
849 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
850 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
851 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
852 < $(srcdir)/stddef.in.h; \
853 } > $@-t && \
854 mv $@-t $@
855MOSTLYCLEANFILES += stddef.h stddef.h-t
856
857EXTRA_DIST += stddef.in.h
858
859## end gnulib module stddef
860
f240aacb
LC
861## begin gnulib module stdint
862
863BUILT_SOURCES += $(STDINT_H)
864
865# We need the following in order to create <stdint.h> when the system
866# doesn't have one that works with the given compiler.
867stdint.h: stdint.in.h
8912421c 868 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
869 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
870 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
871 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
872 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
873 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
874 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
875 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
876 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
877 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
878 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
879 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
880 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
881 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
882 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
883 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
884 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
885 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
886 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
887 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
888 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
889 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
890 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
891 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
892 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
893 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
894 < $(srcdir)/stdint.in.h; \
8912421c 895 } > $@-t && \
f240aacb
LC
896 mv $@-t $@
897MOSTLYCLEANFILES += stdint.h stdint.h-t
898
899EXTRA_DIST += stdint.in.h
900
901## end gnulib module stdint
902
c4b681fd
LC
903## begin gnulib module stdio
904
905BUILT_SOURCES += stdio.h
906
907# We need the following in order to create <stdio.h> when the system
908# doesn't have one that works with the given compiler.
f4c79b3c 909stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 910 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
911 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
912 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
913 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
914 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
c4b681fd 915 -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
8912421c
LC
916 -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
917 -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
c4b681fd 918 -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
8912421c
LC
919 -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
920 -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
921 -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
922 -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
923 -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
c4b681fd
LC
924 -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
925 -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
926 -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
927 -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
928 -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
c4b681fd
LC
929 -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
930 -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
931 -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
8912421c
LC
932 -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
933 -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
c4b681fd 934 -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
8912421c
LC
935 -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
936 -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
937 -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
938 -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
939 -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
940 -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
941 -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
942 -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
943 -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
944 -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
945 -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
c4b681fd 946 -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
a927b6c1 947 -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
8912421c
LC
948 -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
949 -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
950 -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
951 -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
952 -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
953 -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
954 -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
955 -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
61cd9dc9
LC
956 < $(srcdir)/stdio.in.h | \
957 sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
8912421c
LC
958 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
959 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
960 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
c4b681fd 961 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
c4b681fd 962 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
c4b681fd 963 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
a927b6c1
LC
964 -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
965 -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
8912421c 966 -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
c4b681fd 967 -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
8912421c
LC
968 -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
969 -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
970 -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
971 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
c4b681fd 972 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
8912421c
LC
973 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
974 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
c4b681fd 975 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
c4b681fd 976 -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
8912421c 977 -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
c4b681fd 978 -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
8912421c 979 -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
61cd9dc9 980 -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
c4b681fd 981 -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
8912421c 982 -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
c4b681fd 983 -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
8912421c
LC
984 -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
985 -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
986 -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
987 -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
988 -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
989 -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
990 -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
991 -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
a927b6c1 992 -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
8912421c
LC
993 -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
994 -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
995 -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
996 -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
997 -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
998 -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
a927b6c1 999 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
f4c79b3c 1000 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1001 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1002 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 1003 } > $@-t && \
c4b681fd
LC
1004 mv $@-t $@
1005MOSTLYCLEANFILES += stdio.h stdio.h-t
1006
1007EXTRA_DIST += stdio-write.c stdio.in.h
1008
1009EXTRA_libgnu_la_SOURCES += stdio-write.c
1010
1011## end gnulib module stdio
1012
f240aacb
LC
1013## begin gnulib module stdlib
1014
1015BUILT_SOURCES += stdlib.h
1016
1017# We need the following in order to create <stdlib.h> when the system
1018# doesn't have one that works with the given compiler.
f4c79b3c 1019stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1020 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1021 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1022 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1023 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1024 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
f240aacb 1025 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
8912421c
LC
1026 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
1027 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
f240aacb
LC
1028 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
1029 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
a927b6c1 1030 -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
8912421c 1031 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
f240aacb 1032 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
8912421c 1033 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
f29ded4b 1034 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
f240aacb 1035 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
f29ded4b 1036 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
a927b6c1 1037 -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
f240aacb
LC
1038 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
1039 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
8912421c
LC
1040 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
1041 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
f240aacb
LC
1042 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
1043 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
1044 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
1045 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
1046 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
a927b6c1 1047 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
f240aacb
LC
1048 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
1049 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
1050 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
8912421c
LC
1051 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
1052 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
f240aacb 1053 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
a927b6c1 1054 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
f240aacb
LC
1055 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
1056 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
8912421c 1057 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
f29ded4b 1058 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
a927b6c1 1059 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
f29ded4b 1060 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
a927b6c1 1061 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
8912421c 1062 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
f240aacb 1063 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
8912421c
LC
1064 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
1065 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
f240aacb
LC
1066 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
1067 -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
1068 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
1069 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
1070 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
1071 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
1072 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
a927b6c1 1073 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
f240aacb 1074 -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
8912421c 1075 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
f240aacb
LC
1076 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
1077 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
8912421c 1078 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
4f02b98d 1079 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
f240aacb 1080 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
4f02b98d 1081 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
f4c79b3c 1082 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1083 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1084 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1085 < $(srcdir)/stdlib.in.h; \
8912421c 1086 } > $@-t && \
f240aacb
LC
1087 mv $@-t $@
1088MOSTLYCLEANFILES += stdlib.h stdlib.h-t
1089
1090EXTRA_DIST += stdlib.in.h
1091
1092## end gnulib module stdlib
1093
103dc4d4
LC
1094## begin gnulib module strcase
1095
1096
1097EXTRA_DIST += strcasecmp.c strncasecmp.c
1098
1099EXTRA_libgnu_la_SOURCES += strcasecmp.c strncasecmp.c
1100
1101## end gnulib module strcase
1102
4a462e35
NJ
1103## begin gnulib module streq
1104
1105
1106EXTRA_DIST += streq.h
1107
1108## end gnulib module streq
1109
e65fc94b
LC
1110## begin gnulib module strftime
1111
1112
1113EXTRA_DIST += strftime.c strftime.h
1114
1115EXTRA_libgnu_la_SOURCES += strftime.c
1116
1117## end gnulib module strftime
1118
24d56127
LC
1119## begin gnulib module striconveh
1120
1121libgnu_la_SOURCES += striconveh.h striconveh.c
1122if GL_COND_LIBTOOL
1123libgnu_la_LDFLAGS += $(LTLIBICONV)
1124endif
1125
1126EXTRA_DIST += iconveh.h
1127
1128## end gnulib module striconveh
1129
1130## begin gnulib module string
1131
1132BUILT_SOURCES += string.h
1133
1134# We need the following in order to create <string.h> when the system
1135# doesn't have one that works with the given compiler.
f4c79b3c 1136string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1137 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
1138 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1139 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1140 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1141 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
1142 -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
1143 -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
1144 -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
1145 -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
1146 -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
1147 -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
1148 -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
1149 -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
1150 -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
1151 -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
1152 -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
1153 -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
1154 -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
1155 -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
ffca4c22 1156 -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \
24d56127
LC
1157 -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
1158 -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
1159 -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
1160 -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
1161 -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
1162 -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
1163 -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
1164 -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
a927b6c1 1165 -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \
24d56127
LC
1166 -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
1167 -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
1168 -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
1169 -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
1170 -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
1171 -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
1172 -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
1173 -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
1174 -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
1175 -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
61cd9dc9
LC
1176 < $(srcdir)/string.in.h | \
1177 sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
a927b6c1 1178 -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
24d56127
LC
1179 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
1180 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
1181 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
1182 -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
1183 -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
1184 -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
1185 -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
1186 -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
24d56127
LC
1187 -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
1188 -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
1189 -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
1190 -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
1191 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
1192 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
24d56127
LC
1193 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
1194 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
a927b6c1 1195 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
ffca4c22 1196 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
24d56127
LC
1197 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
1198 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
1199 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
1200 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
1201 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
a927b6c1 1202 -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
8912421c 1203 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
a927b6c1 1204 -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
24d56127 1205 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
8912421c
LC
1206 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
1207 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
f4c79b3c 1208 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1209 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1210 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
24d56127 1211 < $(srcdir)/string.in.h; \
8912421c 1212 } > $@-t && \
24d56127
LC
1213 mv $@-t $@
1214MOSTLYCLEANFILES += string.h string.h-t
1215
1216EXTRA_DIST += string.in.h
1217
1218## end gnulib module string
1219
103dc4d4
LC
1220## begin gnulib module strings
1221
1222BUILT_SOURCES += strings.h
1223
1224# We need the following in order to create <strings.h> when the system
1225# doesn't have one that works with the given compiler.
61cd9dc9 1226strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c 1227 $(AM_V_GEN)rm -f $@-t $@ && \
103dc4d4 1228 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
e65fc94b
LC
1229 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1230 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
103dc4d4
LC
1231 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
1232 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
1233 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
1cd4fffc 1234 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1235 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
103dc4d4 1236 < $(srcdir)/strings.in.h; \
8912421c 1237 } > $@-t && \
103dc4d4
LC
1238 mv $@-t $@
1239MOSTLYCLEANFILES += strings.h strings.h-t
1240
1241EXTRA_DIST += strings.in.h
1242
1243## end gnulib module strings
1244
f240aacb
LC
1245## begin gnulib module sys_file
1246
61cd9dc9 1247BUILT_SOURCES += sys/file.h
f240aacb
LC
1248
1249# We need the following in order to create <sys/file.h> when the system
1250# has one that is incomplete.
61cd9dc9 1251sys/file.h: sys_file.in.h $(WARN_ON_USE_H)
8912421c
LC
1252 $(AM_V_at)$(MKDIR_P) sys
1253 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1254 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1255 sed -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \
1256 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1257 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1258 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
1259 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
1260 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
61cd9dc9 1261 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1262 < $(srcdir)/sys_file.in.h; \
8912421c 1263 } > $@-t && \
f240aacb
LC
1264 mv $@-t $@
1265MOSTLYCLEANFILES += sys/file.h sys/file.h-t
1266MOSTLYCLEANDIRS += sys
1267
1268EXTRA_DIST += sys_file.in.h
1269
1270## end gnulib module sys_file
1271
8912421c
LC
1272## begin gnulib module sys_socket
1273
61cd9dc9 1274BUILT_SOURCES += sys/socket.h
8912421c
LC
1275
1276# We need the following in order to create <sys/socket.h> when the system
1277# doesn't have one that works with the given compiler.
f4c79b3c 1278sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c
LC
1279 $(AM_V_at)$(MKDIR_P) sys
1280 $(AM_V_GEN)rm -f $@-t $@ && \
1281 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1282 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1283 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1284 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
1285 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
1286 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1287 -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
1288 -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
1289 -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
1290 -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
1291 -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
1292 -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
1293 -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
1294 -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
1295 -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
1296 -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \
1297 -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
1298 -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
1299 -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
1300 -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
1301 -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \
1302 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1303 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
1304 -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
1305 -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
1306 -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
f4c79b3c 1307 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1308 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1309 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1310 < $(srcdir)/sys_socket.in.h; \
1311 } > $@-t && \
1312 mv -f $@-t $@
1313MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
1314MOSTLYCLEANDIRS += sys
1315
1316EXTRA_DIST += sys_socket.in.h
1317
1318## end gnulib module sys_socket
1319
1320## begin gnulib module sys_stat
1321
1322BUILT_SOURCES += sys/stat.h
1323
1324# We need the following in order to create <sys/stat.h> when the system
1325# has one that is incomplete.
f4c79b3c 1326sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c
LC
1327 $(AM_V_at)$(MKDIR_P) sys
1328 $(AM_V_GEN)rm -f $@-t $@ && \
1329 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1330 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1331 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1332 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
1333 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
1334 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
1335 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
1336 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
1337 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
1338 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
f29ded4b 1339 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
8912421c 1340 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
f29ded4b 1341 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
8912421c
LC
1342 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
1343 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
1344 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
1345 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
1346 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
1347 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
1348 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
1349 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
1350 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
f29ded4b 1351 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
8912421c 1352 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
f29ded4b 1353 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
8912421c
LC
1354 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
1355 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
1356 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
1357 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
1358 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
1359 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
1360 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
f29ded4b
LC
1361 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
1362 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
8912421c
LC
1363 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
1364 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
f4c79b3c 1365 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1366 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1367 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1368 < $(srcdir)/sys_stat.in.h; \
1369 } > $@-t && \
1370 mv $@-t $@
1371MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
1372MOSTLYCLEANDIRS += sys
1373
1374EXTRA_DIST += sys_stat.in.h
1375
1376## end gnulib module sys_stat
1377
e65fc94b
LC
1378## begin gnulib module time
1379
1380BUILT_SOURCES += time.h
1381
1382# We need the following in order to create <time.h> when the system
1383# doesn't have one that works with the given compiler.
f4c79b3c 1384time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1385 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1386 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1387 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1388 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
f4c79b3c
LC
1389 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
1390 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
1391 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
1392 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
1393 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
1394 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
a927b6c1
LC
1395 -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \
1396 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
1397 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
1398 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
f4c79b3c
LC
1399 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
1400 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
1401 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
f4c79b3c 1402 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
6f32e5c7 1403 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
f4c79b3c
LC
1404 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1405 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1406 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1407 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 1408 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1409 < $(srcdir)/time.in.h; \
8912421c 1410 } > $@-t && \
e65fc94b
LC
1411 mv $@-t $@
1412MOSTLYCLEANFILES += time.h time.h-t
1413
1414EXTRA_DIST += time.in.h
1415
1416## end gnulib module time
1417
1418## begin gnulib module time_r
1419
1420
1421EXTRA_DIST += time_r.c
1422
1423EXTRA_libgnu_la_SOURCES += time_r.c
1424
1425## end gnulib module time_r
1426
9b36a80c
LC
1427## begin gnulib module unistd
1428
1429BUILT_SOURCES += unistd.h
1430
1431# We need the following in order to create an empty placeholder for
1432# <unistd.h> when the system doesn't have one.
f4c79b3c 1433unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1434 $(AM_V_GEN)rm -f $@-t $@ && \
9b36a80c
LC
1435 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1436 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
1437 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1438 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1439 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
1440 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
1441 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1442 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
8912421c 1443 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
9b36a80c
LC
1444 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
1445 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
8912421c 1446 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
9b36a80c 1447 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
8912421c 1448 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
9b36a80c
LC
1449 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
1450 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
1451 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
1452 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
1453 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
f29ded4b 1454 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
9b36a80c 1455 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
61cd9dc9 1456 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
9b36a80c
LC
1457 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
1458 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
1459 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
1460 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
f240aacb 1461 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
8912421c 1462 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
9b36a80c 1463 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
8912421c 1464 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
1cd4fffc 1465 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
a927b6c1 1466 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
9b36a80c 1467 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
8912421c
LC
1468 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
1469 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
9b36a80c 1470 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
8912421c
LC
1471 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
1472 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
a927b6c1 1473 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
8912421c 1474 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
9b36a80c 1475 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
8912421c
LC
1476 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
1477 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
414e4441 1478 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
9b36a80c 1479 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
61cd9dc9
LC
1480 < $(srcdir)/unistd.in.h | \
1481 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
9b36a80c 1482 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
8912421c 1483 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
9b36a80c 1484 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
8912421c 1485 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
a927b6c1 1486 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
8912421c 1487 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
9b36a80c
LC
1488 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
1489 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
1490 -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
1491 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
f29ded4b 1492 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
9b36a80c 1493 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
61cd9dc9 1494 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
9b36a80c 1495 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
f29ded4b 1496 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
f240aacb 1497 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
8912421c
LC
1498 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
1499 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
1cd4fffc 1500 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
a927b6c1 1501 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
9b36a80c 1502 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
8912421c 1503 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
9b36a80c 1504 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
8912421c
LC
1505 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
1506 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
a927b6c1 1507 -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \
8912421c 1508 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
414e4441 1509 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
9b36a80c
LC
1510 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
1511 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
a927b6c1
LC
1512 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
1513 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
9b36a80c
LC
1514 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
1515 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
1516 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
1517 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
8912421c 1518 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
25361e4b 1519 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
8912421c 1520 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
9b36a80c 1521 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
f29ded4b 1522 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
9b36a80c
LC
1523 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
1524 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
8912421c
LC
1525 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
1526 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
9b36a80c 1527 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
1cd4fffc 1528 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
a927b6c1 1529 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
8912421c
LC
1530 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
1531 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
414e4441 1532 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
8912421c 1533 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
a927b6c1 1534 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
8912421c
LC
1535 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
1536 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
414e4441 1537 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
9b36a80c
LC
1538 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
1539 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
8912421c 1540 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
f4c79b3c 1541 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1542 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1543 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 1544 } > $@-t && \
9b36a80c
LC
1545 mv $@-t $@
1546MOSTLYCLEANFILES += unistd.h unistd.h-t
1547
1548EXTRA_DIST += unistd.in.h
1549
1550## end gnulib module unistd
1551
24d56127
LC
1552## begin gnulib module unistr/base
1553
a927b6c1 1554BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H)
24d56127 1555
a927b6c1
LC
1556unistr.h: unistr.in.h
1557 $(AM_V_GEN)rm -f $@-t $@ && \
1558 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1559 cat $(srcdir)/unistr.in.h; \
1560 } > $@-t && \
1561 mv -f $@-t $@
1562MOSTLYCLEANFILES += unistr.h unistr.h-t
1563
1564EXTRA_DIST += unistr.in.h
24d56127
LC
1565
1566## end gnulib module unistr/base
1567
1568## begin gnulib module unistr/u8-mbtouc
1569
6f32e5c7
LC
1570if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC
1571libgnu_la_SOURCES += unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c
1572endif
24d56127
LC
1573
1574## end gnulib module unistr/u8-mbtouc
1575
1576## begin gnulib module unistr/u8-mbtouc-unsafe
1577
6f32e5c7
LC
1578if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE
1579libgnu_la_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c
1580endif
24d56127
LC
1581
1582## end gnulib module unistr/u8-mbtouc-unsafe
1583
1584## begin gnulib module unistr/u8-mbtoucr
1585
6f32e5c7
LC
1586if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR
1587libgnu_la_SOURCES += unistr/u8-mbtoucr.c
1588endif
24d56127
LC
1589
1590## end gnulib module unistr/u8-mbtoucr
1591
1592## begin gnulib module unistr/u8-prev
1593
6f32e5c7
LC
1594if LIBUNISTRING_COMPILE_UNISTR_U8_PREV
1595libgnu_la_SOURCES += unistr/u8-prev.c
1596endif
24d56127
LC
1597
1598## end gnulib module unistr/u8-prev
1599
1600## begin gnulib module unistr/u8-uctomb
1601
6f32e5c7
LC
1602if LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB
1603libgnu_la_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
1604endif
24d56127
LC
1605
1606## end gnulib module unistr/u8-uctomb
1607
1608## begin gnulib module unitypes
1609
a927b6c1
LC
1610BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H)
1611
1612unitypes.h: unitypes.in.h
1613 $(AM_V_GEN)rm -f $@-t $@ && \
1614 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1615 cat $(srcdir)/unitypes.in.h; \
1616 } > $@-t && \
1617 mv -f $@-t $@
1618MOSTLYCLEANFILES += unitypes.h unitypes.h-t
24d56127 1619
a927b6c1 1620EXTRA_DIST += unitypes.in.h
24d56127
LC
1621
1622## end gnulib module unitypes
1623
61cd9dc9
LC
1624## begin gnulib module unused-parameter
1625
1626# The BUILT_SOURCES created by this Makefile snippet are not used via #include
1627# statements but through direct file reference. Therefore this snippet must be
1628# present in all Makefile.am that need it. This is ensured by the applicability
1629# 'all' defined above.
1630
1631BUILT_SOURCES += unused-parameter.h
1632# The unused-parameter.h that gets inserted into generated .h files is the same
1633# as build-aux/unused-parameter.h, except that it has the copyright header cut
1634# off.
1635unused-parameter.h: $(top_srcdir)/build-aux/unused-parameter.h
1636 $(AM_V_GEN)rm -f $@-t $@ && \
1637 sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
1638 < $(top_srcdir)/build-aux/unused-parameter.h \
1639 > $@-t && \
1640 mv $@-t $@
1641MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
1642
1643UNUSED_PARAMETER_H=unused-parameter.h
1644
1645EXTRA_DIST += $(top_srcdir)/build-aux/unused-parameter.h
1646
1647## end gnulib module unused-parameter
1648
c84bdaf6
LC
1649## begin gnulib module useless-if-before-free
1650
1651
1652EXTRA_DIST += $(top_srcdir)/build-aux/useless-if-before-free
1653
1654## end gnulib module useless-if-before-free
1655
c4b681fd
LC
1656## begin gnulib module vasnprintf
1657
1658
1659EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
1660
1661EXTRA_libgnu_la_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
1662
1663## end gnulib module vasnprintf
1664
c84bdaf6
LC
1665## begin gnulib module vc-list-files
1666
1667
1668EXTRA_DIST += $(top_srcdir)/build-aux/vc-list-files
1669
1670## end gnulib module vc-list-files
1671
d7014610
LC
1672## begin gnulib module verify
1673
1674libgnu_la_SOURCES += verify.h
1675
1676## end gnulib module verify
1677
4f02b98d
LC
1678## begin gnulib module version-etc
1679
1680libgnu_la_SOURCES += version-etc.h version-etc.c
1681
1682## end gnulib module version-etc
1683
1684## begin gnulib module version-etc-fsf
1685
1686libgnu_la_SOURCES += version-etc-fsf.c
1687
1688## end gnulib module version-etc-fsf
1689
c4b681fd
LC
1690## begin gnulib module vsnprintf
1691
1692
1693EXTRA_DIST += vsnprintf.c
1694
1695EXTRA_libgnu_la_SOURCES += vsnprintf.c
1696
1697## end gnulib module vsnprintf
1698
61cd9dc9
LC
1699## begin gnulib module warn-on-use
1700
1701BUILT_SOURCES += warn-on-use.h
1702# The warn-on-use.h that gets inserted into generated .h files is the same as
1703# build-aux/warn-on-use.h, except that it has the copyright header cut off.
1704warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
1705 $(AM_V_GEN)rm -f $@-t $@ && \
1706 sed -n -e '/^.ifndef/,$$p' \
1707 < $(top_srcdir)/build-aux/warn-on-use.h \
1708 > $@-t && \
1709 mv $@-t $@
1710MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1711
1712WARN_ON_USE_H=warn-on-use.h
1713
1714EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
1715
1716## end gnulib module warn-on-use
1717
e65fc94b
LC
1718## begin gnulib module wchar
1719
61cd9dc9 1720BUILT_SOURCES += wchar.h
e65fc94b
LC
1721
1722# We need the following in order to create <wchar.h> when the system
1723# version does not work standalone.
f4c79b3c 1724wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1725 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1726 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1727 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1728 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1729 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
4a462e35
NJ
1730 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
1731 -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
1732 -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
1733 -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
1734 -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
1735 -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
1736 -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
1737 -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
1738 -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
1739 -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
1740 -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
e65fc94b 1741 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
4a462e35
NJ
1742 -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
1743 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
1744 -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
1745 -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
1746 -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
1747 -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
1748 -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
1749 -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
1750 -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
1751 -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
1752 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
e65fc94b 1753 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
4a462e35
NJ
1754 -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
1755 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
1756 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
1757 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
1758 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
1759 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
1760 -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
1761 -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
1762 -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
1763 -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
f240aacb 1764 -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
e65fc94b 1765 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
f4c79b3c 1766 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1767 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1768 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1769 < $(srcdir)/wchar.in.h; \
8912421c 1770 } > $@-t && \
e65fc94b
LC
1771 mv $@-t $@
1772MOSTLYCLEANFILES += wchar.h wchar.h-t
1773
1774EXTRA_DIST += wchar.in.h
1775
1776## end gnulib module wchar
1777
9b36a80c
LC
1778## begin gnulib module write
1779
1780
1781EXTRA_DIST += write.c
103dc4d4 1782
9b36a80c 1783EXTRA_libgnu_la_SOURCES += write.c
103dc4d4 1784
9b36a80c 1785## end gnulib module write
103dc4d4 1786
c4b681fd
LC
1787## begin gnulib module xsize
1788
1789libgnu_la_SOURCES += xsize.h
1790
1791## end gnulib module xsize
1792
103dc4d4
LC
1793
1794mostlyclean-local: mostlyclean-generic
1795 @for dir in '' $(MOSTLYCLEANDIRS); do \
1796 if test -n "$$dir" && test -d $$dir; then \
1797 echo "rmdir $$dir"; rmdir $$dir; \
1798 fi; \
1799 done; \
1800 :