Added nt/gnulib.mk and removed kludges from ms-w32.h and ntlib.h.
[bpt/emacs.git] / nt / gnulib.mk
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.
25 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
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.
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=dup --avoid=errno --avoid=fchdir --avoid=fcntl --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 c-ctype c-strcase careadlinkat close-stream crypto/md5 crypto/sha1 crypto/sha256 crypto/sha512 dtoastr dtotimespec dup2 environ execinfo faccessat fcntl-h fdatasync fdopendir filemode fstatat fsync getloadavg getopt-gnu gettime gettimeofday ignore-value intprops largefile lstat manywarnings memrchr mktime pselect pthread_sigmask putenv 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
47
48
49 MOSTLYCLEANFILES += core *.stackdump
50
51 noinst_LIBRARIES += libgnu.a
52
53 libgnu_a_SOURCES =
54 libgnu_a_LIBADD = $(gl_LIBOBJS)
55 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
56 EXTRA_libgnu_a_SOURCES =
57
58 ## begin gnulib module alloca-opt
59
60 BUILT_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.
64 if GL_GENERATE_ALLOCA_H
65 alloca.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 $@
71 else
72 alloca.h: $(top_builddir)/config.status
73 rm -f $@
74 endif
75 MOSTLYCLEANFILES += alloca.h alloca.h-t
76
77 EXTRA_DIST += alloca.in.h
78
79 ## end gnulib module alloca-opt
80
81 ## begin gnulib module c-ctype
82
83 libgnu_a_SOURCES += c-ctype.h c-ctype.c
84
85 ## end gnulib module c-ctype
86
87 ## begin gnulib module c-strcase
88
89 libgnu_a_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
90
91 ## end gnulib module c-strcase
92
93 ## begin gnulib module close-stream
94
95 libgnu_a_SOURCES += close-stream.c
96
97 EXTRA_DIST += close-stream.h
98
99 ## end gnulib module close-stream
100
101 ## begin gnulib module crypto/md5
102
103 libgnu_a_SOURCES += md5.c
104
105 EXTRA_DIST += md5.h
106
107 ## end gnulib module crypto/md5
108
109 ## begin gnulib module crypto/sha1
110
111 libgnu_a_SOURCES += sha1.c
112
113 EXTRA_DIST += sha1.h
114
115 ## end gnulib module crypto/sha1
116
117 ## begin gnulib module crypto/sha256
118
119 libgnu_a_SOURCES += sha256.c
120
121 EXTRA_DIST += sha256.h
122
123 ## end gnulib module crypto/sha256
124
125 ## begin gnulib module crypto/sha512
126
127 libgnu_a_SOURCES += sha512.c
128
129 EXTRA_DIST += sha512.h
130
131 ## end gnulib module crypto/sha512
132
133 ## begin gnulib module dosname
134
135 if gl_GNULIB_ENABLED_dosname
136
137 endif
138 EXTRA_DIST += dosname.h
139
140 ## end gnulib module dosname
141
142 ## begin gnulib module dtoastr
143
144 libgnu_a_SOURCES += dtoastr.c
145
146 EXTRA_DIST += ftoastr.c ftoastr.h
147
148 EXTRA_libgnu_a_SOURCES += ftoastr.c
149
150 ## end gnulib module dtoastr
151
152 ## begin gnulib module dtotimespec
153
154 libgnu_a_SOURCES += dtotimespec.c
155
156 ## end gnulib module dtotimespec
157
158 ## begin gnulib module dup2
159
160
161 EXTRA_DIST += dup2.c
162
163 EXTRA_libgnu_a_SOURCES += dup2.c
164
165 ## end gnulib module dup2
166
167 ## begin gnulib module euidaccess
168
169 if gl_GNULIB_ENABLED_euidaccess
170
171 endif
172 EXTRA_DIST += euidaccess.c
173
174 EXTRA_libgnu_a_SOURCES += euidaccess.c
175
176 ## end gnulib module euidaccess
177
178 ## begin gnulib module execinfo
179
180 BUILT_SOURCES += $(EXECINFO_H)
181
182 # We need the following in order to create <execinfo.h> when the system
183 # doesn't have one that works.
184 if GL_GENERATE_EXECINFO_H
185 execinfo.h: execinfo.in.h $(top_builddir)/config.status
186 $(AM_V_GEN)rm -f $@-t $@ && \
187 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
188 cat $(srcdir)/execinfo.in.h; \
189 } > $@-t && \
190 mv $@-t $@
191 else
192 execinfo.h: $(top_builddir)/config.status
193 rm -f $@
194 endif
195 MOSTLYCLEANFILES += execinfo.h execinfo.h-t
196
197 EXTRA_DIST += execinfo.c execinfo.in.h
198
199 EXTRA_libgnu_a_SOURCES += execinfo.c
200
201 ## end gnulib module execinfo
202
203 ## begin gnulib module faccessat
204
205
206 EXTRA_DIST += at-func.c faccessat.c
207
208 EXTRA_libgnu_a_SOURCES += at-func.c faccessat.c
209
210 ## end gnulib module faccessat
211
212 ## begin gnulib module fdatasync
213
214
215 EXTRA_DIST += fdatasync.c
216
217 EXTRA_libgnu_a_SOURCES += fdatasync.c
218
219 ## end gnulib module fdatasync
220
221 ## begin gnulib module fdopendir
222
223
224 EXTRA_DIST += fdopendir.c
225
226 EXTRA_libgnu_a_SOURCES += fdopendir.c
227
228 ## end gnulib module fdopendir
229
230 ## begin gnulib module filemode
231
232 libgnu_a_SOURCES += filemode.c
233
234 EXTRA_DIST += filemode.h
235
236 ## end gnulib module filemode
237
238 ## begin gnulib module fpending
239
240
241 EXTRA_DIST += fpending.c fpending.h
242
243 EXTRA_libgnu_a_SOURCES += fpending.c
244
245 ## end gnulib module fpending
246
247 ## begin gnulib module fstatat
248
249
250 EXTRA_DIST += at-func.c fstatat.c
251
252 EXTRA_libgnu_a_SOURCES += at-func.c fstatat.c
253
254 ## end gnulib module fstatat
255
256 ## begin gnulib module fsync
257
258
259 EXTRA_DIST += fsync.c
260
261 EXTRA_libgnu_a_SOURCES += fsync.c
262
263 ## end gnulib module fsync
264
265 ## begin gnulib module getgroups
266
267 if gl_GNULIB_ENABLED_getgroups
268
269 endif
270 EXTRA_DIST += getgroups.c
271
272 EXTRA_libgnu_a_SOURCES += getgroups.c
273
274 ## end gnulib module getgroups
275
276 ## begin gnulib module getloadavg
277
278
279 EXTRA_DIST += getloadavg.c
280
281 EXTRA_libgnu_a_SOURCES += getloadavg.c
282
283 ## end gnulib module getloadavg
284
285 ## begin gnulib module getopt-posix
286
287 BUILT_SOURCES += $(GETOPT_H)
288
289 # We need the following in order to create <getopt.h> when the system
290 # doesn't have one that works with the given compiler.
291 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
292 $(AM_V_GEN)rm -f $@-t $@ && \
293 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
294 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
295 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
296 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
297 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
298 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
299 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
300 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
301 < $(srcdir)/getopt.in.h; \
302 } > $@-t && \
303 mv -f $@-t $@
304 MOSTLYCLEANFILES += getopt.h getopt.h-t
305
306 EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
307
308 EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
309
310 ## end gnulib module getopt-posix
311
312 ## begin gnulib module gettext-h
313
314 if gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36
315 libgnu_a_SOURCES += gettext.h
316
317 endif
318 ## end gnulib module gettext-h
319
320 ## begin gnulib module gettime
321
322 libgnu_a_SOURCES += gettime.c
323
324 ## end gnulib module gettime
325
326 ## begin gnulib module gettimeofday
327
328
329 EXTRA_DIST += gettimeofday.c
330
331 EXTRA_libgnu_a_SOURCES += gettimeofday.c
332
333 ## end gnulib module gettimeofday
334
335 ## begin gnulib module group-member
336
337 if gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1
338
339 endif
340 EXTRA_DIST += group-member.c
341
342 EXTRA_libgnu_a_SOURCES += group-member.c
343
344 ## end gnulib module group-member
345
346 ## begin gnulib module ignore-value
347
348
349 EXTRA_DIST += ignore-value.h
350
351 ## end gnulib module ignore-value
352
353 ## begin gnulib module intprops
354
355
356 EXTRA_DIST += intprops.h
357
358 ## end gnulib module intprops
359
360 ## begin gnulib module lstat
361
362
363 EXTRA_DIST += lstat.c
364
365 EXTRA_libgnu_a_SOURCES += lstat.c
366
367 ## end gnulib module lstat
368
369 ## begin gnulib module memrchr
370
371
372 EXTRA_DIST += memrchr.c
373
374 EXTRA_libgnu_a_SOURCES += memrchr.c
375
376 ## end gnulib module memrchr
377
378 ## begin gnulib module mktime
379
380
381 EXTRA_DIST += mktime-internal.h mktime.c
382
383 EXTRA_libgnu_a_SOURCES += mktime.c
384
385 ## end gnulib module mktime
386
387 ## begin gnulib module openat-h
388
389 if gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7
390
391 endif
392 EXTRA_DIST += openat.h
393
394 ## end gnulib module openat-h
395
396 ## begin gnulib module pathmax
397
398 if gl_GNULIB_ENABLED_pathmax
399
400 endif
401 EXTRA_DIST += pathmax.h
402
403 ## end gnulib module pathmax
404
405 ## begin gnulib module pselect
406
407
408 EXTRA_DIST += pselect.c
409
410 EXTRA_libgnu_a_SOURCES += pselect.c
411
412 ## end gnulib module pselect
413
414 ## begin gnulib module pthread_sigmask
415
416
417 EXTRA_DIST += pthread_sigmask.c
418
419 EXTRA_libgnu_a_SOURCES += pthread_sigmask.c
420
421 ## end gnulib module pthread_sigmask
422
423 ## begin gnulib module putenv
424
425
426 EXTRA_DIST += putenv.c
427
428 EXTRA_libgnu_a_SOURCES += putenv.c
429
430 ## end gnulib module putenv
431
432 ## begin gnulib module readlink
433
434
435 EXTRA_DIST += readlink.c
436
437 EXTRA_libgnu_a_SOURCES += readlink.c
438
439 ## end gnulib module readlink
440
441 ## begin gnulib module readlinkat
442
443
444 EXTRA_DIST += at-func.c readlinkat.c
445
446 EXTRA_libgnu_a_SOURCES += at-func.c readlinkat.c
447
448 ## end gnulib module readlinkat
449
450 ## begin gnulib module root-uid
451
452 if gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c
453
454 endif
455 EXTRA_DIST += root-uid.h
456
457 ## end gnulib module root-uid
458
459 ## begin gnulib module sig2str
460
461
462 EXTRA_DIST += sig2str.c sig2str.h
463
464 EXTRA_libgnu_a_SOURCES += sig2str.c
465
466 ## end gnulib module sig2str
467
468 ## begin gnulib module snippet/_Noreturn
469
470 # Because this Makefile snippet defines a variable used by other
471 # gnulib Makefile snippets, it must be present in all Makefile.am that
472 # need it. This is ensured by the applicability 'all' defined above.
473
474 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
475
476 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
477
478 ## end gnulib module snippet/_Noreturn
479
480 ## begin gnulib module snippet/arg-nonnull
481
482 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
483 # statements but through direct file reference. Therefore this snippet must be
484 # present in all Makefile.am that need it. This is ensured by the applicability
485 # 'all' defined above.
486
487 BUILT_SOURCES += arg-nonnull.h
488 # The arg-nonnull.h that gets inserted into generated .h files is the same as
489 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
490 # off.
491 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
492 $(AM_V_GEN)rm -f $@-t $@ && \
493 sed -n -e '/GL_ARG_NONNULL/,$$p' \
494 < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
495 > $@-t && \
496 mv $@-t $@
497 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
498
499 ARG_NONNULL_H=arg-nonnull.h
500
501 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
502
503 ## end gnulib module snippet/arg-nonnull
504
505 ## begin gnulib module snippet/c++defs
506
507 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
508 # statements but through direct file reference. Therefore this snippet must be
509 # present in all Makefile.am that need it. This is ensured by the applicability
510 # 'all' defined above.
511
512 BUILT_SOURCES += c++defs.h
513 # The c++defs.h that gets inserted into generated .h files is the same as
514 # build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
515 c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
516 $(AM_V_GEN)rm -f $@-t $@ && \
517 sed -n -e '/_GL_CXXDEFS/,$$p' \
518 < $(top_srcdir)/build-aux/snippet/c++defs.h \
519 > $@-t && \
520 mv $@-t $@
521 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
522
523 CXXDEFS_H=c++defs.h
524
525 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
526
527 ## end gnulib module snippet/c++defs
528
529 ## begin gnulib module snippet/warn-on-use
530
531 BUILT_SOURCES += warn-on-use.h
532 # The warn-on-use.h that gets inserted into generated .h files is the same as
533 # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
534 # off.
535 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
536 $(AM_V_GEN)rm -f $@-t $@ && \
537 sed -n -e '/^.ifndef/,$$p' \
538 < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
539 > $@-t && \
540 mv $@-t $@
541 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
542
543 WARN_ON_USE_H=warn-on-use.h
544
545 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
546
547 ## end gnulib module snippet/warn-on-use
548
549 ## begin gnulib module stat
550
551 if gl_GNULIB_ENABLED_stat
552
553 endif
554 EXTRA_DIST += stat.c
555
556 EXTRA_libgnu_a_SOURCES += stat.c
557
558 ## end gnulib module stat
559
560 ## begin gnulib module stat-time
561
562 libgnu_a_SOURCES += stat-time.c
563
564 EXTRA_DIST += stat-time.h
565
566 ## end gnulib module stat-time
567
568 ## begin gnulib module stdalign
569
570 BUILT_SOURCES += $(STDALIGN_H)
571
572 # We need the following in order to create <stdalign.h> when the system
573 # doesn't have one that works.
574 if GL_GENERATE_STDALIGN_H
575 stdalign.h: stdalign.in.h $(top_builddir)/config.status
576 $(AM_V_GEN)rm -f $@-t $@ && \
577 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
578 cat $(srcdir)/stdalign.in.h; \
579 } > $@-t && \
580 mv $@-t $@
581 else
582 stdalign.h: $(top_builddir)/config.status
583 rm -f $@
584 endif
585 MOSTLYCLEANFILES += stdalign.h stdalign.h-t
586
587 EXTRA_DIST += stdalign.in.h
588
589 ## end gnulib module stdalign
590
591 ## begin gnulib module stdarg
592
593 BUILT_SOURCES += $(STDARG_H)
594
595 # We need the following in order to create <stdarg.h> when the system
596 # doesn't have one that works with the given compiler.
597 if GL_GENERATE_STDARG_H
598 stdarg.h: stdarg.in.h $(top_builddir)/config.status
599 $(AM_V_GEN)rm -f $@-t $@ && \
600 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
601 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
602 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
603 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
604 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
605 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
606 < $(srcdir)/stdarg.in.h; \
607 } > $@-t && \
608 mv $@-t $@
609 else
610 stdarg.h: $(top_builddir)/config.status
611 rm -f $@
612 endif
613 MOSTLYCLEANFILES += stdarg.h stdarg.h-t
614
615 EXTRA_DIST += stdarg.in.h
616
617 ## end gnulib module stdarg
618
619 ## begin gnulib module stdbool
620
621 BUILT_SOURCES += $(STDBOOL_H)
622
623 # We need the following in order to create <stdbool.h> when the system
624 # doesn't have one that works.
625 if GL_GENERATE_STDBOOL_H
626 stdbool.h: stdbool.in.h $(top_builddir)/config.status
627 $(AM_V_GEN)rm -f $@-t $@ && \
628 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
629 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
630 } > $@-t && \
631 mv $@-t $@
632 else
633 stdbool.h: $(top_builddir)/config.status
634 rm -f $@
635 endif
636 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
637
638 EXTRA_DIST += stdbool.in.h
639
640 ## end gnulib module stdbool
641
642 ## begin gnulib module stddef
643
644 BUILT_SOURCES += $(STDDEF_H)
645
646 # We need the following in order to create <stddef.h> when the system
647 # doesn't have one that works with the given compiler.
648 if GL_GENERATE_STDDEF_H
649 stddef.h: stddef.in.h $(top_builddir)/config.status
650 $(AM_V_GEN)rm -f $@-t $@ && \
651 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
652 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
653 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
654 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
655 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
656 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
657 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
658 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
659 < $(srcdir)/stddef.in.h; \
660 } > $@-t && \
661 mv $@-t $@
662 else
663 stddef.h: $(top_builddir)/config.status
664 rm -f $@
665 endif
666 MOSTLYCLEANFILES += stddef.h stddef.h-t
667
668 EXTRA_DIST += stddef.in.h
669
670 ## end gnulib module stddef
671
672 ## begin gnulib module stdint
673
674 BUILT_SOURCES += $(STDINT_H)
675
676 # We need the following in order to create <stdint.h> when the system
677 # doesn't have one that works with the given compiler.
678 if GL_GENERATE_STDINT_H
679 stdint.h: stdint.in.h $(top_builddir)/config.status
680 $(AM_V_GEN)rm -f $@-t $@ && \
681 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
682 sed -e 's|@''GUARD_PREFIX''@|GL|g' \
683 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
684 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
685 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
686 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
687 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
688 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
689 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
690 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
691 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
692 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
693 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
694 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
695 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
696 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
697 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
698 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
699 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
700 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
701 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
702 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
703 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
704 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
705 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
706 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
707 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
708 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
709 < $(srcdir)/stdint.in.h; \
710 } > $@-t && \
711 mv $@-t $@
712 else
713 stdint.h: $(top_builddir)/config.status
714 rm -f $@
715 endif
716 MOSTLYCLEANFILES += stdint.h stdint.h-t
717
718 EXTRA_DIST += stdint.in.h
719
720 ## end gnulib module stdint
721
722 ## begin gnulib module strftime
723
724 libgnu_a_SOURCES += strftime.c
725
726 EXTRA_DIST += strftime.h
727
728 ## end gnulib module strftime
729
730 ## begin gnulib module strtoimax
731
732
733 EXTRA_DIST += strtoimax.c
734
735 EXTRA_libgnu_a_SOURCES += strtoimax.c
736
737 ## end gnulib module strtoimax
738
739 ## begin gnulib module strtoll
740
741 if gl_GNULIB_ENABLED_strtoll
742
743 endif
744 EXTRA_DIST += strtol.c strtoll.c
745
746 EXTRA_libgnu_a_SOURCES += strtol.c strtoll.c
747
748 ## end gnulib module strtoll
749
750 ## begin gnulib module strtoull
751
752 if gl_GNULIB_ENABLED_strtoull
753
754 endif
755 EXTRA_DIST += strtol.c strtoul.c strtoull.c
756
757 EXTRA_libgnu_a_SOURCES += strtol.c strtoul.c strtoull.c
758
759 ## end gnulib module strtoull
760
761 ## begin gnulib module strtoumax
762
763
764 EXTRA_DIST += strtoimax.c strtoumax.c
765
766 EXTRA_libgnu_a_SOURCES += strtoimax.c strtoumax.c
767
768 ## end gnulib module strtoumax
769
770 ## begin gnulib module symlink
771
772
773 EXTRA_DIST += symlink.c
774
775 EXTRA_libgnu_a_SOURCES += symlink.c
776
777 ## end gnulib module symlink
778
779 ## begin gnulib module time_r
780
781
782 EXTRA_DIST += time_r.c
783
784 EXTRA_libgnu_a_SOURCES += time_r.c
785
786 ## end gnulib module time_r
787
788 ## begin gnulib module timespec
789
790 libgnu_a_SOURCES += timespec.c
791
792 EXTRA_DIST += timespec.h
793
794 ## end gnulib module timespec
795
796 ## begin gnulib module timespec-add
797
798 libgnu_a_SOURCES += timespec-add.c
799
800 ## end gnulib module timespec-add
801
802 ## begin gnulib module timespec-sub
803
804 libgnu_a_SOURCES += timespec-sub.c
805
806 ## end gnulib module timespec-sub
807
808 ## begin gnulib module u64
809
810 libgnu_a_SOURCES += u64.c
811
812 EXTRA_DIST += u64.h
813
814 ## end gnulib module u64
815
816 ## begin gnulib module unsetenv
817
818
819 EXTRA_DIST += unsetenv.c
820
821 EXTRA_libgnu_a_SOURCES += unsetenv.c
822
823 ## end gnulib module unsetenv
824
825 ## begin gnulib module utimens
826
827 libgnu_a_SOURCES += utimens.c
828
829 EXTRA_DIST += utimens.h
830
831 ## end gnulib module utimens
832
833 ## begin gnulib module verify
834
835 if gl_GNULIB_ENABLED_verify
836
837 endif
838 EXTRA_DIST += verify.h
839
840 ## end gnulib module verify
841
842 ## begin gnulib module xalloc-oversized
843
844 if gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec
845
846 endif
847 EXTRA_DIST += xalloc-oversized.h
848
849 ## end gnulib module xalloc-oversized
850
851
852 mostlyclean-local: mostlyclean-generic
853 @for dir in '' $(MOSTLYCLEANDIRS); do \
854 if test -n "$$dir" && test -d $$dir; then \
855 echo "rmdir $$dir"; rmdir $$dir; \
856 fi; \
857 done; \
858 :