1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
3# Copyright (C) 2002-2018 Free Software Foundation, Inc.
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9#
10# This file is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this file.  If not, see <https://www.gnu.org/licenses/>.
17#
18# As a special exception to the GNU General Public License,
19# this file may be distributed as part of a program that
20# contains a configuration script generated by Autoconf, under
21# the same distribution terms as the rest of that program.
22#
23# Generated by gnulib-tool.
24
25AUTOMAKE_OPTIONS = 1.9.6 foreign subdir-objects
26
27SUBDIRS = .
28TESTS =
29XFAIL_TESTS =
30TESTS_ENVIRONMENT =
31noinst_PROGRAMS =
32check_PROGRAMS =
33EXTRA_PROGRAMS =
34noinst_HEADERS =
35noinst_LIBRARIES =
36check_LIBRARIES = libtests.a
37EXTRA_DIST =
38BUILT_SOURCES =
39SUFFIXES =
40MOSTLYCLEANFILES = core *.stackdump
41MOSTLYCLEANDIRS =
42CLEANFILES =
43DISTCLEANFILES =
44MAINTAINERCLEANFILES =
45
46AM_CPPFLAGS = \
47  -D@gltests_WITNESS@=1 \
48  -I. -I$(srcdir) \
49  -I.. -I$(srcdir)/.. \
50  -I../gl -I$(srcdir)/../gl
51
52LDADD = libtests.a ../gl/libgnu.la libtests.a $(LIBTESTS_LIBDEPS)
53
54libtests_a_SOURCES =
55libtests_a_LIBADD = $(gltests_LIBOBJS)
56libtests_a_DEPENDENCIES = $(gltests_LIBOBJS)
57EXTRA_libtests_a_SOURCES =
58AM_LIBTOOLFLAGS = --preserve-dup-deps
59
60TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
61
62## begin gnulib module accept
63
64
65EXTRA_DIST += accept.c w32sock.h
66
67EXTRA_libtests_a_SOURCES += accept.c
68
69## end   gnulib module accept
70
71## begin gnulib module accept-tests
72
73TESTS += test-accept
74check_PROGRAMS += test-accept
75test_accept_LDADD = $(LDADD) @LIBSOCKET@
76EXTRA_DIST += test-accept.c signature.h macros.h
77
78## end   gnulib module accept-tests
79
80## begin gnulib module alloca
81
82
83EXTRA_DIST += alloca.c
84
85EXTRA_libtests_a_SOURCES += alloca.c
86
87libtests_a_LIBADD += @ALLOCA@
88libtests_a_DEPENDENCIES += @ALLOCA@
89## end   gnulib module alloca
90
91## begin gnulib module alloca-opt
92
93BUILT_SOURCES += $(ALLOCA_H)
94
95# We need the following in order to create <alloca.h> when the system
96# doesn't have one that works with the given compiler.
97if GL_GENERATE_ALLOCA_H
98alloca.h: alloca.in.h $(top_builddir)/config.status
99	$(AM_V_GEN)rm -f $@-t $@ && \
100	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
101	  cat $(srcdir)/alloca.in.h; \
102	} > $@-t && \
103	mv -f $@-t $@
104else
105alloca.h: $(top_builddir)/config.status
106	rm -f $@
107endif
108MOSTLYCLEANFILES += alloca.h alloca.h-t
109
110EXTRA_DIST += alloca.in.h
111
112## end   gnulib module alloca-opt
113
114## begin gnulib module alloca-opt-tests
115
116TESTS += test-alloca-opt
117check_PROGRAMS += test-alloca-opt
118
119EXTRA_DIST += test-alloca-opt.c
120
121## end   gnulib module alloca-opt-tests
122
123## begin gnulib module arpa_inet
124
125BUILT_SOURCES += arpa/inet.h
126
127# We need the following in order to create <arpa/inet.h> when the system
128# doesn't have one.
129arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
130	$(AM_V_at)$(MKDIR_P) arpa
131	$(AM_V_GEN)rm -f $@-t $@ && \
132	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
133	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
134	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
135	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
136	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
137	      -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
138	      -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
139	      -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
140	      -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
141	      -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
142	      -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
143	      -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
144	      -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
145	      -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
146	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
147	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
148	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
149	      < $(srcdir)/arpa_inet.in.h; \
150	} > $@-t && \
151	mv $@-t $@
152MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
153MOSTLYCLEANDIRS += arpa
154
155EXTRA_DIST += arpa_inet.in.h
156
157## end   gnulib module arpa_inet
158
159## begin gnulib module arpa_inet-tests
160
161TESTS += test-arpa_inet
162check_PROGRAMS += test-arpa_inet
163EXTRA_DIST += test-arpa_inet.c
164
165## end   gnulib module arpa_inet-tests
166
167## begin gnulib module binary-io
168
169libtests_a_SOURCES += binary-io.h binary-io.c
170
171## end   gnulib module binary-io
172
173## begin gnulib module binary-io-tests
174
175TESTS += test-binary-io.sh
176check_PROGRAMS += test-binary-io
177
178EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
179
180## end   gnulib module binary-io-tests
181
182## begin gnulib module bind
183
184
185EXTRA_DIST += bind.c w32sock.h
186
187EXTRA_libtests_a_SOURCES += bind.c
188
189## end   gnulib module bind
190
191## begin gnulib module bind-tests
192
193TESTS += test-bind
194check_PROGRAMS += test-bind
195test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
196EXTRA_DIST += test-bind.c signature.h macros.h
197
198## end   gnulib module bind-tests
199
200## begin gnulib module c-ctype
201
202libtests_a_SOURCES += c-ctype.h c-ctype.c
203
204## end   gnulib module c-ctype
205
206## begin gnulib module c-ctype-tests
207
208TESTS += test-c-ctype
209check_PROGRAMS += test-c-ctype
210EXTRA_DIST += test-c-ctype.c macros.h
211
212## end   gnulib module c-ctype-tests
213
214## begin gnulib module cloexec
215
216libtests_a_SOURCES += cloexec.c
217
218EXTRA_DIST += cloexec.h
219
220## end   gnulib module cloexec
221
222## begin gnulib module cloexec-tests
223
224TESTS += test-cloexec
225check_PROGRAMS += test-cloexec
226EXTRA_DIST += test-cloexec.c macros.h
227
228## end   gnulib module cloexec-tests
229
230## begin gnulib module close
231
232
233EXTRA_DIST += close.c
234
235EXTRA_libtests_a_SOURCES += close.c
236
237## end   gnulib module close
238
239## begin gnulib module close-tests
240
241TESTS += test-close
242check_PROGRAMS += test-close
243EXTRA_DIST += test-close.c signature.h macros.h
244
245## end   gnulib module close-tests
246
247## begin gnulib module connect
248
249
250EXTRA_DIST += connect.c w32sock.h
251
252EXTRA_libtests_a_SOURCES += connect.c
253
254## end   gnulib module connect
255
256## begin gnulib module connect-tests
257
258TESTS += test-connect
259check_PROGRAMS += test-connect
260test_connect_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
261EXTRA_DIST += test-connect.c signature.h macros.h
262
263## end   gnulib module connect-tests
264
265## begin gnulib module ctype
266
267BUILT_SOURCES += ctype.h
268
269# We need the following in order to create <ctype.h> when the system
270# doesn't have one that works with the given compiler.
271ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
272	$(AM_V_GEN)rm -f $@-t $@ && \
273	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
274	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
275	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
276	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
277	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
278	      -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
279	      -e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
280	      -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
281	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
282	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
283	      < $(srcdir)/ctype.in.h; \
284	} > $@-t && \
285	mv $@-t $@
286MOSTLYCLEANFILES += ctype.h ctype.h-t
287
288EXTRA_DIST += ctype.in.h
289
290## end   gnulib module ctype
291
292## begin gnulib module ctype-tests
293
294TESTS += test-ctype
295check_PROGRAMS += test-ctype
296EXTRA_DIST += test-ctype.c
297
298## end   gnulib module ctype-tests
299
300## begin gnulib module dup2
301
302
303EXTRA_DIST += dup2.c
304
305EXTRA_libtests_a_SOURCES += dup2.c
306
307## end   gnulib module dup2
308
309## begin gnulib module dup2-tests
310
311TESTS += test-dup2
312check_PROGRAMS += test-dup2
313EXTRA_DIST += test-dup2.c signature.h macros.h
314
315## end   gnulib module dup2-tests
316
317## begin gnulib module environ-tests
318
319TESTS += test-environ
320check_PROGRAMS += test-environ
321
322EXTRA_DIST += test-environ.c
323
324## end   gnulib module environ-tests
325
326## begin gnulib module errno-tests
327
328TESTS += test-errno
329check_PROGRAMS += test-errno
330
331EXTRA_DIST += test-errno.c
332
333## end   gnulib module errno-tests
334
335## begin gnulib module fcntl
336
337
338EXTRA_DIST += fcntl.c
339
340EXTRA_libtests_a_SOURCES += fcntl.c
341
342## end   gnulib module fcntl
343
344## begin gnulib module fcntl-h
345
346BUILT_SOURCES += fcntl.h
347
348# We need the following in order to create <fcntl.h> when the system
349# doesn't have one that works with the given compiler.
350fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
351	$(AM_V_GEN)rm -f $@-t $@ && \
352	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
353	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
354	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
355	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
356	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
357	      -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
358	      -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \
359	      -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
360	      -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
361	      -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
362	      -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
363	      -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
364	      -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
365	      -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
366	      -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
367	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
368	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
369	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
370	      < $(srcdir)/fcntl.in.h; \
371	} > $@-t && \
372	mv $@-t $@
373MOSTLYCLEANFILES += fcntl.h fcntl.h-t
374
375EXTRA_DIST += fcntl.in.h
376
377## end   gnulib module fcntl-h
378
379## begin gnulib module fcntl-tests
380
381TESTS += test-fcntl
382check_PROGRAMS += test-fcntl
383EXTRA_DIST += test-fcntl.c signature.h macros.h
384
385## end   gnulib module fcntl-tests
386
387## begin gnulib module fd-hook
388
389libtests_a_SOURCES += fd-hook.c
390
391EXTRA_DIST += fd-hook.h
392
393## end   gnulib module fd-hook
394
395## begin gnulib module fdopen
396
397
398EXTRA_DIST += fdopen.c
399
400EXTRA_libtests_a_SOURCES += fdopen.c
401
402## end   gnulib module fdopen
403
404## begin gnulib module fdopen-tests
405
406TESTS += test-fdopen
407check_PROGRAMS += test-fdopen
408EXTRA_DIST += test-fdopen.c signature.h macros.h
409
410## end   gnulib module fdopen-tests
411
412## begin gnulib module fgetc-tests
413
414TESTS += test-fgetc
415check_PROGRAMS += test-fgetc
416EXTRA_DIST += test-fgetc.c signature.h macros.h
417
418## end   gnulib module fgetc-tests
419
420## begin gnulib module filename
421
422
423EXTRA_DIST += filename.h
424
425## end   gnulib module filename
426
427## begin gnulib module fputc-tests
428
429TESTS += test-fputc
430check_PROGRAMS += test-fputc
431EXTRA_DIST += test-fputc.c signature.h macros.h
432
433## end   gnulib module fputc-tests
434
435## begin gnulib module fread-tests
436
437TESTS += test-fread
438check_PROGRAMS += test-fread
439EXTRA_DIST += test-fread.c signature.h macros.h
440
441## end   gnulib module fread-tests
442
443## begin gnulib module fstat
444
445
446EXTRA_DIST += fstat.c stat-w32.c stat-w32.h
447
448EXTRA_libtests_a_SOURCES += fstat.c stat-w32.c
449
450## end   gnulib module fstat
451
452## begin gnulib module fstat-tests
453
454TESTS += test-fstat
455check_PROGRAMS += test-fstat
456EXTRA_DIST += test-fstat.c signature.h macros.h
457
458## end   gnulib module fstat-tests
459
460## begin gnulib module ftruncate
461
462
463EXTRA_DIST += ftruncate.c
464
465EXTRA_libtests_a_SOURCES += ftruncate.c
466
467## end   gnulib module ftruncate
468
469## begin gnulib module ftruncate-tests
470
471TESTS += test-ftruncate.sh
472check_PROGRAMS += test-ftruncate
473EXTRA_DIST += test-ftruncate.c test-ftruncate.sh signature.h macros.h
474
475## end   gnulib module ftruncate-tests
476
477## begin gnulib module fwrite-tests
478
479TESTS += test-fwrite
480check_PROGRAMS += test-fwrite
481EXTRA_DIST += test-fwrite.c signature.h macros.h
482
483## end   gnulib module fwrite-tests
484
485## begin gnulib module getcwd-lgpl
486
487
488EXTRA_DIST += getcwd-lgpl.c
489
490EXTRA_libtests_a_SOURCES += getcwd-lgpl.c
491
492## end   gnulib module getcwd-lgpl
493
494## begin gnulib module getcwd-lgpl-tests
495
496TESTS += test-getcwd-lgpl
497check_PROGRAMS += test-getcwd-lgpl
498test_getcwd_lgpl_LDADD = $(LDADD) $(LIBINTL)
499EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
500
501## end   gnulib module getcwd-lgpl-tests
502
503## begin gnulib module getdelim-tests
504
505TESTS += test-getdelim
506check_PROGRAMS += test-getdelim
507MOSTLYCLEANFILES += test-getdelim.txt
508EXTRA_DIST += test-getdelim.c signature.h macros.h
509
510## end   gnulib module getdelim-tests
511
512## begin gnulib module getdtablesize
513
514
515EXTRA_DIST += getdtablesize.c
516
517EXTRA_libtests_a_SOURCES += getdtablesize.c
518
519## end   gnulib module getdtablesize
520
521## begin gnulib module getdtablesize-tests
522
523TESTS += test-getdtablesize
524check_PROGRAMS += test-getdtablesize
525EXTRA_DIST += test-getdtablesize.c signature.h macros.h
526
527## end   gnulib module getdtablesize-tests
528
529## begin gnulib module getline-tests
530
531TESTS += test-getline
532check_PROGRAMS += test-getline
533MOSTLYCLEANFILES += test-getline.txt
534EXTRA_DIST += test-getline.c signature.h macros.h
535
536## end   gnulib module getline-tests
537
538## begin gnulib module getopt-gnu-tests
539
540TESTS += test-getopt-gnu
541check_PROGRAMS += test-getopt-gnu
542test_getopt_gnu_LDADD = $(LDADD) $(LIBINTL)
543EXTRA_DIST += macros.h signature.h test-getopt-gnu.c test-getopt-main.h test-getopt.h test-getopt_long.h
544
545## end   gnulib module getopt-gnu-tests
546
547## begin gnulib module getopt-posix-tests
548
549TESTS += test-getopt-posix
550check_PROGRAMS += test-getopt-posix
551test_getopt_posix_LDADD = $(LDADD) $(LIBINTL)
552EXTRA_DIST += macros.h signature.h test-getopt-posix.c test-getopt-main.h test-getopt.h
553
554## end   gnulib module getopt-posix-tests
555
556## begin gnulib module getprogname-tests
557
558DEFS += -DEXEEXT=\"@EXEEXT@\"
559TESTS += test-getprogname
560check_PROGRAMS += test-getprogname
561test_getprogname_LDADD = $(LDADD)
562EXTRA_DIST += test-getprogname.c
563
564## end   gnulib module getprogname-tests
565
566## begin gnulib module gettimeofday
567
568
569EXTRA_DIST += gettimeofday.c
570
571EXTRA_libtests_a_SOURCES += gettimeofday.c
572
573## end   gnulib module gettimeofday
574
575## begin gnulib module gettimeofday-tests
576
577TESTS += test-gettimeofday
578check_PROGRAMS += test-gettimeofday
579
580EXTRA_DIST += signature.h test-gettimeofday.c
581
582## end   gnulib module gettimeofday-tests
583
584## begin gnulib module havelib
585
586
587EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
588
589## end   gnulib module havelib
590
591## begin gnulib module ignore-value
592
593
594EXTRA_DIST += ignore-value.h
595
596## end   gnulib module ignore-value
597
598## begin gnulib module ignore-value-tests
599
600TESTS += test-ignore-value
601check_PROGRAMS += test-ignore-value
602EXTRA_DIST += test-ignore-value.c
603
604## end   gnulib module ignore-value-tests
605
606## begin gnulib module inet_pton
607
608
609EXTRA_DIST += inet_pton.c
610
611EXTRA_libtests_a_SOURCES += inet_pton.c
612
613## end   gnulib module inet_pton
614
615## begin gnulib module inet_pton-tests
616
617TESTS += test-inet_pton
618check_PROGRAMS += test-inet_pton
619test_inet_pton_LDADD = $(LDADD) @INET_PTON_LIB@
620EXTRA_DIST += test-inet_pton.c signature.h macros.h
621
622## end   gnulib module inet_pton-tests
623
624## begin gnulib module intprops-tests
625
626TESTS += test-intprops
627check_PROGRAMS += test-intprops
628EXTRA_DIST += test-intprops.c macros.h
629
630## end   gnulib module intprops-tests
631
632## begin gnulib module inttypes-incomplete
633
634BUILT_SOURCES += inttypes.h
635
636# We need the following in order to create <inttypes.h> when the system
637# doesn't have one that works with the given compiler.
638inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
639	$(AM_V_GEN)rm -f $@-t $@ && \
640	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
641	  sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
642	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
643	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
644	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
645	      -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
646	      -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
647	      -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
648	      -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
649	      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
650	      -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
651	      -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
652	      -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
653	      -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
654	      -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
655	      -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
656	      -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
657	      -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
658	      -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
659	      -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
660	      -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
661	      -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
662	      -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
663	      -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
664	      -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
665	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
666	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
667	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
668	      < $(srcdir)/inttypes.in.h; \
669	} > $@-t && \
670	mv $@-t $@
671MOSTLYCLEANFILES += inttypes.h inttypes.h-t
672
673EXTRA_DIST += inttypes.in.h
674
675## end   gnulib module inttypes-incomplete
676
677## begin gnulib module inttypes-tests
678
679TESTS += test-inttypes
680check_PROGRAMS += test-inttypes
681EXTRA_DIST += test-inttypes.c
682
683## end   gnulib module inttypes-tests
684
685## begin gnulib module ioctl
686
687
688EXTRA_DIST += ioctl.c w32sock.h
689
690EXTRA_libtests_a_SOURCES += ioctl.c
691
692## end   gnulib module ioctl
693
694## begin gnulib module ioctl-tests
695
696TESTS += test-ioctl
697check_PROGRAMS += test-ioctl
698EXTRA_DIST += test-ioctl.c signature.h macros.h
699
700## end   gnulib module ioctl-tests
701
702## begin gnulib module isblank
703
704
705EXTRA_DIST += isblank.c
706
707EXTRA_libtests_a_SOURCES += isblank.c
708
709## end   gnulib module isblank
710
711## begin gnulib module isblank-tests
712
713TESTS += test-isblank
714check_PROGRAMS += test-isblank
715EXTRA_DIST += test-isblank.c signature.h macros.h
716
717## end   gnulib module isblank-tests
718
719## begin gnulib module limits-h-tests
720
721TESTS += test-limits-h
722check_PROGRAMS += test-limits-h
723EXTRA_DIST += test-limits-h.c
724
725## end   gnulib module limits-h-tests
726
727## begin gnulib module listen
728
729
730EXTRA_DIST += listen.c w32sock.h
731
732EXTRA_libtests_a_SOURCES += listen.c
733
734## end   gnulib module listen
735
736## begin gnulib module listen-tests
737
738TESTS += test-listen
739check_PROGRAMS += test-listen
740test_listen_LDADD = $(LDADD) @LIBSOCKET@
741EXTRA_DIST += test-listen.c signature.h macros.h
742
743## end   gnulib module listen-tests
744
745## begin gnulib module localtime-buffer
746
747
748EXTRA_DIST += localtime-buffer.c localtime-buffer.h
749
750EXTRA_libtests_a_SOURCES += localtime-buffer.c
751
752## end   gnulib module localtime-buffer
753
754## begin gnulib module lock
755
756libtests_a_SOURCES += glthread/lock.h glthread/lock.c
757
758## end   gnulib module lock
759
760## begin gnulib module lock-tests
761
762TESTS += test-rwlock1 test-lock
763check_PROGRAMS += test-rwlock1 test-lock
764test_rwlock1_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
765test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
766EXTRA_DIST += test-rwlock1.c test-lock.c
767
768## end   gnulib module lock-tests
769
770## begin gnulib module lstat
771
772
773EXTRA_DIST += lstat.c
774
775EXTRA_libtests_a_SOURCES += lstat.c
776
777## end   gnulib module lstat
778
779## begin gnulib module lstat-tests
780
781TESTS += test-lstat
782check_PROGRAMS += test-lstat
783EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
784
785## end   gnulib module lstat-tests
786
787## begin gnulib module malloca
788
789libtests_a_SOURCES += malloca.c
790
791EXTRA_DIST += malloca.h
792
793## end   gnulib module malloca
794
795## begin gnulib module malloca-tests
796
797TESTS += test-malloca
798check_PROGRAMS += test-malloca
799
800EXTRA_DIST += test-malloca.c
801
802## end   gnulib module malloca-tests
803
804## begin gnulib module nanosleep
805
806
807EXTRA_DIST += nanosleep.c
808
809EXTRA_libtests_a_SOURCES += nanosleep.c
810
811## end   gnulib module nanosleep
812
813## begin gnulib module nanosleep-tests
814
815TESTS += test-nanosleep
816check_PROGRAMS += test-nanosleep
817test_nanosleep_LDADD = $(LDADD) $(LIB_NANOSLEEP)
818EXTRA_DIST += test-nanosleep.c signature.h macros.h
819
820## end   gnulib module nanosleep-tests
821
822## begin gnulib module netinet_in
823
824BUILT_SOURCES += $(NETINET_IN_H)
825
826# We need the following in order to create <netinet/in.h> when the system
827# doesn't have one.
828if GL_GENERATE_NETINET_IN_H
829netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
830	$(AM_V_at)$(MKDIR_P) netinet
831	$(AM_V_GEN)rm -f $@-t $@ && \
832	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
833	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
834	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
835	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
836	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
837	      -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
838	      -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
839	      < $(srcdir)/netinet_in.in.h; \
840	} > $@-t && \
841	mv $@-t $@
842else
843netinet/in.h: $(top_builddir)/config.status
844	rm -f $@
845endif
846MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
847MOSTLYCLEANDIRS += netinet
848
849EXTRA_DIST += netinet_in.in.h
850
851## end   gnulib module netinet_in
852
853## begin gnulib module netinet_in-tests
854
855TESTS += test-netinet_in
856check_PROGRAMS += test-netinet_in
857EXTRA_DIST += test-netinet_in.c
858
859## end   gnulib module netinet_in-tests
860
861## begin gnulib module open
862
863
864EXTRA_DIST += open.c
865
866EXTRA_libtests_a_SOURCES += open.c
867
868## end   gnulib module open
869
870## begin gnulib module open-tests
871
872TESTS += test-open
873check_PROGRAMS += test-open
874EXTRA_DIST += test-open.h test-open.c signature.h macros.h
875
876## end   gnulib module open-tests
877
878## begin gnulib module pathmax
879
880
881EXTRA_DIST += pathmax.h
882
883## end   gnulib module pathmax
884
885## begin gnulib module pathmax-tests
886
887TESTS += test-pathmax
888check_PROGRAMS += test-pathmax
889EXTRA_DIST += test-pathmax.c
890
891## end   gnulib module pathmax-tests
892
893## begin gnulib module perror
894
895
896EXTRA_DIST += perror.c
897
898EXTRA_libtests_a_SOURCES += perror.c
899
900## end   gnulib module perror
901
902## begin gnulib module perror-tests
903
904TESTS += test-perror.sh test-perror2
905check_PROGRAMS += test-perror test-perror2
906EXTRA_DIST += macros.h signature.h test-perror.c test-perror2.c test-perror.sh
907
908## end   gnulib module perror-tests
909
910## begin gnulib module pipe-posix
911
912
913EXTRA_DIST += pipe.c
914
915EXTRA_libtests_a_SOURCES += pipe.c
916
917## end   gnulib module pipe-posix
918
919## begin gnulib module pipe-posix-tests
920
921TESTS += test-pipe
922check_PROGRAMS += test-pipe
923EXTRA_DIST += test-pipe.c signature.h macros.h
924
925## end   gnulib module pipe-posix-tests
926
927## begin gnulib module pthread_sigmask
928
929
930EXTRA_DIST += pthread_sigmask.c
931
932EXTRA_libtests_a_SOURCES += pthread_sigmask.c
933
934## end   gnulib module pthread_sigmask
935
936## begin gnulib module pthread_sigmask-tests
937
938TESTS += test-pthread_sigmask1 test-pthread_sigmask2
939check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
940test_pthread_sigmask1_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@
941test_pthread_sigmask2_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@ @LIBMULTITHREAD@
942EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h macros.h
943
944## end   gnulib module pthread_sigmask-tests
945
946## begin gnulib module putenv
947
948
949EXTRA_DIST += putenv.c
950
951EXTRA_libtests_a_SOURCES += putenv.c
952
953## end   gnulib module putenv
954
955## begin gnulib module raise
956
957
958EXTRA_DIST += raise.c
959
960EXTRA_libtests_a_SOURCES += raise.c
961
962## end   gnulib module raise
963
964## begin gnulib module raise-tests
965
966TESTS += test-raise
967check_PROGRAMS += test-raise
968EXTRA_DIST += test-raise.c signature.h macros.h
969
970## end   gnulib module raise-tests
971
972## begin gnulib module same-inode
973
974
975EXTRA_DIST += same-inode.h
976
977## end   gnulib module same-inode
978
979## begin gnulib module select
980
981
982EXTRA_DIST += select.c
983
984EXTRA_libtests_a_SOURCES += select.c
985
986## end   gnulib module select
987
988## begin gnulib module select-tests
989
990TESTS += test-select test-select-in.sh test-select-out.sh
991# test-select-stdin has to be run by hand.
992check_PROGRAMS += test-select test-select-fd test-select-stdin
993test_select_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ $(INET_PTON_LIB)
994test_select_fd_LDADD = $(LDADD) @LIB_SELECT@
995test_select_stdin_LDADD = $(LDADD) @LIB_SELECT@
996EXTRA_DIST += macros.h signature.h test-select.c test-select.h test-select-fd.c test-select-in.sh test-select-out.sh test-select-stdin.c
997
998## end   gnulib module select-tests
999
1000## begin gnulib module setenv
1001
1002
1003EXTRA_DIST += setenv.c
1004
1005EXTRA_libtests_a_SOURCES += setenv.c
1006
1007## end   gnulib module setenv
1008
1009## begin gnulib module setenv-tests
1010
1011TESTS += test-setenv
1012check_PROGRAMS += test-setenv
1013EXTRA_DIST += test-setenv.c signature.h macros.h
1014
1015## end   gnulib module setenv-tests
1016
1017## begin gnulib module setsockopt
1018
1019
1020EXTRA_DIST += setsockopt.c w32sock.h
1021
1022EXTRA_libtests_a_SOURCES += setsockopt.c
1023
1024## end   gnulib module setsockopt
1025
1026## begin gnulib module setsockopt-tests
1027
1028TESTS += test-setsockopt
1029check_PROGRAMS += test-setsockopt
1030test_setsockopt_LDADD = $(LDADD) @LIBSOCKET@
1031EXTRA_DIST += test-setsockopt.c signature.h macros.h
1032
1033## end   gnulib module setsockopt-tests
1034
1035## begin gnulib module sigaction
1036
1037libtests_a_SOURCES += sig-handler.c
1038
1039EXTRA_DIST += sig-handler.h sigaction.c
1040
1041EXTRA_libtests_a_SOURCES += sigaction.c
1042
1043## end   gnulib module sigaction
1044
1045## begin gnulib module sigaction-tests
1046
1047TESTS += test-sigaction
1048check_PROGRAMS += test-sigaction
1049EXTRA_DIST += test-sigaction.c signature.h macros.h
1050
1051## end   gnulib module sigaction-tests
1052
1053## begin gnulib module signal-h
1054
1055BUILT_SOURCES += signal.h
1056
1057# We need the following in order to create <signal.h> when the system
1058# doesn't have a complete one.
1059signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1060	$(AM_V_GEN)rm -f $@-t $@ && \
1061	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1062	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1063	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1064	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1065	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1066	      -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \
1067	      -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GNULIB_PTHREAD_SIGMASK)/g' \
1068	      -e 's/@''GNULIB_RAISE''@/$(GNULIB_RAISE)/g' \
1069	      -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \
1070	      -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \
1071	      -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \
1072	      -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \
1073	      -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \
1074	      -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \
1075	      -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \
1076	      -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \
1077	      -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
1078	      -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
1079	      -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
1080	      -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \
1081	      -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \
1082	      -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \
1083	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1084	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1085	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1086	      < $(srcdir)/signal.in.h; \
1087	} > $@-t && \
1088	mv $@-t $@
1089MOSTLYCLEANFILES += signal.h signal.h-t
1090
1091EXTRA_DIST += signal.in.h
1092
1093## end   gnulib module signal-h
1094
1095## begin gnulib module signal-h-tests
1096
1097TESTS += test-signal-h
1098check_PROGRAMS += test-signal-h
1099EXTRA_DIST += test-signal-h.c
1100
1101## end   gnulib module signal-h-tests
1102
1103## begin gnulib module sigprocmask
1104
1105
1106EXTRA_DIST += sigprocmask.c
1107
1108EXTRA_libtests_a_SOURCES += sigprocmask.c
1109
1110## end   gnulib module sigprocmask
1111
1112## begin gnulib module sigprocmask-tests
1113
1114TESTS += test-sigprocmask
1115check_PROGRAMS += test-sigprocmask
1116EXTRA_DIST += test-sigprocmask.c signature.h macros.h
1117
1118## end   gnulib module sigprocmask-tests
1119
1120## begin gnulib module sleep
1121
1122
1123EXTRA_DIST += sleep.c
1124
1125EXTRA_libtests_a_SOURCES += sleep.c
1126
1127## end   gnulib module sleep
1128
1129## begin gnulib module sleep-tests
1130
1131TESTS += test-sleep
1132check_PROGRAMS += test-sleep
1133EXTRA_DIST += test-sleep.c signature.h macros.h
1134
1135## end   gnulib module sleep-tests
1136
1137## begin gnulib module snippet/_Noreturn
1138
1139# Because this Makefile snippet defines a variable used by other
1140# gnulib Makefile snippets, it must be present in all makefiles that
1141# need it. This is ensured by the applicability 'all' defined above.
1142
1143_NORETURN_H=$(srcdir)/_Noreturn.h
1144
1145EXTRA_DIST += _Noreturn.h
1146
1147## end   gnulib module snippet/_Noreturn
1148
1149## begin gnulib module snippet/arg-nonnull
1150
1151# Because this Makefile snippet defines a variable used by other
1152# gnulib Makefile snippets, it must be present in all makefiles that
1153# need it. This is ensured by the applicability 'all' defined above.
1154
1155ARG_NONNULL_H=$(srcdir)/arg-nonnull.h
1156
1157EXTRA_DIST += arg-nonnull.h
1158
1159## end   gnulib module snippet/arg-nonnull
1160
1161## begin gnulib module snippet/c++defs
1162
1163# Because this Makefile snippet defines a variable used by other
1164# gnulib Makefile snippets, it must be present in all makefiles that
1165# need it. This is ensured by the applicability 'all' defined above.
1166
1167CXXDEFS_H=$(srcdir)/c++defs.h
1168
1169EXTRA_DIST += c++defs.h
1170
1171## end   gnulib module snippet/c++defs
1172
1173## begin gnulib module snippet/warn-on-use
1174
1175# Because this Makefile snippet defines a variable used by other
1176# gnulib Makefile snippets, it must be present in all makefiles that
1177# need it. This is ensured by the applicability 'all' defined above.
1178
1179WARN_ON_USE_H=$(srcdir)/warn-on-use.h
1180
1181EXTRA_DIST += warn-on-use.h
1182
1183## end   gnulib module snippet/warn-on-use
1184
1185## begin gnulib module socket
1186
1187
1188EXTRA_DIST += socket.c w32sock.h
1189
1190EXTRA_libtests_a_SOURCES += socket.c
1191
1192## end   gnulib module socket
1193
1194## begin gnulib module sockets
1195
1196libtests_a_SOURCES += sockets.h sockets.c
1197
1198EXTRA_DIST += w32sock.h
1199
1200## end   gnulib module sockets
1201
1202## begin gnulib module sockets-tests
1203
1204TESTS += test-sockets
1205check_PROGRAMS += test-sockets
1206test_sockets_LDADD = $(LDADD) @LIBSOCKET@
1207EXTRA_DIST += test-sockets.c
1208
1209## end   gnulib module sockets-tests
1210
1211## begin gnulib module stat
1212
1213
1214EXTRA_DIST += stat-w32.c stat-w32.h stat.c
1215
1216EXTRA_libtests_a_SOURCES += stat-w32.c stat.c
1217
1218## end   gnulib module stat
1219
1220## begin gnulib module stat-tests
1221
1222TESTS += test-stat
1223check_PROGRAMS += test-stat
1224test_stat_LDADD = $(LDADD) $(LIBINTL)
1225EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
1226
1227## end   gnulib module stat-tests
1228
1229## begin gnulib module stat-time
1230
1231libtests_a_SOURCES += stat-time.c
1232
1233EXTRA_DIST += stat-time.h
1234
1235## end   gnulib module stat-time
1236
1237## begin gnulib module stat-time-tests
1238
1239TESTS += test-stat-time
1240check_PROGRAMS += test-stat-time
1241test_stat_time_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1242EXTRA_DIST += test-stat-time.c macros.h nap.h
1243
1244## end   gnulib module stat-time-tests
1245
1246## begin gnulib module stdalign
1247
1248BUILT_SOURCES += $(STDALIGN_H)
1249
1250# We need the following in order to create <stdalign.h> when the system
1251# doesn't have one that works.
1252if GL_GENERATE_STDALIGN_H
1253stdalign.h: stdalign.in.h $(top_builddir)/config.status
1254	$(AM_V_GEN)rm -f $@-t $@ && \
1255	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1256	  cat $(srcdir)/stdalign.in.h; \
1257	} > $@-t && \
1258	mv $@-t $@
1259else
1260stdalign.h: $(top_builddir)/config.status
1261	rm -f $@
1262endif
1263MOSTLYCLEANFILES += stdalign.h stdalign.h-t
1264
1265EXTRA_DIST += stdalign.in.h
1266
1267## end   gnulib module stdalign
1268
1269## begin gnulib module stdalign-tests
1270
1271TESTS += test-stdalign
1272check_PROGRAMS += test-stdalign
1273EXTRA_DIST += test-stdalign.c macros.h
1274
1275## end   gnulib module stdalign-tests
1276
1277## begin gnulib module stdbool-tests
1278
1279TESTS += test-stdbool
1280check_PROGRAMS += test-stdbool
1281EXTRA_DIST += test-stdbool.c
1282
1283## end   gnulib module stdbool-tests
1284
1285## begin gnulib module stddef-tests
1286
1287TESTS += test-stddef
1288check_PROGRAMS += test-stddef
1289EXTRA_DIST += test-stddef.c
1290
1291## end   gnulib module stddef-tests
1292
1293## begin gnulib module stdint-tests
1294
1295TESTS += test-stdint
1296check_PROGRAMS += test-stdint
1297EXTRA_DIST += test-stdint.c
1298
1299## end   gnulib module stdint-tests
1300
1301## begin gnulib module stdio-tests
1302
1303TESTS += test-stdio
1304check_PROGRAMS += test-stdio
1305EXTRA_DIST += test-stdio.c
1306
1307## end   gnulib module stdio-tests
1308
1309## begin gnulib module strerror-tests
1310
1311TESTS += test-strerror
1312check_PROGRAMS += test-strerror
1313EXTRA_DIST += test-strerror.c signature.h macros.h
1314
1315## end   gnulib module strerror-tests
1316
1317## begin gnulib module strerror_r-posix
1318
1319
1320EXTRA_DIST += strerror_r.c
1321
1322EXTRA_libtests_a_SOURCES += strerror_r.c
1323
1324## end   gnulib module strerror_r-posix
1325
1326## begin gnulib module strerror_r-posix-tests
1327
1328TESTS += test-strerror_r
1329check_PROGRAMS += test-strerror_r
1330EXTRA_DIST += test-strerror_r.c signature.h macros.h
1331
1332## end   gnulib module strerror_r-posix-tests
1333
1334## begin gnulib module symlink
1335
1336
1337EXTRA_DIST += symlink.c
1338
1339EXTRA_libtests_a_SOURCES += symlink.c
1340
1341## end   gnulib module symlink
1342
1343## begin gnulib module symlink-tests
1344
1345TESTS += test-symlink
1346check_PROGRAMS += test-symlink
1347EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
1348
1349## end   gnulib module symlink-tests
1350
1351## begin gnulib module sys_ioctl
1352
1353BUILT_SOURCES += sys/ioctl.h
1354
1355# We need the following in order to create <sys/ioctl.h> when the system
1356# does not have a complete one.
1357sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
1358	$(AM_V_at)$(MKDIR_P) sys
1359	$(AM_V_GEN)rm -f $@-t $@ && \
1360	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1361	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1362	      -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
1363	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1364	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1365	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1366	      -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \
1367	      -e 's/@''GNULIB_IOCTL''@/$(GNULIB_IOCTL)/g' \
1368	      -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
1369	      -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
1370	      -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
1371	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1372	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1373	      < $(srcdir)/sys_ioctl.in.h; \
1374	} > $@-t && \
1375	mv $@-t $@
1376MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
1377MOSTLYCLEANDIRS += sys
1378
1379EXTRA_DIST += sys_ioctl.in.h
1380
1381## end   gnulib module sys_ioctl
1382
1383## begin gnulib module sys_ioctl-tests
1384
1385TESTS += test-sys_ioctl
1386check_PROGRAMS += test-sys_ioctl
1387EXTRA_DIST += test-sys_ioctl.c
1388
1389## end   gnulib module sys_ioctl-tests
1390
1391## begin gnulib module sys_select
1392
1393BUILT_SOURCES += sys/select.h
1394
1395# We need the following in order to create <sys/select.h> when the system
1396# doesn't have one that works with the given compiler.
1397sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
1398	$(AM_V_at)$(MKDIR_P) sys
1399	$(AM_V_GEN)rm -f $@-t $@ && \
1400	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1401	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1402	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1403	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1404	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1405	      -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
1406	      -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
1407	      -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
1408	      -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
1409	      -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1410	      -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
1411	      -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
1412	      -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
1413	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1414	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1415	      < $(srcdir)/sys_select.in.h; \
1416	} > $@-t && \
1417	mv $@-t $@
1418MOSTLYCLEANFILES += sys/select.h sys/select.h-t
1419MOSTLYCLEANDIRS += sys
1420
1421EXTRA_DIST += sys_select.in.h
1422
1423## end   gnulib module sys_select
1424
1425## begin gnulib module sys_select-tests
1426
1427TESTS += test-sys_select
1428check_PROGRAMS += test-sys_select
1429EXTRA_DIST += test-sys_select.c signature.h
1430
1431## end   gnulib module sys_select-tests
1432
1433## begin gnulib module sys_socket
1434
1435BUILT_SOURCES += sys/socket.h
1436libtests_a_SOURCES += sys_socket.c
1437
1438# We need the following in order to create <sys/socket.h> when the system
1439# doesn't have one that works with the given compiler.
1440sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
1441	$(AM_V_at)$(MKDIR_P) sys
1442	$(AM_V_GEN)rm -f $@-t $@ && \
1443	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1444	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1445	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1446	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1447	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1448	      -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
1449	      -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
1450	      -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
1451	      -e 's/@''GNULIB_SOCKET''@/$(GNULIB_SOCKET)/g' \
1452	      -e 's/@''GNULIB_CONNECT''@/$(GNULIB_CONNECT)/g' \
1453	      -e 's/@''GNULIB_ACCEPT''@/$(GNULIB_ACCEPT)/g' \
1454	      -e 's/@''GNULIB_BIND''@/$(GNULIB_BIND)/g' \
1455	      -e 's/@''GNULIB_GETPEERNAME''@/$(GNULIB_GETPEERNAME)/g' \
1456	      -e 's/@''GNULIB_GETSOCKNAME''@/$(GNULIB_GETSOCKNAME)/g' \
1457	      -e 's/@''GNULIB_GETSOCKOPT''@/$(GNULIB_GETSOCKOPT)/g' \
1458	      -e 's/@''GNULIB_LISTEN''@/$(GNULIB_LISTEN)/g' \
1459	      -e 's/@''GNULIB_RECV''@/$(GNULIB_RECV)/g' \
1460	      -e 's/@''GNULIB_SEND''@/$(GNULIB_SEND)/g' \
1461	      -e 's/@''GNULIB_RECVFROM''@/$(GNULIB_RECVFROM)/g' \
1462	      -e 's/@''GNULIB_SENDTO''@/$(GNULIB_SENDTO)/g' \
1463	      -e 's/@''GNULIB_SETSOCKOPT''@/$(GNULIB_SETSOCKOPT)/g' \
1464	      -e 's/@''GNULIB_SHUTDOWN''@/$(GNULIB_SHUTDOWN)/g' \
1465	      -e 's/@''GNULIB_ACCEPT4''@/$(GNULIB_ACCEPT4)/g' \
1466	      -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1467	      -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
1468	      -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
1469	      -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
1470	      -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
1471	      -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
1472	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1473	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1474	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1475	      < $(srcdir)/sys_socket.in.h; \
1476	} > $@-t && \
1477	mv -f $@-t $@
1478MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
1479MOSTLYCLEANDIRS += sys
1480
1481EXTRA_DIST += sys_socket.in.h
1482
1483## end   gnulib module sys_socket
1484
1485## begin gnulib module sys_socket-tests
1486
1487TESTS += test-sys_socket
1488check_PROGRAMS += test-sys_socket
1489EXTRA_DIST += test-sys_socket.c
1490
1491## end   gnulib module sys_socket-tests
1492
1493## begin gnulib module sys_stat
1494
1495BUILT_SOURCES += sys/stat.h
1496
1497# We need the following in order to create <sys/stat.h> when the system
1498# has one that is incomplete.
1499sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1500	$(AM_V_at)$(MKDIR_P) sys
1501	$(AM_V_GEN)rm -f $@-t $@ && \
1502	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1503	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1504	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1505	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1506	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1507	      -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
1508	      -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
1509	      -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
1510	      -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
1511	      -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
1512	      -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
1513	      -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
1514	      -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
1515	      -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
1516	      -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
1517	      -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
1518	      -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
1519	      -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
1520	      -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
1521	      -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
1522	      -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
1523	      -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
1524	      -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
1525	      -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
1526	      -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
1527	      -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
1528	      -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
1529	      -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
1530	      -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
1531	      -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
1532	      -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
1533	      -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
1534	      -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
1535	      -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
1536	      -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
1537	      -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
1538	      -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
1539	      -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
1540	      -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
1541	      -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
1542	      -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
1543	      -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
1544	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1545	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1546	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1547	      < $(srcdir)/sys_stat.in.h; \
1548	} > $@-t && \
1549	mv $@-t $@
1550MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
1551MOSTLYCLEANDIRS += sys
1552
1553EXTRA_DIST += sys_stat.in.h
1554
1555## end   gnulib module sys_stat
1556
1557## begin gnulib module sys_time
1558
1559BUILT_SOURCES += sys/time.h
1560
1561# We need the following in order to create <sys/time.h> when the system
1562# doesn't have one that works with the given compiler.
1563sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1564	$(AM_V_at)$(MKDIR_P) sys
1565	$(AM_V_GEN)rm -f $@-t $@ && \
1566	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1567	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1568	      -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
1569	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1570	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1571	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1572	      -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
1573	      -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
1574	      -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1575	      -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
1576	      -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
1577	      -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
1578	      -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
1579	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1580	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1581	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1582	      < $(srcdir)/sys_time.in.h; \
1583	} > $@-t && \
1584	mv $@-t $@
1585MOSTLYCLEANFILES += sys/time.h sys/time.h-t
1586
1587EXTRA_DIST += sys_time.in.h
1588
1589## end   gnulib module sys_time
1590
1591## begin gnulib module sys_time-tests
1592
1593TESTS += test-sys_time
1594check_PROGRAMS += test-sys_time
1595EXTRA_DIST += test-sys_time.c
1596
1597## end   gnulib module sys_time-tests
1598
1599## begin gnulib module sys_types-tests
1600
1601TESTS += test-sys_types
1602check_PROGRAMS += test-sys_types
1603EXTRA_DIST += test-sys_types.c
1604
1605## end   gnulib module sys_types-tests
1606
1607## begin gnulib module sys_uio
1608
1609BUILT_SOURCES += sys/uio.h
1610
1611# We need the following in order to create <sys/uio.h> when the system
1612# doesn't have one that works with the given compiler.
1613sys/uio.h: sys_uio.in.h $(top_builddir)/config.status
1614	$(AM_V_at)$(MKDIR_P) sys
1615	$(AM_V_GEN)rm -f $@-t $@ && \
1616	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1617	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1618	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1619	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1620	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1621	      -e 's|@''NEXT_SYS_UIO_H''@|$(NEXT_SYS_UIO_H)|g' \
1622	      -e 's|@''HAVE_SYS_UIO_H''@|$(HAVE_SYS_UIO_H)|g' \
1623	      < $(srcdir)/sys_uio.in.h; \
1624	} > $@-t && \
1625	mv -f $@-t $@
1626MOSTLYCLEANFILES += sys/uio.h sys/uio.h-t
1627MOSTLYCLEANDIRS += sys
1628
1629EXTRA_DIST += sys_uio.in.h
1630
1631## end   gnulib module sys_uio
1632
1633## begin gnulib module sys_uio-tests
1634
1635TESTS += test-sys_uio
1636check_PROGRAMS += test-sys_uio
1637EXTRA_DIST += test-sys_uio.c
1638
1639## end   gnulib module sys_uio-tests
1640
1641## begin gnulib module test-framework-sh-tests
1642
1643TESTS += test-init.sh
1644EXTRA_DIST += init.sh
1645EXTRA_DIST += test-init.sh
1646
1647## end   gnulib module test-framework-sh-tests
1648
1649## begin gnulib module thread
1650
1651libtests_a_SOURCES += glthread/thread.h glthread/thread.c
1652
1653## end   gnulib module thread
1654
1655## begin gnulib module thread-tests
1656
1657TESTS += test-thread_self test-thread_create
1658check_PROGRAMS += test-thread_self test-thread_create
1659test_thread_self_LDADD = $(LDADD) @LIBTHREAD@
1660test_thread_create_LDADD = $(LDADD) @LIBMULTITHREAD@
1661EXTRA_DIST += test-thread_self.c test-thread_create.c macros.h
1662
1663## end   gnulib module thread-tests
1664
1665## begin gnulib module threadlib
1666
1667libtests_a_SOURCES += glthread/threadlib.c
1668
1669EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
1670
1671## end   gnulib module threadlib
1672
1673## begin gnulib module time
1674
1675BUILT_SOURCES += time.h
1676
1677# We need the following in order to create <time.h> when the system
1678# doesn't have one that works with the given compiler.
1679time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1680	$(AM_V_GEN)rm -f $@-t $@ && \
1681	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1682	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1683	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1684	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1685	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1686	      -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
1687	      -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \
1688	      -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \
1689	      -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \
1690	      -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \
1691	      -e 's/@''GNULIB_STRFTIME''@/$(GNULIB_STRFTIME)/g' \
1692	      -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
1693	      -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
1694	      -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
1695	      -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
1696	      -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
1697	      -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
1698	      -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
1699	      -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
1700	      -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
1701	      -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
1702	      -e 's|@''HAVE_TZSET''@|$(HAVE_TZSET)|g' \
1703	      -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \
1704	      -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
1705	      -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
1706	      -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
1707	      -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
1708	      -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
1709	      -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
1710	      -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
1711	      -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
1712	      -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
1713	      -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1714	      -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1715	      -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \
1716	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1717	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1718	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1719	      < $(srcdir)/time.in.h; \
1720	} > $@-t && \
1721	mv $@-t $@
1722MOSTLYCLEANFILES += time.h time.h-t
1723
1724EXTRA_DIST += time.in.h
1725
1726## end   gnulib module time
1727
1728## begin gnulib module unsetenv
1729
1730
1731EXTRA_DIST += unsetenv.c
1732
1733EXTRA_libtests_a_SOURCES += unsetenv.c
1734
1735## end   gnulib module unsetenv
1736
1737## begin gnulib module unsetenv-tests
1738
1739TESTS += test-unsetenv
1740check_PROGRAMS += test-unsetenv
1741EXTRA_DIST += test-unsetenv.c signature.h macros.h
1742
1743## end   gnulib module unsetenv-tests
1744
1745## begin gnulib module usleep
1746
1747
1748EXTRA_DIST += usleep.c
1749
1750EXTRA_libtests_a_SOURCES += usleep.c
1751
1752## end   gnulib module usleep
1753
1754## begin gnulib module usleep-tests
1755
1756TESTS += test-usleep
1757check_PROGRAMS += test-usleep
1758EXTRA_DIST += test-usleep.c signature.h macros.h
1759
1760## end   gnulib module usleep-tests
1761
1762## begin gnulib module vc-list-files-tests
1763
1764TESTS += test-vc-list-files-git.sh
1765TESTS += test-vc-list-files-cvs.sh
1766TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1767EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh
1768
1769## end   gnulib module vc-list-files-tests
1770
1771## begin gnulib module verify-tests
1772
1773TESTS_ENVIRONMENT += MAKE='$(MAKE)'
1774TESTS += test-verify test-verify.sh
1775check_PROGRAMS += test-verify
1776# test-verify-try is never built, but test-verify.sh needs a rule to
1777# build test-verify-try.o.
1778EXTRA_PROGRAMS += test-verify-try
1779
1780# This test expects compilation of test-verify-try.c to fail, and
1781# each time it fails, the makefile rule does not perform the usual
1782#  "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
1783MOSTLYCLEANFILES += .deps/test-verify-try.Tpo
1784EXTRA_DIST += test-verify.c test-verify-try.c test-verify.sh
1785
1786## end   gnulib module verify-tests
1787
1788## begin gnulib module version-etc-fsf
1789
1790libtests_a_SOURCES += version-etc-fsf.c
1791
1792## end   gnulib module version-etc-fsf
1793
1794## begin gnulib module version-etc-tests
1795
1796TESTS += test-version-etc.sh
1797check_PROGRAMS += test-version-etc
1798test_version_etc_LDADD = $(LDADD) @LIBINTL@
1799EXTRA_DIST += test-version-etc.c test-version-etc.sh
1800
1801## end   gnulib module version-etc-tests
1802
1803## begin gnulib module wchar
1804
1805BUILT_SOURCES += wchar.h
1806
1807# We need the following in order to create <wchar.h> when the system
1808# version does not work standalone.
1809wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1810	$(AM_V_GEN)rm -f $@-t $@ && \
1811	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1812	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1813	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1814	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1815	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1816	      -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
1817	      -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
1818	      -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
1819	      -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
1820	      -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
1821	      -e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
1822	      -e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
1823	      -e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
1824	      -e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
1825	      -e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
1826	      -e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
1827	      -e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
1828	      -e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
1829	      -e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
1830	      -e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
1831	      -e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
1832	      -e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
1833	      -e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
1834	      -e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
1835	      -e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
1836	      -e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
1837	      -e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
1838	      -e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
1839	      -e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
1840	      -e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
1841	      -e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
1842	      -e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
1843	      -e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
1844	      -e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
1845	      -e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
1846	      -e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
1847	      -e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
1848	      -e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
1849	      -e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
1850	      -e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
1851	      -e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
1852	      -e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
1853	      -e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
1854	      -e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
1855	      -e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
1856	      -e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
1857	      -e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
1858	      -e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
1859	      -e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
1860	      -e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
1861	      < $(srcdir)/wchar.in.h | \
1862	  sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
1863	      -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
1864	      -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
1865	      -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
1866	      -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
1867	      -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
1868	      -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
1869	      -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
1870	      -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
1871	      -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
1872	      -e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \
1873	      -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
1874	      -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
1875	      -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
1876	      -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
1877	      -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
1878	      -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
1879	      -e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \
1880	      -e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \
1881	      -e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \
1882	      -e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \
1883	      -e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \
1884	      -e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \
1885	      -e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \
1886	      -e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \
1887	      -e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \
1888	      -e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \
1889	      -e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \
1890	      -e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \
1891	      -e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \
1892	      -e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \
1893	      -e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \
1894	      -e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \
1895	      -e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \
1896	      -e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \
1897	      -e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \
1898	      -e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \
1899	      -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
1900	      -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
1901	      -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
1902	      -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
1903	  | \
1904	  sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
1905	      -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
1906	      -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
1907	      -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
1908	      -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
1909	      -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
1910	      -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
1911	      -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
1912	      -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
1913	      -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
1914	      -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
1915	      -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
1916	      -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
1917	      -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
1918	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1919	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1920	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
1921	} > $@-t && \
1922	mv $@-t $@
1923MOSTLYCLEANFILES += wchar.h wchar.h-t
1924
1925EXTRA_DIST += wchar.in.h
1926
1927## end   gnulib module wchar
1928
1929## begin gnulib module xalloc-oversized
1930
1931
1932EXTRA_DIST += xalloc-oversized.h
1933
1934## end   gnulib module xalloc-oversized
1935
1936## begin gnulib module yield
1937
1938libtests_a_SOURCES += glthread/yield.h
1939
1940## end   gnulib module yield
1941
1942# Clean up after Solaris cc.
1943clean-local:
1944	rm -rf SunWS_cache
1945
1946mostlyclean-local: mostlyclean-generic
1947	@for dir in '' $(MOSTLYCLEANDIRS); do \
1948	  if test -n "$$dir" && test -d $$dir; then \
1949	    echo "rmdir $$dir"; rmdir $$dir; \
1950	  fi; \
1951	done; \
1952	:
1953