Fix redefinition warning in MinGW64 build.
[bpt/emacs.git] / nt / gnulib.mk
CommitLineData
a74b0e1b
EZ
1## This file is an edited copy if ../lib/gnulib.mk.
2##
3## The purpose of the edits is to avoid generating any headers
4## which would conflict with either the headers we have in nt/inc,
5## or with MinGW system headers and subsequent redirection of some
6## functions in nt/inc/ms-w32.h.
7##
8## In general, do NOT remove anything from ../lib/gnulib.mk that
9## doesn't need to be removed, to minimize the differences from
10## upstream gnulib.mk and thus make the maintenance easier. Every
11## header file whose generation is controlled by configure-time tests
12## does NOT need to be removed; instead, force the configure script to
13## accept whatever MinGW has to offer, by defining the appropriate
14## Autoconf variable in the nt/mingw-cfg.site file. Headers that are
15## generated conditionally have the tell-tale "if GL_GENERATE_foo_H"
16## condition before their Makefile snippet in this file. Likewise, do
17## NOT remove gnulib modules which introduce header files that don't
18## exist in MinGW and in nt/inc/, since they cannot possibly clash
19## with anything. Gnulib modules that introduce source *.c files also
20## need not be removed; if they define functions that could clash with
21## the w32 substitutes in Emacs, disable their compilation by defining
22## suitable variables in nt/mingw-cfg.site.
23##
24## Process this file with automake to produce Makefile.in.
ba318903 25# Copyright (C) 2002-2014 Free Software Foundation, Inc.
a74b0e1b
EZ
26#
27# This file is free software; you can redistribute it and/or modify
28# it under the terms of the GNU General Public License as published by
29# the Free Software Foundation; either version 3 of the License, or
30# (at your option) any later version.
31#
32# This file is distributed in the hope that it will be useful,
33# but WITHOUT ANY WARRANTY; without even the implied warranty of
34# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35# GNU General Public License for more details.
36#
37# You should have received a copy of the GNU General Public License
38# along with this file. If not, see <http://www.gnu.org/licenses/>.
39#
40# As a special exception to the GNU General Public License,
41# this file may be distributed as part of a program that
42# contains a configuration script generated by Autoconf, under
43# the same distribution terms as the rest of that program.
44#
45# Generated by gnulib-tool.
595e113b 46# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=close --avoid=dup --avoid=fchdir --avoid=fstat --avoid=malloc-posix --avoid=msvc-inval --avoid=msvc-nothrow --avoid=open --avoid=openat-die --avoid=opendir --avoid=raise --avoid=save-cwd --avoid=select --avoid=sigprocmask --avoid=sys_types --avoid=threadlib --makefile-name=gnulib.mk --conditional-dependencies --no-libtool --macro-prefix=gl --no-vc-files alloca-opt byteswap c-ctype c-strcase careadlinkat close-stream count-one-bits count-trailing-zeros crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday intprops largefile lstat manywarnings memrchr mkostemp mktime pipe2 pselect pthread_sigmask putenv qacl readlink readlinkat sig2str socklen stat-time stdalign stdarg stdbool stdio strftime strtoimax strtoumax symlink sys_stat sys_time time timer-time timespec-add timespec-sub unsetenv utimens warnings
a74b0e1b
EZ
47
48
49MOSTLYCLEANFILES += core *.stackdump
50
51noinst_LIBRARIES += libgnu.a
52
53libgnu_a_SOURCES =
54libgnu_a_LIBADD = $(gl_LIBOBJS)
55libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
56EXTRA_libgnu_a_SOURCES =
57
58## begin gnulib module alloca-opt
59
60BUILT_SOURCES += $(ALLOCA_H)
61
62# We need the following in order to create <alloca.h> when the system
63# doesn't have one that works with the given compiler.
64if GL_GENERATE_ALLOCA_H
65alloca.h: alloca.in.h $(top_builddir)/config.status
66 $(AM_V_GEN)rm -f $@-t $@ && \
67 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
68 cat $(srcdir)/alloca.in.h; \
69 } > $@-t && \
70 mv -f $@-t $@
71else
72alloca.h: $(top_builddir)/config.status
73 rm -f $@
74endif
75MOSTLYCLEANFILES += alloca.h alloca.h-t
76
77EXTRA_DIST += alloca.in.h
78
79## end gnulib module alloca-opt
80
cd30a8e0
PE
81## begin gnulib module byteswap
82
83BUILT_SOURCES += $(BYTESWAP_H)
84
85# We need the following in order to create <byteswap.h> when the system
86# doesn't have one.
87if GL_GENERATE_BYTESWAP_H
88byteswap.h: byteswap.in.h $(top_builddir)/config.status
89 $(AM_V_GEN)rm -f $@-t $@ && \
90 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
91 cat $(srcdir)/byteswap.in.h; \
92 } > $@-t && \
93 mv -f $@-t $@
94else
95byteswap.h: $(top_builddir)/config.status
96 rm -f $@
97endif
98MOSTLYCLEANFILES += byteswap.h byteswap.h-t
99
100EXTRA_DIST += byteswap.in.h
101
102## end gnulib module byteswap
103
a74b0e1b
EZ
104## begin gnulib module c-ctype
105
106libgnu_a_SOURCES += c-ctype.h c-ctype.c
107
108## end gnulib module c-ctype
109
110## begin gnulib module c-strcase
111
112libgnu_a_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
113
114## end gnulib module c-strcase
115
116## begin gnulib module close-stream
117
118libgnu_a_SOURCES += close-stream.c
119
120EXTRA_DIST += close-stream.h
121
122## end gnulib module close-stream
123
595e113b
PE
124## begin gnulib module count-one-bits
125
126libgnu_a_SOURCES += count-one-bits.c
127
128EXTRA_DIST += count-one-bits.h
129
130## end gnulib module count-one-bits
131
132## begin gnulib module count-trailing-zeros
133
134libgnu_a_SOURCES += count-trailing-zeros.c
135
136EXTRA_DIST += count-trailing-zeros.h
137
138## end gnulib module count-trailing-zeros
139
a74b0e1b
EZ
140## begin gnulib module crypto/md5
141
142libgnu_a_SOURCES += md5.c
143
144EXTRA_DIST += md5.h
145
146## end gnulib module crypto/md5
147
148## begin gnulib module crypto/sha1
149
150libgnu_a_SOURCES += sha1.c
151
152EXTRA_DIST += sha1.h
153
154## end gnulib module crypto/sha1
155
156## begin gnulib module crypto/sha256
157
158libgnu_a_SOURCES += sha256.c
159
160EXTRA_DIST += sha256.h
161
162## end gnulib module crypto/sha256
163
164## begin gnulib module crypto/sha512
165
166libgnu_a_SOURCES += sha512.c
167
168EXTRA_DIST += sha512.h
169
170## end gnulib module crypto/sha512
171
172## begin gnulib module dosname
173
174if gl_GNULIB_ENABLED_dosname
175
176endif
177EXTRA_DIST += dosname.h
178
179## end gnulib module dosname
180
181## begin gnulib module dtoastr
182
183libgnu_a_SOURCES += dtoastr.c
184
185EXTRA_DIST += ftoastr.c ftoastr.h
186
187EXTRA_libgnu_a_SOURCES += ftoastr.c
188
189## end gnulib module dtoastr
190
191## begin gnulib module dtotimespec
192
193libgnu_a_SOURCES += dtotimespec.c
194
195## end gnulib module dtotimespec
196
197## begin gnulib module dup2
198
199
200EXTRA_DIST += dup2.c
201
202EXTRA_libgnu_a_SOURCES += dup2.c
203
204## end gnulib module dup2
205
9e5b5c79
EZ
206## begin gnulib module errno
207
208BUILT_SOURCES += $(ERRNO_H)
209
210# We need the following in order to create <errno.h> when the system
211# doesn't have one that is POSIX compliant.
212if GL_GENERATE_ERRNO_H
213errno.h: errno.in.h $(top_builddir)/config.status
214 $(AM_V_GEN)rm -f $@-t $@ && \
215 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
216 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
217 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
218 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
219 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
220 -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
221 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
222 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
223 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
224 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
225 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
226 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
227 < $(srcdir)/errno.in.h; \
228 } > $@-t && \
229 mv $@-t $@
230else
231errno.h: $(top_builddir)/config.status
232 rm -f $@
233endif
234MOSTLYCLEANFILES += errno.h errno.h-t
235
236EXTRA_DIST += errno.in.h
237
238## end gnulib module errno
239
a74b0e1b
EZ
240## begin gnulib module euidaccess
241
242if gl_GNULIB_ENABLED_euidaccess
243
244endif
245EXTRA_DIST += euidaccess.c
246
247EXTRA_libgnu_a_SOURCES += euidaccess.c
248
249## end gnulib module euidaccess
250
251## begin gnulib module execinfo
252
253BUILT_SOURCES += $(EXECINFO_H)
254
255# We need the following in order to create <execinfo.h> when the system
256# doesn't have one that works.
257if GL_GENERATE_EXECINFO_H
258execinfo.h: execinfo.in.h $(top_builddir)/config.status
259 $(AM_V_GEN)rm -f $@-t $@ && \
260 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
261 cat $(srcdir)/execinfo.in.h; \
262 } > $@-t && \
263 mv $@-t $@
264else
265execinfo.h: $(top_builddir)/config.status
266 rm -f $@
267endif
268MOSTLYCLEANFILES += execinfo.h execinfo.h-t
269
270EXTRA_DIST += execinfo.c execinfo.in.h
271
272EXTRA_libgnu_a_SOURCES += execinfo.c
273
274## end gnulib module execinfo
275
276## begin gnulib module faccessat
277
278
279EXTRA_DIST += at-func.c faccessat.c
280
281EXTRA_libgnu_a_SOURCES += at-func.c faccessat.c
282
283## end gnulib module faccessat
284
285## begin gnulib module fdatasync
286
287
288EXTRA_DIST += fdatasync.c
289
290EXTRA_libgnu_a_SOURCES += fdatasync.c
291
292## end gnulib module fdatasync
293
294## begin gnulib module fdopendir
295
296
297EXTRA_DIST += fdopendir.c
298
299EXTRA_libgnu_a_SOURCES += fdopendir.c
300
301## end gnulib module fdopendir
302
303## begin gnulib module filemode
304
305libgnu_a_SOURCES += filemode.c
306
307EXTRA_DIST += filemode.h
308
309## end gnulib module filemode
310
311## begin gnulib module fpending
312
313
314EXTRA_DIST += fpending.c fpending.h
315
316EXTRA_libgnu_a_SOURCES += fpending.c
317
318## end gnulib module fpending
319
320## begin gnulib module fstatat
321
322
323EXTRA_DIST += at-func.c fstatat.c
324
325EXTRA_libgnu_a_SOURCES += at-func.c fstatat.c
326
327## end gnulib module fstatat
328
329## begin gnulib module fsync
330
331
332EXTRA_DIST += fsync.c
333
334EXTRA_libgnu_a_SOURCES += fsync.c
335
336## end gnulib module fsync
337
338## begin gnulib module getgroups
339
340if gl_GNULIB_ENABLED_getgroups
341
342endif
343EXTRA_DIST += getgroups.c
344
345EXTRA_libgnu_a_SOURCES += getgroups.c
346
347## end gnulib module getgroups
348
349## begin gnulib module getloadavg
350
351
352EXTRA_DIST += getloadavg.c
353
354EXTRA_libgnu_a_SOURCES += getloadavg.c
355
356## end gnulib module getloadavg
357
358## begin gnulib module getopt-posix
359
360BUILT_SOURCES += $(GETOPT_H)
361
362# We need the following in order to create <getopt.h> when the system
363# doesn't have one that works with the given compiler.
364getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
365 $(AM_V_GEN)rm -f $@-t $@ && \
366 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
367 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
368 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
369 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
370 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
371 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
372 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
373 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
374 < $(srcdir)/getopt.in.h; \
375 } > $@-t && \
376 mv -f $@-t $@
377MOSTLYCLEANFILES += getopt.h getopt.h-t
378
379EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
380
381EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
382
383## end gnulib module getopt-posix
384
385## begin gnulib module gettext-h
386
387if gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36
388libgnu_a_SOURCES += gettext.h
389
390endif
391## end gnulib module gettext-h
392
393## begin gnulib module gettime
394
395libgnu_a_SOURCES += gettime.c
396
397## end gnulib module gettime
398
399## begin gnulib module gettimeofday
400
401
402EXTRA_DIST += gettimeofday.c
403
404EXTRA_libgnu_a_SOURCES += gettimeofday.c
405
406## end gnulib module gettimeofday
407
408## begin gnulib module group-member
409
410if gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1
411
412endif
413EXTRA_DIST += group-member.c
414
415EXTRA_libgnu_a_SOURCES += group-member.c
416
417## end gnulib module group-member
418
419## begin gnulib module ignore-value
420
421
422EXTRA_DIST += ignore-value.h
423
424## end gnulib module ignore-value
425
426## begin gnulib module intprops
427
428
429EXTRA_DIST += intprops.h
430
431## end gnulib module intprops
432
433## begin gnulib module lstat
434
435
436EXTRA_DIST += lstat.c
437
438EXTRA_libgnu_a_SOURCES += lstat.c
439
440## end gnulib module lstat
441
442## begin gnulib module memrchr
443
444
445EXTRA_DIST += memrchr.c
446
447EXTRA_libgnu_a_SOURCES += memrchr.c
448
449## end gnulib module memrchr
450
451## begin gnulib module mktime
452
453
454EXTRA_DIST += mktime-internal.h mktime.c
455
456EXTRA_libgnu_a_SOURCES += mktime.c
457
458## end gnulib module mktime
459
460## begin gnulib module openat-h
461
462if gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7
463
464endif
465EXTRA_DIST += openat.h
466
467## end gnulib module openat-h
468
469## begin gnulib module pathmax
470
471if gl_GNULIB_ENABLED_pathmax
472
473endif
474EXTRA_DIST += pathmax.h
475
476## end gnulib module pathmax
477
478## begin gnulib module pselect
479
480
481EXTRA_DIST += pselect.c
482
483EXTRA_libgnu_a_SOURCES += pselect.c
484
485## end gnulib module pselect
486
487## begin gnulib module pthread_sigmask
488
489
490EXTRA_DIST += pthread_sigmask.c
491
492EXTRA_libgnu_a_SOURCES += pthread_sigmask.c
493
494## end gnulib module pthread_sigmask
495
496## begin gnulib module putenv
497
498
499EXTRA_DIST += putenv.c
500
501EXTRA_libgnu_a_SOURCES += putenv.c
502
503## end gnulib module putenv
504
8ec48524
EZ
505## begin gnulib module qacl
506
ffa615b7 507libgnu_a_SOURCES += acl-errno-valid.c file-has-acl.c qcopy-acl.c
8ec48524 508
ffa615b7
EZ
509EXTRA_DIST += acl-internal.h acl.h acl_entries.c
510
511EXTRA_libgnu_a_SOURCES += acl_entries.c
8ec48524
EZ
512
513## end gnulib module qacl
514
a74b0e1b
EZ
515## begin gnulib module readlink
516
517
518EXTRA_DIST += readlink.c
519
520EXTRA_libgnu_a_SOURCES += readlink.c
521
522## end gnulib module readlink
523
524## begin gnulib module readlinkat
525
526
527EXTRA_DIST += at-func.c readlinkat.c
528
529EXTRA_libgnu_a_SOURCES += at-func.c readlinkat.c
530
531## end gnulib module readlinkat
532
533## begin gnulib module root-uid
534
535if gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c
536
537endif
538EXTRA_DIST += root-uid.h
539
540## end gnulib module root-uid
541
542## begin gnulib module sig2str
543
544
545EXTRA_DIST += sig2str.c sig2str.h
546
547EXTRA_libgnu_a_SOURCES += sig2str.c
548
549## end gnulib module sig2str
550
551## begin gnulib module snippet/_Noreturn
552
553# Because this Makefile snippet defines a variable used by other
554# gnulib Makefile snippets, it must be present in all Makefile.am that
555# need it. This is ensured by the applicability 'all' defined above.
556
557_NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
558
559EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
560
561## end gnulib module snippet/_Noreturn
562
563## begin gnulib module snippet/arg-nonnull
564
565# The BUILT_SOURCES created by this Makefile snippet are not used via #include
566# statements but through direct file reference. Therefore this snippet must be
567# present in all Makefile.am that need it. This is ensured by the applicability
568# 'all' defined above.
569
570BUILT_SOURCES += arg-nonnull.h
571# The arg-nonnull.h that gets inserted into generated .h files is the same as
572# build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
573# off.
574arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
575 $(AM_V_GEN)rm -f $@-t $@ && \
576 sed -n -e '/GL_ARG_NONNULL/,$$p' \
577 < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
578 > $@-t && \
579 mv $@-t $@
580MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
581
582ARG_NONNULL_H=arg-nonnull.h
583
584EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
585
586## end gnulib module snippet/arg-nonnull
587
588## begin gnulib module snippet/c++defs
589
590# The BUILT_SOURCES created by this Makefile snippet are not used via #include
591# statements but through direct file reference. Therefore this snippet must be
592# present in all Makefile.am that need it. This is ensured by the applicability
593# 'all' defined above.
594
595BUILT_SOURCES += c++defs.h
596# The c++defs.h that gets inserted into generated .h files is the same as
597# build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
598c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
599 $(AM_V_GEN)rm -f $@-t $@ && \
600 sed -n -e '/_GL_CXXDEFS/,$$p' \
601 < $(top_srcdir)/build-aux/snippet/c++defs.h \
602 > $@-t && \
603 mv $@-t $@
604MOSTLYCLEANFILES += c++defs.h c++defs.h-t
605
606CXXDEFS_H=c++defs.h
607
608EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
609
610## end gnulib module snippet/c++defs
611
612## begin gnulib module snippet/warn-on-use
613
614BUILT_SOURCES += warn-on-use.h
615# The warn-on-use.h that gets inserted into generated .h files is the same as
616# build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
617# off.
618warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
619 $(AM_V_GEN)rm -f $@-t $@ && \
620 sed -n -e '/^.ifndef/,$$p' \
621 < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
622 > $@-t && \
623 mv $@-t $@
624MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
625
626WARN_ON_USE_H=warn-on-use.h
627
628EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
629
630## end gnulib module snippet/warn-on-use
631
632## begin gnulib module stat
633
634if gl_GNULIB_ENABLED_stat
635
636endif
637EXTRA_DIST += stat.c
638
639EXTRA_libgnu_a_SOURCES += stat.c
640
641## end gnulib module stat
642
643## begin gnulib module stat-time
644
645libgnu_a_SOURCES += stat-time.c
646
647EXTRA_DIST += stat-time.h
648
649## end gnulib module stat-time
650
651## begin gnulib module stdalign
652
653BUILT_SOURCES += $(STDALIGN_H)
654
655# We need the following in order to create <stdalign.h> when the system
656# doesn't have one that works.
657if GL_GENERATE_STDALIGN_H
658stdalign.h: stdalign.in.h $(top_builddir)/config.status
659 $(AM_V_GEN)rm -f $@-t $@ && \
660 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
661 cat $(srcdir)/stdalign.in.h; \
662 } > $@-t && \
663 mv $@-t $@
664else
665stdalign.h: $(top_builddir)/config.status
666 rm -f $@
667endif
668MOSTLYCLEANFILES += stdalign.h stdalign.h-t
669
670EXTRA_DIST += stdalign.in.h
671
672## end gnulib module stdalign
673
674## begin gnulib module stdarg
675
676BUILT_SOURCES += $(STDARG_H)
677
678# We need the following in order to create <stdarg.h> when the system
679# doesn't have one that works with the given compiler.
680if GL_GENERATE_STDARG_H
681stdarg.h: stdarg.in.h $(top_builddir)/config.status
682 $(AM_V_GEN)rm -f $@-t $@ && \
683 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
684 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
685 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
686 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
687 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
688 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
689 < $(srcdir)/stdarg.in.h; \
690 } > $@-t && \
691 mv $@-t $@
692else
693stdarg.h: $(top_builddir)/config.status
694 rm -f $@
695endif
696MOSTLYCLEANFILES += stdarg.h stdarg.h-t
697
698EXTRA_DIST += stdarg.in.h
699
700## end gnulib module stdarg
701
702## begin gnulib module stdbool
703
704BUILT_SOURCES += $(STDBOOL_H)
705
706# We need the following in order to create <stdbool.h> when the system
707# doesn't have one that works.
708if GL_GENERATE_STDBOOL_H
709stdbool.h: stdbool.in.h $(top_builddir)/config.status
710 $(AM_V_GEN)rm -f $@-t $@ && \
711 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
712 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
713 } > $@-t && \
714 mv $@-t $@
715else
716stdbool.h: $(top_builddir)/config.status
717 rm -f $@
718endif
719MOSTLYCLEANFILES += stdbool.h stdbool.h-t
720
721EXTRA_DIST += stdbool.in.h
722
723## end gnulib module stdbool
724
725## begin gnulib module stddef
726
727BUILT_SOURCES += $(STDDEF_H)
728
729# We need the following in order to create <stddef.h> when the system
730# doesn't have one that works with the given compiler.
731if GL_GENERATE_STDDEF_H
732stddef.h: stddef.in.h $(top_builddir)/config.status
733 $(AM_V_GEN)rm -f $@-t $@ && \
734 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
735 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
736 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
737 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
738 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
739 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
740 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
741 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
742 < $(srcdir)/stddef.in.h; \
743 } > $@-t && \
744 mv $@-t $@
745else
746stddef.h: $(top_builddir)/config.status
747 rm -f $@
748endif
749MOSTLYCLEANFILES += stddef.h stddef.h-t
750
751EXTRA_DIST += stddef.in.h
752
753## end gnulib module stddef
754
755## begin gnulib module stdint
756
757BUILT_SOURCES += $(STDINT_H)
758
759# We need the following in order to create <stdint.h> when the system
760# doesn't have one that works with the given compiler.
761if GL_GENERATE_STDINT_H
762stdint.h: stdint.in.h $(top_builddir)/config.status
763 $(AM_V_GEN)rm -f $@-t $@ && \
764 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
765 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
766 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
767 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
768 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
769 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
770 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
771 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
772 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
773 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
774 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
775 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
776 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
777 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
778 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
779 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
780 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
781 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
782 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
783 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
784 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
785 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
786 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
787 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
788 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
789 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
790 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
791 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
792 < $(srcdir)/stdint.in.h; \
793 } > $@-t && \
794 mv $@-t $@
795else
796stdint.h: $(top_builddir)/config.status
797 rm -f $@
798endif
799MOSTLYCLEANFILES += stdint.h stdint.h-t
800
801EXTRA_DIST += stdint.in.h
802
803## end gnulib module stdint
804
805## begin gnulib module strftime
806
807libgnu_a_SOURCES += strftime.c
808
809EXTRA_DIST += strftime.h
810
811## end gnulib module strftime
812
813## begin gnulib module strtoimax
814
815
816EXTRA_DIST += strtoimax.c
817
818EXTRA_libgnu_a_SOURCES += strtoimax.c
819
820## end gnulib module strtoimax
821
822## begin gnulib module strtoll
823
824if gl_GNULIB_ENABLED_strtoll
825
826endif
827EXTRA_DIST += strtol.c strtoll.c
828
829EXTRA_libgnu_a_SOURCES += strtol.c strtoll.c
830
831## end gnulib module strtoll
832
833## begin gnulib module strtoull
834
835if gl_GNULIB_ENABLED_strtoull
836
837endif
838EXTRA_DIST += strtol.c strtoul.c strtoull.c
839
840EXTRA_libgnu_a_SOURCES += strtol.c strtoul.c strtoull.c
841
842## end gnulib module strtoull
843
844## begin gnulib module strtoumax
845
846
847EXTRA_DIST += strtoimax.c strtoumax.c
848
849EXTRA_libgnu_a_SOURCES += strtoimax.c strtoumax.c
850
851## end gnulib module strtoumax
852
853## begin gnulib module symlink
854
855
856EXTRA_DIST += symlink.c
857
858EXTRA_libgnu_a_SOURCES += symlink.c
859
860## end gnulib module symlink
861
862## begin gnulib module time_r
863
864
865EXTRA_DIST += time_r.c
866
867EXTRA_libgnu_a_SOURCES += time_r.c
868
869## end gnulib module time_r
870
871## begin gnulib module timespec
872
873libgnu_a_SOURCES += timespec.c
874
875EXTRA_DIST += timespec.h
876
877## end gnulib module timespec
878
879## begin gnulib module timespec-add
880
881libgnu_a_SOURCES += timespec-add.c
882
883## end gnulib module timespec-add
884
885## begin gnulib module timespec-sub
886
887libgnu_a_SOURCES += timespec-sub.c
888
889## end gnulib module timespec-sub
890
891## begin gnulib module u64
892
893libgnu_a_SOURCES += u64.c
894
895EXTRA_DIST += u64.h
896
897## end gnulib module u64
898
899## begin gnulib module unsetenv
900
901
902EXTRA_DIST += unsetenv.c
903
904EXTRA_libgnu_a_SOURCES += unsetenv.c
905
906## end gnulib module unsetenv
907
908## begin gnulib module utimens
909
910libgnu_a_SOURCES += utimens.c
911
912EXTRA_DIST += utimens.h
913
914## end gnulib module utimens
915
916## begin gnulib module verify
917
a74b0e1b
EZ
918EXTRA_DIST += verify.h
919
920## end gnulib module verify
921
922## begin gnulib module xalloc-oversized
923
924if gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec
925
926endif
927EXTRA_DIST += xalloc-oversized.h
928
929## end gnulib module xalloc-oversized
930
931
932mostlyclean-local: mostlyclean-generic
933 @for dir in '' $(MOSTLYCLEANDIRS); do \
934 if test -n "$$dir" && test -d $$dir; then \
935 echo "rmdir $$dir"; rmdir $$dir; \
936 fi; \
937 done; \
938 :