1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
3# Copyright (C) 2002-2021 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.11 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/lib -I$(srcdir)/../gl/lib
51
52LDADD = libtests.a ../gl/lib/libgnulib.a libtests.a ../gl/lib/libgnulib.a 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-opt-tests
81
82TESTS += test-alloca-opt
83check_PROGRAMS += test-alloca-opt
84
85EXTRA_DIST += test-alloca-opt.c
86
87## end   gnulib module alloca-opt-tests
88
89## begin gnulib module areadlink-tests
90
91TESTS += test-areadlink
92check_PROGRAMS += test-areadlink
93EXTRA_DIST += test-areadlink.h test-areadlink.c macros.h
94
95## end   gnulib module areadlink-tests
96
97## begin gnulib module areadlinkat-tests
98
99TESTS += test-areadlinkat
100check_PROGRAMS += test-areadlinkat
101test_areadlinkat_LDADD = $(LDADD) @LIBINTL@
102EXTRA_DIST += test-areadlink.h test-areadlinkat.c macros.h
103
104## end   gnulib module areadlinkat-tests
105
106## begin gnulib module argmatch-tests
107
108TESTS += test-argmatch
109check_PROGRAMS += test-argmatch
110test_argmatch_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
111
112EXTRA_DIST += test-argmatch.c macros.h
113
114## end   gnulib module argmatch-tests
115
116## begin gnulib module arpa_inet
117
118BUILT_SOURCES += arpa/inet.h
119
120# We need the following in order to create <arpa/inet.h> when the system
121# doesn't have one.
122arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
123	$(AM_V_at)$(MKDIR_P) arpa
124	$(AM_V_GEN)rm -f $@-t $@ && \
125	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
126	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
127	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
128	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
129	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
130	      -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
131	      -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
132	      -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
133	      -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
134	      -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
135	      -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
136	      -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
137	      -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
138	      -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
139	      -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
140	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
141	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
142	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
143	      < $(srcdir)/arpa_inet.in.h; \
144	} > $@-t && \
145	mv $@-t $@
146MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
147MOSTLYCLEANDIRS += arpa
148
149EXTRA_DIST += arpa_inet.in.h
150
151## end   gnulib module arpa_inet
152
153## begin gnulib module arpa_inet-tests
154
155TESTS += test-arpa_inet
156check_PROGRAMS += test-arpa_inet
157EXTRA_DIST += test-arpa_inet.c
158
159## end   gnulib module arpa_inet-tests
160
161## begin gnulib module atoll
162
163
164EXTRA_DIST += atoll.c
165
166EXTRA_libtests_a_SOURCES += atoll.c
167
168## end   gnulib module atoll
169
170## begin gnulib module binary-io
171
172libtests_a_SOURCES += binary-io.h binary-io.c
173
174## end   gnulib module binary-io
175
176## begin gnulib module binary-io-tests
177
178TESTS += test-binary-io.sh
179check_PROGRAMS += test-binary-io
180
181EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
182
183## end   gnulib module binary-io-tests
184
185## begin gnulib module bind
186
187
188EXTRA_DIST += bind.c w32sock.h
189
190EXTRA_libtests_a_SOURCES += bind.c
191
192## end   gnulib module bind
193
194## begin gnulib module bind-tests
195
196TESTS += test-bind
197check_PROGRAMS += test-bind
198test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
199EXTRA_DIST += test-bind.c signature.h macros.h
200
201## end   gnulib module bind-tests
202
203## begin gnulib module bitrotate-tests
204
205TESTS += test-bitrotate
206check_PROGRAMS += test-bitrotate
207EXTRA_DIST += test-bitrotate.c macros.h
208
209## end   gnulib module bitrotate-tests
210
211## begin gnulib module btowc-tests
212
213TESTS += test-btowc1.sh test-btowc2.sh
214TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
215check_PROGRAMS += test-btowc
216test_btowc_LDADD = $(LDADD) $(LIB_SETLOCALE)
217EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
218
219## end   gnulib module btowc-tests
220
221## begin gnulib module byteswap-tests
222
223TESTS += test-byteswap
224check_PROGRAMS += test-byteswap
225EXTRA_DIST += test-byteswap.c macros.h
226
227## end   gnulib module byteswap-tests
228
229## begin gnulib module c-ctype-tests
230
231TESTS += test-c-ctype
232check_PROGRAMS += test-c-ctype
233test_c_ctype_LDADD = $(LDADD) $(LIB_SETLOCALE)
234EXTRA_DIST += test-c-ctype.c macros.h
235
236## end   gnulib module c-ctype-tests
237
238## begin gnulib module c-strcase-tests
239
240TESTS += test-c-strcase.sh
241TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
242check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
243test_c_strcasecmp_LDADD = $(LDADD) $(LIB_SETLOCALE)
244test_c_strncasecmp_LDADD = $(LDADD) $(LIB_SETLOCALE)
245EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
246
247## end   gnulib module c-strcase-tests
248
249## begin gnulib module c-strcasestr-tests
250
251TESTS += test-c-strcasestr
252check_PROGRAMS += test-c-strcasestr
253
254EXTRA_DIST += test-c-strcasestr.c macros.h
255
256## end   gnulib module c-strcasestr-tests
257
258## begin gnulib module c-strstr-tests
259
260TESTS += test-c-strstr
261check_PROGRAMS += test-c-strstr
262
263EXTRA_DIST += test-c-strstr.c macros.h
264
265## end   gnulib module c-strstr-tests
266
267## begin gnulib module canonicalize-tests
268
269TESTS += test-canonicalize
270check_PROGRAMS += test-canonicalize
271test_canonicalize_LDADD = $(LDADD) @LIBINTL@
272EXTRA_DIST += test-canonicalize.c null-ptr.h macros.h
273
274## end   gnulib module canonicalize-tests
275
276## begin gnulib module chdir-tests
277
278TESTS += test-chdir
279check_PROGRAMS += test-chdir
280EXTRA_DIST += test-chdir.c signature.h macros.h
281
282## end   gnulib module chdir-tests
283
284## begin gnulib module cloexec-tests
285
286TESTS += test-cloexec
287check_PROGRAMS += test-cloexec
288EXTRA_DIST += test-cloexec.c macros.h
289
290## end   gnulib module cloexec-tests
291
292## begin gnulib module close-tests
293
294TESTS += test-close
295check_PROGRAMS += test-close
296EXTRA_DIST += test-close.c signature.h macros.h
297
298## end   gnulib module close-tests
299
300## begin gnulib module closein-tests
301
302TESTS += test-closein.sh
303check_PROGRAMS += test-closein
304test_closein_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
305EXTRA_DIST += test-closein.sh test-closein.c
306
307## end   gnulib module closein-tests
308
309## begin gnulib module connect
310
311
312EXTRA_DIST += connect.c w32sock.h
313
314EXTRA_libtests_a_SOURCES += connect.c
315
316## end   gnulib module connect
317
318## begin gnulib module connect-tests
319
320TESTS += test-connect
321check_PROGRAMS += test-connect
322test_connect_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
323EXTRA_DIST += test-connect.c signature.h macros.h
324
325## end   gnulib module connect-tests
326
327## begin gnulib module ctype-tests
328
329TESTS += test-ctype
330check_PROGRAMS += test-ctype
331EXTRA_DIST += test-ctype.c
332
333## end   gnulib module ctype-tests
334
335## begin gnulib module dirent-safer-tests
336
337TESTS += test-dirent-safer
338check_PROGRAMS += test-dirent-safer
339# Link with libintl when needed. dirent-safer uses fdopendir if it is present,
340# and fdopendir indirectly depends on openat-die -> gettext-h.
341test_dirent_safer_LDADD = $(LDADD) $(LIBINTL)
342EXTRA_DIST += test-dirent-safer.c macros.h
343
344## end   gnulib module dirent-safer-tests
345
346## begin gnulib module dirent-tests
347
348TESTS += test-dirent
349check_PROGRAMS += test-dirent
350EXTRA_DIST += test-dirent.c
351
352## end   gnulib module dirent-tests
353
354## begin gnulib module dirname-tests
355
356TESTS += test-dirname
357check_PROGRAMS += test-dirname
358test_dirname_LDADD = $(LDADD) @LIBINTL@
359EXTRA_DIST += test-dirname.c
360
361## end   gnulib module dirname-tests
362
363## begin gnulib module dtotimespec
364
365libtests_a_SOURCES += dtotimespec.c
366
367## end   gnulib module dtotimespec
368
369## begin gnulib module dup-tests
370
371TESTS += test-dup
372check_PROGRAMS += test-dup
373EXTRA_DIST += test-dup.c signature.h macros.h
374
375## end   gnulib module dup-tests
376
377## begin gnulib module dup2-tests
378
379TESTS += test-dup2
380check_PROGRAMS += test-dup2
381EXTRA_DIST += test-dup2.c signature.h macros.h
382
383## end   gnulib module dup2-tests
384
385## begin gnulib module environ-tests
386
387TESTS += test-environ
388check_PROGRAMS += test-environ
389
390EXTRA_DIST += test-environ.c
391
392## end   gnulib module environ-tests
393
394## begin gnulib module errno-tests
395
396TESTS += test-errno
397check_PROGRAMS += test-errno
398
399EXTRA_DIST += test-errno.c
400
401## end   gnulib module errno-tests
402
403## begin gnulib module faccessat-tests
404
405TESTS += test-faccessat
406check_PROGRAMS += test-faccessat
407test_faccessat_LDADD = $(LDADD) $(LIB_EACCESS) @LIBINTL@
408EXTRA_DIST += test-faccessat.c signature.h macros.h
409
410## end   gnulib module faccessat-tests
411
412## begin gnulib module fchdir-tests
413
414TESTS += test-fchdir
415check_PROGRAMS += test-fchdir
416test_fchdir_LDADD = $(LDADD) $(LIBINTL)
417EXTRA_DIST += test-fchdir.c signature.h macros.h
418
419## end   gnulib module fchdir-tests
420
421## begin gnulib module fcntl-h-tests
422
423TESTS += test-fcntl-h
424check_PROGRAMS += test-fcntl-h
425EXTRA_DIST += test-fcntl-h.c
426
427## end   gnulib module fcntl-h-tests
428
429## begin gnulib module fcntl-safer-tests
430
431TESTS += test-fcntl-safer
432check_PROGRAMS += test-fcntl-safer
433EXTRA_DIST += test-open.h test-fcntl-safer.c macros.h
434
435## end   gnulib module fcntl-safer-tests
436
437## begin gnulib module fcntl-tests
438
439TESTS += test-fcntl
440check_PROGRAMS += test-fcntl
441EXTRA_DIST += test-fcntl.c signature.h macros.h
442
443## end   gnulib module fcntl-tests
444
445## begin gnulib module fdopen
446
447
448EXTRA_DIST += fdopen.c
449
450EXTRA_libtests_a_SOURCES += fdopen.c
451
452## end   gnulib module fdopen
453
454## begin gnulib module fdopen-tests
455
456TESTS += test-fdopen
457check_PROGRAMS += test-fdopen
458EXTRA_DIST += test-fdopen.c signature.h macros.h
459
460## end   gnulib module fdopen-tests
461
462## begin gnulib module fdopendir-tests
463
464TESTS += test-fdopendir
465check_PROGRAMS += test-fdopendir
466test_fdopendir_LDADD = $(LDADD) @LIBINTL@
467EXTRA_DIST += test-fdopendir.c signature.h macros.h
468
469## end   gnulib module fdopendir-tests
470
471## begin gnulib module fflush-tests
472
473TESTS += test-fflush test-fflush2.sh
474check_PROGRAMS += test-fflush test-fflush2
475MOSTLYCLEANFILES += test-fflush.txt
476EXTRA_DIST += test-fflush.c test-fflush2.sh test-fflush2.c signature.h macros.h
477
478## end   gnulib module fflush-tests
479
480## begin gnulib module fgetc-tests
481
482TESTS += test-fgetc
483check_PROGRAMS += test-fgetc
484EXTRA_DIST += test-fgetc.c signature.h macros.h
485
486## end   gnulib module fgetc-tests
487
488## begin gnulib module float-tests
489
490TESTS += test-float
491check_PROGRAMS += test-float
492EXTRA_DIST += test-float.c macros.h
493
494## end   gnulib module float-tests
495
496## begin gnulib module fnmatch-h-tests
497
498TESTS += test-fnmatch-h
499check_PROGRAMS += test-fnmatch-h
500EXTRA_DIST += test-fnmatch-h.c
501
502## end   gnulib module fnmatch-h-tests
503
504## begin gnulib module fnmatch-tests
505
506TESTS += test-fnmatch
507check_PROGRAMS += test-fnmatch
508test_fnmatch_LDADD = $(LDADD) $(LIB_MBRTOWC)
509EXTRA_DIST += test-fnmatch.c signature.h macros.h
510
511## end   gnulib module fnmatch-tests
512
513## begin gnulib module fopen-gnu-tests
514
515TESTS += test-fopen-gnu
516check_PROGRAMS += test-fopen-gnu
517EXTRA_DIST += test-fopen-gnu.c macros.h
518
519## end   gnulib module fopen-gnu-tests
520
521## begin gnulib module fopen-safer-tests
522
523TESTS += test-fopen-safer
524check_PROGRAMS += test-fopen-safer
525EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
526
527## end   gnulib module fopen-safer-tests
528
529## begin gnulib module fopen-tests
530
531TESTS += test-fopen
532check_PROGRAMS += test-fopen
533
534EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
535
536## end   gnulib module fopen-tests
537
538## begin gnulib module fpending-tests
539
540TESTS += test-fpending.sh
541check_PROGRAMS += test-fpending
542MOSTLYCLEANFILES += test-fpending.t
543EXTRA_DIST += test-fpending.c test-fpending.sh macros.h
544
545## end   gnulib module fpending-tests
546
547## begin gnulib module fpucw
548
549
550EXTRA_DIST += fpucw.h
551
552## end   gnulib module fpucw
553
554## begin gnulib module fpurge-tests
555
556TESTS += test-fpurge
557check_PROGRAMS += test-fpurge
558MOSTLYCLEANFILES += t-fpurge.tmp
559EXTRA_DIST += test-fpurge.c macros.h
560
561## end   gnulib module fpurge-tests
562
563## begin gnulib module fputc-tests
564
565TESTS += test-fputc
566check_PROGRAMS += test-fputc
567EXTRA_DIST += test-fputc.c signature.h macros.h
568
569## end   gnulib module fputc-tests
570
571## begin gnulib module fread-tests
572
573TESTS += test-fread
574check_PROGRAMS += test-fread
575EXTRA_DIST += test-fread.c signature.h macros.h
576
577## end   gnulib module fread-tests
578
579## begin gnulib module freadahead-tests
580
581TESTS += test-freadahead.sh
582check_PROGRAMS += test-freadahead
583EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
584
585## end   gnulib module freadahead-tests
586
587## begin gnulib module freading-tests
588
589TESTS += test-freading
590check_PROGRAMS += test-freading
591MOSTLYCLEANFILES += t-freading.tmp
592EXTRA_DIST += test-freading.c macros.h
593
594## end   gnulib module freading-tests
595
596## begin gnulib module free-posix-tests
597
598TESTS += test-free
599check_PROGRAMS += test-free
600EXTRA_DIST += test-free.c macros.h
601
602## end   gnulib module free-posix-tests
603
604## begin gnulib module fseek-tests
605
606TESTS += test-fseek.sh test-fseek2.sh
607check_PROGRAMS += test-fseek
608EXTRA_DIST += test-fseek.c test-fseek.sh test-fseek2.sh signature.h macros.h
609
610## end   gnulib module fseek-tests
611
612## begin gnulib module fseeko-tests
613
614TESTS += test-fseeko.sh test-fseeko2.sh test-fseeko3.sh test-fseeko4.sh
615check_PROGRAMS += test-fseeko test-fseeko3 test-fseeko4
616EXTRA_DIST += test-fseeko.c test-fseeko.sh test-fseeko2.sh test-fseeko3.c test-fseeko3.sh test-fseeko4.c test-fseeko4.sh signature.h macros.h
617
618## end   gnulib module fseeko-tests
619
620## begin gnulib module fstat-tests
621
622TESTS += test-fstat
623check_PROGRAMS += test-fstat
624EXTRA_DIST += test-fstat.c signature.h macros.h
625
626## end   gnulib module fstat-tests
627
628## begin gnulib module fstatat-tests
629
630TESTS += test-fstatat
631check_PROGRAMS += test-fstatat
632test_fstatat_LDADD = $(LDADD) @LIBINTL@
633EXTRA_DIST += test-fstatat.c test-lstat.h test-stat.h signature.h macros.h
634
635## end   gnulib module fstatat-tests
636
637## begin gnulib module ftell-tests
638
639TESTS += test-ftell.sh test-ftell2.sh test-ftell3
640check_PROGRAMS += test-ftell test-ftell3
641MOSTLYCLEANFILES += t-ftell3.tmp
642EXTRA_DIST += test-ftell.c test-ftell.sh test-ftell2.sh test-ftell3.c signature.h macros.h
643
644## end   gnulib module ftell-tests
645
646## begin gnulib module ftello-tests
647
648TESTS += test-ftello.sh test-ftello2.sh test-ftello3 test-ftello4.sh
649check_PROGRAMS += test-ftello test-ftello3 test-ftello4
650MOSTLYCLEANFILES += t-ftello3.tmp
651EXTRA_DIST += test-ftello.c test-ftello.sh test-ftello2.sh test-ftello3.c test-ftello4.c test-ftello4.sh signature.h macros.h
652
653## end   gnulib module ftello-tests
654
655## begin gnulib module ftruncate
656
657
658EXTRA_DIST += ftruncate.c
659
660EXTRA_libtests_a_SOURCES += ftruncate.c
661
662## end   gnulib module ftruncate
663
664## begin gnulib module ftruncate-tests
665
666TESTS += test-ftruncate.sh
667check_PROGRAMS += test-ftruncate
668EXTRA_DIST += test-ftruncate.c test-ftruncate.sh signature.h macros.h
669
670## end   gnulib module ftruncate-tests
671
672## begin gnulib module fwrite-tests
673
674TESTS += test-fwrite
675check_PROGRAMS += test-fwrite
676EXTRA_DIST += test-fwrite.c signature.h macros.h
677
678## end   gnulib module fwrite-tests
679
680## begin gnulib module getcwd-lgpl-tests
681
682TESTS += test-getcwd-lgpl
683check_PROGRAMS += test-getcwd-lgpl
684test_getcwd_lgpl_LDADD = $(LDADD) $(LIBINTL)
685EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
686
687## end   gnulib module getcwd-lgpl-tests
688
689## begin gnulib module getcwd-tests
690
691TESTS += test-getcwd.sh
692check_PROGRAMS += test-getcwd
693test_getcwd_LDADD = $(LDADD) @LIBINTL@
694EXTRA_DIST += test-getcwd.c test-getcwd.sh
695
696## end   gnulib module getcwd-tests
697
698## begin gnulib module getdelim-tests
699
700TESTS += test-getdelim
701check_PROGRAMS += test-getdelim
702MOSTLYCLEANFILES += test-getdelim.txt
703EXTRA_DIST += test-getdelim.c signature.h macros.h
704
705## end   gnulib module getdelim-tests
706
707## begin gnulib module getdtablesize-tests
708
709TESTS += test-getdtablesize
710check_PROGRAMS += test-getdtablesize
711EXTRA_DIST += test-getdtablesize.c signature.h macros.h
712
713## end   gnulib module getdtablesize-tests
714
715## begin gnulib module getgroups-tests
716
717TESTS += test-getgroups
718check_PROGRAMS += test-getgroups
719EXTRA_DIST += test-getgroups.c signature.h macros.h
720
721## end   gnulib module getgroups-tests
722
723## begin gnulib module gethostname-tests
724
725TESTS += test-gethostname
726check_PROGRAMS += test-gethostname
727test_gethostname_LDADD = $(LDADD) @GETHOSTNAME_LIB@
728EXTRA_DIST += signature.h test-gethostname.c
729
730## end   gnulib module gethostname-tests
731
732## begin gnulib module getline-tests
733
734TESTS += test-getline
735check_PROGRAMS += test-getline
736MOSTLYCLEANFILES += test-getline.txt
737EXTRA_DIST += test-getline.c signature.h macros.h
738
739## end   gnulib module getline-tests
740
741## begin gnulib module getopt-gnu-tests
742
743TESTS += test-getopt-gnu
744check_PROGRAMS += test-getopt-gnu
745test_getopt_gnu_LDADD = $(LDADD) $(LIBINTL)
746EXTRA_DIST += macros.h signature.h test-getopt-gnu.c test-getopt-main.h test-getopt.h test-getopt_long.h
747
748## end   gnulib module getopt-gnu-tests
749
750## begin gnulib module getopt-posix-tests
751
752TESTS += test-getopt-posix
753check_PROGRAMS += test-getopt-posix
754test_getopt_posix_LDADD = $(LDADD) $(LIBINTL)
755EXTRA_DIST += macros.h signature.h test-getopt-posix.c test-getopt-main.h test-getopt.h
756
757## end   gnulib module getopt-posix-tests
758
759## begin gnulib module getpagesize
760
761
762EXTRA_DIST += getpagesize.c
763
764EXTRA_libtests_a_SOURCES += getpagesize.c
765
766## end   gnulib module getpagesize
767
768## begin gnulib module getprogname-tests
769
770DEFS += -DEXEEXT=\"@EXEEXT@\"
771TESTS += test-getprogname
772check_PROGRAMS += test-getprogname
773test_getprogname_LDADD = $(LDADD)
774EXTRA_DIST += test-getprogname.c
775
776## end   gnulib module getprogname-tests
777
778## begin gnulib module gettimeofday-tests
779
780TESTS += test-gettimeofday
781check_PROGRAMS += test-gettimeofday
782
783EXTRA_DIST += signature.h test-gettimeofday.c
784
785## end   gnulib module gettimeofday-tests
786
787## begin gnulib module hard-locale-tests
788
789TESTS += test-hard-locale
790check_PROGRAMS += test-hard-locale
791test_hard_locale_LDADD = $(LDADD) $(LIB_SETLOCALE) @LIB_HARD_LOCALE@
792# We cannot call this program 'locale', because the C++ compiler on Mac OS X
793# would then barf upon '#include <locale>'. So, call it 'current-locale'.
794noinst_PROGRAMS += current-locale
795current_locale_SOURCES = locale.c
796EXTRA_DIST += test-hard-locale.c locale.c
797
798## end   gnulib module hard-locale-tests
799
800## begin gnulib module hash-tests
801
802TESTS += test-hash
803check_PROGRAMS += test-hash
804EXTRA_DIST += test-hash.c macros.h
805
806## end   gnulib module hash-tests
807
808## begin gnulib module i-ring-tests
809
810TESTS += test-i-ring
811check_PROGRAMS += test-i-ring
812EXTRA_DIST += test-i-ring.c macros.h
813
814## end   gnulib module i-ring-tests
815
816## begin gnulib module ignore-value
817
818
819EXTRA_DIST += ignore-value.h
820
821## end   gnulib module ignore-value
822
823## begin gnulib module ignore-value-tests
824
825TESTS += test-ignore-value
826check_PROGRAMS += test-ignore-value
827EXTRA_DIST += test-ignore-value.c
828
829## end   gnulib module ignore-value-tests
830
831## begin gnulib module inet_pton
832
833
834EXTRA_DIST += inet_pton.c
835
836EXTRA_libtests_a_SOURCES += inet_pton.c
837
838## end   gnulib module inet_pton
839
840## begin gnulib module inet_pton-tests
841
842TESTS += test-inet_pton
843check_PROGRAMS += test-inet_pton
844test_inet_pton_LDADD = $(LDADD) @INET_PTON_LIB@
845EXTRA_DIST += test-inet_pton.c signature.h macros.h
846
847## end   gnulib module inet_pton-tests
848
849## begin gnulib module intprops-tests
850
851TESTS += test-intprops
852check_PROGRAMS += test-intprops
853EXTRA_DIST += test-intprops.c macros.h
854
855## end   gnulib module intprops-tests
856
857## begin gnulib module inttostr
858
859libtests_a_SOURCES +=    imaxtostr.c    inttostr.c    offtostr.c    uinttostr.c    umaxtostr.c
860
861EXTRA_DIST += anytostr.c inttostr.h
862
863EXTRA_libtests_a_SOURCES += anytostr.c
864
865## end   gnulib module inttostr
866
867## begin gnulib module inttostr-tests
868
869TESTS += test-inttostr
870check_PROGRAMS += test-inttostr
871EXTRA_DIST += macros.h test-inttostr.c
872
873## end   gnulib module inttostr-tests
874
875## begin gnulib module inttypes-tests
876
877TESTS += test-inttypes
878check_PROGRAMS += test-inttypes
879EXTRA_DIST += test-inttypes.c
880
881## end   gnulib module inttypes-tests
882
883## begin gnulib module ioctl
884
885
886EXTRA_DIST += ioctl.c w32sock.h
887
888EXTRA_libtests_a_SOURCES += ioctl.c
889
890## end   gnulib module ioctl
891
892## begin gnulib module ioctl-tests
893
894TESTS += test-ioctl
895check_PROGRAMS += test-ioctl
896EXTRA_DIST += test-ioctl.c signature.h macros.h
897
898## end   gnulib module ioctl-tests
899
900## begin gnulib module isblank-tests
901
902TESTS += test-isblank
903check_PROGRAMS += test-isblank
904EXTRA_DIST += test-isblank.c signature.h macros.h
905
906## end   gnulib module isblank-tests
907
908## begin gnulib module isfinite-tests
909
910TESTS += test-isfinite
911check_PROGRAMS += test-isfinite
912test_isfinite_LDADD = $(LDADD) @ISFINITE_LIBM@
913EXTRA_DIST += test-isfinite.c infinity.h macros.h
914
915## end   gnulib module isfinite-tests
916
917## begin gnulib module isinf-tests
918
919TESTS += test-isinf
920check_PROGRAMS += test-isinf
921test_isinf_LDADD = $(LDADD) @ISINF_LIBM@
922EXTRA_DIST += test-isinf.c infinity.h macros.h
923
924## end   gnulib module isinf-tests
925
926## begin gnulib module isnand-nolibm-tests
927
928TESTS += test-isnand-nolibm
929check_PROGRAMS += test-isnand-nolibm
930
931EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h infinity.h nan.h macros.h
932
933## end   gnulib module isnand-nolibm-tests
934
935## begin gnulib module isnanf-nolibm-tests
936
937TESTS += test-isnanf-nolibm
938check_PROGRAMS += test-isnanf-nolibm
939
940EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h infinity.h nan.h macros.h
941
942## end   gnulib module isnanf-nolibm-tests
943
944## begin gnulib module isnanl-nolibm-tests
945
946TESTS += test-isnanl-nolibm
947check_PROGRAMS += test-isnanl-nolibm
948
949EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h infinity.h nan.h macros.h
950
951## end   gnulib module isnanl-nolibm-tests
952
953## begin gnulib module iswblank-tests
954
955TESTS += test-iswblank
956check_PROGRAMS += test-iswblank
957EXTRA_DIST += test-iswblank.c macros.h
958
959## end   gnulib module iswblank-tests
960
961## begin gnulib module iswdigit-tests
962
963TESTS += test-iswdigit.sh
964TESTS_ENVIRONMENT += \
965  LOCALE_FR='@LOCALE_FR@' \
966  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
967  LOCALE_JA='@LOCALE_JA@' \
968  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
969check_PROGRAMS += test-iswdigit
970test_iswdigit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
971EXTRA_DIST += test-iswdigit.sh test-iswdigit.c signature.h macros.h
972
973## end   gnulib module iswdigit-tests
974
975## begin gnulib module iswxdigit-tests
976
977TESTS += test-iswxdigit.sh
978TESTS_ENVIRONMENT += \
979  LOCALE_FR='@LOCALE_FR@' \
980  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
981  LOCALE_JA='@LOCALE_JA@' \
982  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
983check_PROGRAMS += test-iswxdigit
984test_iswxdigit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
985EXTRA_DIST += test-iswxdigit.sh test-iswxdigit.c signature.h macros.h
986
987## end   gnulib module iswxdigit-tests
988
989## begin gnulib module langinfo-tests
990
991TESTS += test-langinfo
992check_PROGRAMS += test-langinfo
993EXTRA_DIST += test-langinfo.c
994
995## end   gnulib module langinfo-tests
996
997## begin gnulib module limits-h-tests
998
999TESTS += test-limits-h
1000check_PROGRAMS += test-limits-h
1001EXTRA_DIST += test-limits-h.c
1002
1003## end   gnulib module limits-h-tests
1004
1005## begin gnulib module listen
1006
1007
1008EXTRA_DIST += listen.c w32sock.h
1009
1010EXTRA_libtests_a_SOURCES += listen.c
1011
1012## end   gnulib module listen
1013
1014## begin gnulib module listen-tests
1015
1016TESTS += test-listen
1017check_PROGRAMS += test-listen
1018test_listen_LDADD = $(LDADD) @LIBSOCKET@
1019EXTRA_DIST += test-listen.c signature.h macros.h
1020
1021## end   gnulib module listen-tests
1022
1023## begin gnulib module localcharset-tests
1024
1025noinst_PROGRAMS += test-localcharset
1026test_localcharset_LDADD = $(LDADD) $(LIB_SETLOCALE)
1027EXTRA_DIST += test-localcharset.c
1028
1029## end   gnulib module localcharset-tests
1030
1031## begin gnulib module locale-tests
1032
1033TESTS += test-locale
1034check_PROGRAMS += test-locale
1035EXTRA_DIST += test-locale.c
1036
1037## end   gnulib module locale-tests
1038
1039## begin gnulib module localeconv-tests
1040
1041TESTS += test-localeconv
1042check_PROGRAMS += test-localeconv
1043EXTRA_DIST += test-localeconv.c signature.h macros.h
1044
1045## end   gnulib module localeconv-tests
1046
1047## begin gnulib module localename
1048
1049libtests_a_SOURCES += localename.c localename-table.c
1050
1051EXTRA_DIST += localename-table.h localename.h
1052
1053## end   gnulib module localename
1054
1055## begin gnulib module localename-tests
1056
1057TESTS += test-localename
1058check_PROGRAMS += test-localename
1059test_localename_LDADD = $(LDADD) $(LIB_SETLOCALE) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
1060
1061EXTRA_DIST += test-localename.c macros.h
1062
1063## end   gnulib module localename-tests
1064
1065## begin gnulib module lock-tests
1066
1067TESTS += test-rwlock1 test-lock test-once1 test-once2
1068check_PROGRAMS += test-rwlock1 test-lock test-once1 test-once2
1069test_rwlock1_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
1070test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ @LIB_SEMAPHORE@
1071test_once1_SOURCES = test-once.c
1072test_once1_LDADD = $(LDADD) @LIBTHREAD@
1073test_once2_SOURCES = test-once.c
1074test_once2_LDADD = $(LDADD) @LIBMULTITHREAD@
1075EXTRA_DIST += test-rwlock1.c test-lock.c test-once.c atomic-int-gnulib.h
1076
1077## end   gnulib module lock-tests
1078
1079## begin gnulib module lseek-tests
1080
1081TESTS += test-lseek.sh
1082check_PROGRAMS += test-lseek
1083EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
1084
1085## end   gnulib module lseek-tests
1086
1087## begin gnulib module lstat-tests
1088
1089TESTS += test-lstat
1090check_PROGRAMS += test-lstat
1091EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
1092
1093## end   gnulib module lstat-tests
1094
1095## begin gnulib module malloc-gnu-tests
1096
1097TESTS += test-malloc-gnu
1098check_PROGRAMS += test-malloc-gnu
1099EXTRA_DIST += test-malloc-gnu.c
1100
1101## end   gnulib module malloc-gnu-tests
1102
1103## begin gnulib module malloca-tests
1104
1105TESTS += test-malloca
1106check_PROGRAMS += test-malloca
1107
1108EXTRA_DIST += test-malloca.c
1109
1110## end   gnulib module malloca-tests
1111
1112## begin gnulib module math-tests
1113
1114TESTS += test-math
1115check_PROGRAMS += test-math
1116EXTRA_DIST += test-math.c macros.h
1117
1118## end   gnulib module math-tests
1119
1120## begin gnulib module mbrtowc-tests
1121
1122TESTS += \
1123  test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
1124  test-mbrtowc5.sh \
1125  test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
1126  test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh \
1127  test-mbrtowc-w32-7.sh
1128TESTS_ENVIRONMENT += \
1129  LOCALE_FR='@LOCALE_FR@' \
1130  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1131  LOCALE_JA='@LOCALE_JA@' \
1132  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1133check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
1134test_mbrtowc_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1135EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc5.sh test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh test-mbrtowc-w32-7.sh test-mbrtowc-w32.c signature.h macros.h
1136
1137## end   gnulib module mbrtowc-tests
1138
1139## begin gnulib module mbscasestr-tests
1140
1141TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh
1142TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1143check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4
1144test_mbscasestr1_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_MBRTOWC)
1145test_mbscasestr2_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1146test_mbscasestr3_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1147test_mbscasestr4_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1148EXTRA_DIST += test-mbscasestr1.c test-mbscasestr2.sh test-mbscasestr2.c test-mbscasestr3.sh test-mbscasestr3.c test-mbscasestr4.sh test-mbscasestr4.c macros.h
1149
1150## end   gnulib module mbscasestr-tests
1151
1152## begin gnulib module mbsinit-tests
1153
1154TESTS += test-mbsinit.sh
1155TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1156check_PROGRAMS += test-mbsinit
1157test_mbsinit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1158EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
1159
1160## end   gnulib module mbsinit-tests
1161
1162## begin gnulib module mbsrtowcs-tests
1163
1164TESTS += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh
1165TESTS_ENVIRONMENT += \
1166  LOCALE_FR='@LOCALE_FR@' \
1167  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1168  LOCALE_JA='@LOCALE_JA@' \
1169  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1170check_PROGRAMS += test-mbsrtowcs
1171test_mbsrtowcs_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1172EXTRA_DIST += test-mbsrtowcs1.sh test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh test-mbsrtowcs.c signature.h macros.h
1173
1174## end   gnulib module mbsrtowcs-tests
1175
1176## begin gnulib module mbsstr-tests
1177
1178TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh
1179TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1180check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
1181test_mbsstr1_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_MBRTOWC)
1182test_mbsstr2_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1183test_mbsstr3_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1184EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c macros.h
1185
1186## end   gnulib module mbsstr-tests
1187
1188## begin gnulib module memchr-tests
1189
1190TESTS += test-memchr
1191check_PROGRAMS += test-memchr
1192EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
1193
1194## end   gnulib module memchr-tests
1195
1196## begin gnulib module memrchr-tests
1197
1198TESTS += test-memrchr
1199check_PROGRAMS += test-memrchr
1200EXTRA_DIST += test-memrchr.c zerosize-ptr.h signature.h macros.h
1201
1202## end   gnulib module memrchr-tests
1203
1204## begin gnulib module modf-tests
1205
1206TESTS += test-modf
1207check_PROGRAMS += test-modf
1208test_modf_SOURCES = test-modf.c randomd.c
1209test_modf_LDADD = $(LDADD) @MODF_LIBM@
1210EXTRA_DIST += test-modf.c test-modf.h signature.h macros.h randomd.c
1211
1212## end   gnulib module modf-tests
1213
1214## begin gnulib module nanosleep
1215
1216
1217EXTRA_DIST += nanosleep.c
1218
1219EXTRA_libtests_a_SOURCES += nanosleep.c
1220
1221## end   gnulib module nanosleep
1222
1223## begin gnulib module nanosleep-tests
1224
1225TESTS += test-nanosleep
1226check_PROGRAMS += test-nanosleep
1227test_nanosleep_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1228EXTRA_DIST += test-nanosleep.c signature.h macros.h
1229
1230## end   gnulib module nanosleep-tests
1231
1232## begin gnulib module netinet_in
1233
1234BUILT_SOURCES += $(NETINET_IN_H)
1235
1236# We need the following in order to create <netinet/in.h> when the system
1237# doesn't have one.
1238if GL_GENERATE_NETINET_IN_H
1239netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
1240	$(AM_V_at)$(MKDIR_P) netinet
1241	$(AM_V_GEN)rm -f $@-t $@ && \
1242	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1243	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1244	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1245	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1246	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1247	      -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
1248	      -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
1249	      < $(srcdir)/netinet_in.in.h; \
1250	} > $@-t && \
1251	mv $@-t $@
1252else
1253netinet/in.h: $(top_builddir)/config.status
1254	rm -f $@
1255endif
1256MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
1257MOSTLYCLEANDIRS += netinet
1258
1259EXTRA_DIST += netinet_in.in.h
1260
1261## end   gnulib module netinet_in
1262
1263## begin gnulib module netinet_in-tests
1264
1265TESTS += test-netinet_in
1266check_PROGRAMS += test-netinet_in
1267EXTRA_DIST += test-netinet_in.c
1268
1269## end   gnulib module netinet_in-tests
1270
1271## begin gnulib module nl_langinfo-tests
1272
1273TESTS += test-nl_langinfo.sh test-nl_langinfo-mt
1274TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1275check_PROGRAMS += test-nl_langinfo test-nl_langinfo-mt
1276test_nl_langinfo_LDADD = $(LDADD) $(LIB_SETLOCALE)
1277test_nl_langinfo_mt_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
1278EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c test-nl_langinfo-mt.c signature.h macros.h
1279
1280## end   gnulib module nl_langinfo-tests
1281
1282## begin gnulib module nstrftime-tests
1283
1284TESTS += test-nstrftime
1285check_PROGRAMS += test-nstrftime
1286EXTRA_DIST += test-nstrftime.c macros.h
1287
1288## end   gnulib module nstrftime-tests
1289
1290## begin gnulib module open-tests
1291
1292TESTS += test-open
1293check_PROGRAMS += test-open
1294EXTRA_DIST += test-open.h test-open.c signature.h macros.h
1295
1296## end   gnulib module open-tests
1297
1298## begin gnulib module openat-safer-tests
1299
1300TESTS += test-openat-safer
1301check_PROGRAMS += test-openat-safer
1302test_openat_safer_LDADD = $(LDADD) @LIBINTL@
1303EXTRA_DIST += test-openat-safer.c macros.h
1304
1305## end   gnulib module openat-safer-tests
1306
1307## begin gnulib module openat-tests
1308
1309TESTS += test-openat
1310check_PROGRAMS += test-openat
1311test_openat_LDADD = $(LDADD) @LIBINTL@
1312EXTRA_DIST += test-openat.c test-open.h signature.h macros.h
1313
1314## end   gnulib module openat-tests
1315
1316## begin gnulib module parse-datetime-tests
1317
1318TESTS += test-parse-datetime
1319check_PROGRAMS += test-parse-datetime
1320test_parse_datetime_LDADD = $(LDADD) @LIBINTL@ $(LIB_CLOCK_GETTIME)
1321EXTRA_DIST += test-parse-datetime.c macros.h
1322
1323## end   gnulib module parse-datetime-tests
1324
1325## begin gnulib module pathmax-tests
1326
1327TESTS += test-pathmax
1328check_PROGRAMS += test-pathmax
1329EXTRA_DIST += test-pathmax.c
1330
1331## end   gnulib module pathmax-tests
1332
1333## begin gnulib module perror-tests
1334
1335TESTS += test-perror.sh test-perror2
1336check_PROGRAMS += test-perror test-perror2
1337EXTRA_DIST += macros.h signature.h test-perror.c test-perror2.c test-perror.sh
1338
1339## end   gnulib module perror-tests
1340
1341## begin gnulib module pipe-posix-tests
1342
1343TESTS += test-pipe
1344check_PROGRAMS += test-pipe
1345EXTRA_DIST += test-pipe.c signature.h macros.h
1346
1347## end   gnulib module pipe-posix-tests
1348
1349## begin gnulib module priv-set
1350
1351libtests_a_SOURCES += priv-set.c
1352
1353EXTRA_DIST += priv-set.h
1354
1355## end   gnulib module priv-set
1356
1357## begin gnulib module priv-set-tests
1358
1359TESTS += test-priv-set
1360check_PROGRAMS += test-priv-set
1361EXTRA_DIST += test-priv-set.c macros.h
1362
1363## end   gnulib module priv-set-tests
1364
1365## begin gnulib module pthread-h
1366
1367BUILT_SOURCES += pthread.h
1368
1369# We need the following in order to create <pthread.h> when the system
1370# doesn't have one that works with the given compiler.
1371pthread.h: pthread.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1372	$(AM_V_GEN)rm -f $@-t $@ && \
1373	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1374	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1375	      -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \
1376	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1377	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1378	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1379	      -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \
1380	      -e 's/@''GNULIB_PTHREAD_THREAD''@/$(GNULIB_PTHREAD_THREAD)/g' \
1381	      -e 's/@''GNULIB_PTHREAD_ONCE''@/$(GNULIB_PTHREAD_ONCE)/g' \
1382	      -e 's/@''GNULIB_PTHREAD_MUTEX''@/$(GNULIB_PTHREAD_MUTEX)/g' \
1383	      -e 's/@''GNULIB_PTHREAD_RWLOCK''@/$(GNULIB_PTHREAD_RWLOCK)/g' \
1384	      -e 's/@''GNULIB_PTHREAD_COND''@/$(GNULIB_PTHREAD_COND)/g' \
1385	      -e 's/@''GNULIB_PTHREAD_TSS''@/$(GNULIB_PTHREAD_TSS)/g' \
1386	      -e 's/@''GNULIB_PTHREAD_SPIN''@/$(GNULIB_PTHREAD_SPIN)/g' \
1387	      -e 's/@''GNULIB_PTHREAD_MUTEX_TIMEDLOCK''@/$(GNULIB_PTHREAD_MUTEX_TIMEDLOCK)/g' \
1388	      -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \
1389	      -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \
1390	      -e 's|@''HAVE_PTHREAD_CREATE_DETACHED''@|$(HAVE_PTHREAD_CREATE_DETACHED)|g' \
1391	      -e 's|@''HAVE_PTHREAD_MUTEX_RECURSIVE''@|$(HAVE_PTHREAD_MUTEX_RECURSIVE)|g' \
1392	      -e 's|@''HAVE_PTHREAD_MUTEX_ROBUST''@|$(HAVE_PTHREAD_MUTEX_ROBUST)|g' \
1393	      -e 's|@''HAVE_PTHREAD_PROCESS_SHARED''@|$(HAVE_PTHREAD_PROCESS_SHARED)|g' \
1394	      -e 's|@''HAVE_PTHREAD_CREATE''@|$(HAVE_PTHREAD_CREATE)|g' \
1395	      -e 's|@''HAVE_PTHREAD_ATTR_INIT''@|$(HAVE_PTHREAD_ATTR_INIT)|g' \
1396	      -e 's|@''HAVE_PTHREAD_ATTR_GETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_GETDETACHSTATE)|g' \
1397	      -e 's|@''HAVE_PTHREAD_ATTR_SETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_SETDETACHSTATE)|g' \
1398	      -e 's|@''HAVE_PTHREAD_ATTR_DESTROY''@|$(HAVE_PTHREAD_ATTR_DESTROY)|g' \
1399	      -e 's|@''HAVE_PTHREAD_SELF''@|$(HAVE_PTHREAD_SELF)|g' \
1400	      -e 's|@''HAVE_PTHREAD_EQUAL''@|$(HAVE_PTHREAD_EQUAL)|g' \
1401	      -e 's|@''HAVE_PTHREAD_DETACH''@|$(HAVE_PTHREAD_DETACH)|g' \
1402	      -e 's|@''HAVE_PTHREAD_JOIN''@|$(HAVE_PTHREAD_JOIN)|g' \
1403	      -e 's|@''HAVE_PTHREAD_EXIT''@|$(HAVE_PTHREAD_EXIT)|g' \
1404	      -e 's|@''HAVE_PTHREAD_ONCE''@|$(HAVE_PTHREAD_ONCE)|g' \
1405	      -e 's|@''HAVE_PTHREAD_MUTEX_INIT''@|$(HAVE_PTHREAD_MUTEX_INIT)|g' \
1406	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_INIT''@|$(HAVE_PTHREAD_MUTEXATTR_INIT)|g' \
1407	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_GETTYPE)|g' \
1408	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_SETTYPE)|g' \
1409	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_GETROBUST)|g' \
1410	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_SETROBUST)|g' \
1411	      -e 's|@''HAVE_PTHREAD_MUTEXATTR_DESTROY''@|$(HAVE_PTHREAD_MUTEXATTR_DESTROY)|g' \
1412	      -e 's|@''HAVE_PTHREAD_MUTEX_LOCK''@|$(HAVE_PTHREAD_MUTEX_LOCK)|g' \
1413	      -e 's|@''HAVE_PTHREAD_MUTEX_TRYLOCK''@|$(HAVE_PTHREAD_MUTEX_TRYLOCK)|g' \
1414	      -e 's|@''HAVE_PTHREAD_MUTEX_TIMEDLOCK''@|$(HAVE_PTHREAD_MUTEX_TIMEDLOCK)|g' \
1415	      -e 's|@''HAVE_PTHREAD_MUTEX_UNLOCK''@|$(HAVE_PTHREAD_MUTEX_UNLOCK)|g' \
1416	      -e 's|@''HAVE_PTHREAD_MUTEX_DESTROY''@|$(HAVE_PTHREAD_MUTEX_DESTROY)|g' \
1417	      -e 's|@''HAVE_PTHREAD_RWLOCK_INIT''@|$(HAVE_PTHREAD_RWLOCK_INIT)|g' \
1418	      -e 's|@''HAVE_PTHREAD_RWLOCKATTR_INIT''@|$(HAVE_PTHREAD_RWLOCKATTR_INIT)|g' \
1419	      -e 's|@''HAVE_PTHREAD_RWLOCKATTR_DESTROY''@|$(HAVE_PTHREAD_RWLOCKATTR_DESTROY)|g' \
1420	      -e 's|@''HAVE_PTHREAD_RWLOCK_RDLOCK''@|$(HAVE_PTHREAD_RWLOCK_RDLOCK)|g' \
1421	      -e 's|@''HAVE_PTHREAD_RWLOCK_WRLOCK''@|$(HAVE_PTHREAD_RWLOCK_WRLOCK)|g' \
1422	      -e 's|@''HAVE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \
1423	      -e 's|@''HAVE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \
1424	      -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \
1425	      -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \
1426	      -e 's|@''HAVE_PTHREAD_RWLOCK_UNLOCK''@|$(HAVE_PTHREAD_RWLOCK_UNLOCK)|g' \
1427	      -e 's|@''HAVE_PTHREAD_RWLOCK_DESTROY''@|$(HAVE_PTHREAD_RWLOCK_DESTROY)|g' \
1428	      -e 's|@''HAVE_PTHREAD_COND_INIT''@|$(HAVE_PTHREAD_COND_INIT)|g' \
1429	      -e 's|@''HAVE_PTHREAD_CONDATTR_INIT''@|$(HAVE_PTHREAD_CONDATTR_INIT)|g' \
1430	      -e 's|@''HAVE_PTHREAD_CONDATTR_DESTROY''@|$(HAVE_PTHREAD_CONDATTR_DESTROY)|g' \
1431	      -e 's|@''HAVE_PTHREAD_COND_WAIT''@|$(HAVE_PTHREAD_COND_WAIT)|g' \
1432	      -e 's|@''HAVE_PTHREAD_COND_TIMEDWAIT''@|$(HAVE_PTHREAD_COND_TIMEDWAIT)|g' \
1433	      -e 's|@''HAVE_PTHREAD_COND_SIGNAL''@|$(HAVE_PTHREAD_COND_SIGNAL)|g' \
1434	      -e 's|@''HAVE_PTHREAD_COND_BROADCAST''@|$(HAVE_PTHREAD_COND_BROADCAST)|g' \
1435	      -e 's|@''HAVE_PTHREAD_COND_DESTROY''@|$(HAVE_PTHREAD_COND_DESTROY)|g' \
1436	      -e 's|@''HAVE_PTHREAD_KEY_CREATE''@|$(HAVE_PTHREAD_KEY_CREATE)|g' \
1437	      -e 's|@''HAVE_PTHREAD_SETSPECIFIC''@|$(HAVE_PTHREAD_SETSPECIFIC)|g' \
1438	      -e 's|@''HAVE_PTHREAD_GETSPECIFIC''@|$(HAVE_PTHREAD_GETSPECIFIC)|g' \
1439	      -e 's|@''HAVE_PTHREAD_KEY_DELETE''@|$(HAVE_PTHREAD_KEY_DELETE)|g' \
1440	      -e 's|@''HAVE_PTHREAD_SPIN_INIT''@|$(HAVE_PTHREAD_SPIN_INIT)|g' \
1441	      -e 's|@''HAVE_PTHREAD_SPIN_LOCK''@|$(HAVE_PTHREAD_SPIN_LOCK)|g' \
1442	      -e 's|@''HAVE_PTHREAD_SPIN_TRYLOCK''@|$(HAVE_PTHREAD_SPIN_TRYLOCK)|g' \
1443	      -e 's|@''HAVE_PTHREAD_SPIN_UNLOCK''@|$(HAVE_PTHREAD_SPIN_UNLOCK)|g' \
1444	      -e 's|@''HAVE_PTHREAD_SPIN_DESTROY''@|$(HAVE_PTHREAD_SPIN_DESTROY)|g' \
1445	      < $(srcdir)/pthread.in.h | \
1446	  sed -e 's|@''REPLACE_PTHREAD_CREATE''@|$(REPLACE_PTHREAD_CREATE)|g' \
1447	      -e 's|@''REPLACE_PTHREAD_ATTR_INIT''@|$(REPLACE_PTHREAD_ATTR_INIT)|g' \
1448	      -e 's|@''REPLACE_PTHREAD_ATTR_GETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_GETDETACHSTATE)|g' \
1449	      -e 's|@''REPLACE_PTHREAD_ATTR_SETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_SETDETACHSTATE)|g' \
1450	      -e 's|@''REPLACE_PTHREAD_ATTR_DESTROY''@|$(REPLACE_PTHREAD_ATTR_DESTROY)|g' \
1451	      -e 's|@''REPLACE_PTHREAD_SELF''@|$(REPLACE_PTHREAD_SELF)|g' \
1452	      -e 's|@''REPLACE_PTHREAD_EQUAL''@|$(REPLACE_PTHREAD_EQUAL)|g' \
1453	      -e 's|@''REPLACE_PTHREAD_DETACH''@|$(REPLACE_PTHREAD_DETACH)|g' \
1454	      -e 's|@''REPLACE_PTHREAD_JOIN''@|$(REPLACE_PTHREAD_JOIN)|g' \
1455	      -e 's|@''REPLACE_PTHREAD_EXIT''@|$(REPLACE_PTHREAD_EXIT)|g' \
1456	      -e 's|@''REPLACE_PTHREAD_ONCE''@|$(REPLACE_PTHREAD_ONCE)|g' \
1457	      -e 's|@''REPLACE_PTHREAD_MUTEX_INIT''@|$(REPLACE_PTHREAD_MUTEX_INIT)|g' \
1458	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_INIT''@|$(REPLACE_PTHREAD_MUTEXATTR_INIT)|g' \
1459	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_GETTYPE)|g' \
1460	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_SETTYPE)|g' \
1461	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_GETROBUST)|g' \
1462	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_SETROBUST)|g' \
1463	      -e 's|@''REPLACE_PTHREAD_MUTEXATTR_DESTROY''@|$(REPLACE_PTHREAD_MUTEXATTR_DESTROY)|g' \
1464	      -e 's|@''REPLACE_PTHREAD_MUTEX_LOCK''@|$(REPLACE_PTHREAD_MUTEX_LOCK)|g' \
1465	      -e 's|@''REPLACE_PTHREAD_MUTEX_TRYLOCK''@|$(REPLACE_PTHREAD_MUTEX_TRYLOCK)|g' \
1466	      -e 's|@''REPLACE_PTHREAD_MUTEX_TIMEDLOCK''@|$(REPLACE_PTHREAD_MUTEX_TIMEDLOCK)|g' \
1467	      -e 's|@''REPLACE_PTHREAD_MUTEX_UNLOCK''@|$(REPLACE_PTHREAD_MUTEX_UNLOCK)|g' \
1468	      -e 's|@''REPLACE_PTHREAD_MUTEX_DESTROY''@|$(REPLACE_PTHREAD_MUTEX_DESTROY)|g' \
1469	      -e 's|@''REPLACE_PTHREAD_RWLOCK_INIT''@|$(REPLACE_PTHREAD_RWLOCK_INIT)|g' \
1470	      -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_INIT''@|$(REPLACE_PTHREAD_RWLOCKATTR_INIT)|g' \
1471	      -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_DESTROY''@|$(REPLACE_PTHREAD_RWLOCKATTR_DESTROY)|g' \
1472	      -e 's|@''REPLACE_PTHREAD_RWLOCK_RDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_RDLOCK)|g' \
1473	      -e 's|@''REPLACE_PTHREAD_RWLOCK_WRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_WRLOCK)|g' \
1474	      -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \
1475	      -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \
1476	      -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \
1477	      -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \
1478	      -e 's|@''REPLACE_PTHREAD_RWLOCK_UNLOCK''@|$(REPLACE_PTHREAD_RWLOCK_UNLOCK)|g' \
1479	      -e 's|@''REPLACE_PTHREAD_RWLOCK_DESTROY''@|$(REPLACE_PTHREAD_RWLOCK_DESTROY)|g' \
1480	      -e 's|@''REPLACE_PTHREAD_COND_INIT''@|$(REPLACE_PTHREAD_COND_INIT)|g' \
1481	      -e 's|@''REPLACE_PTHREAD_CONDATTR_INIT''@|$(REPLACE_PTHREAD_CONDATTR_INIT)|g' \
1482	      -e 's|@''REPLACE_PTHREAD_CONDATTR_DESTROY''@|$(REPLACE_PTHREAD_CONDATTR_DESTROY)|g' \
1483	      -e 's|@''REPLACE_PTHREAD_COND_WAIT''@|$(REPLACE_PTHREAD_COND_WAIT)|g' \
1484	      -e 's|@''REPLACE_PTHREAD_COND_TIMEDWAIT''@|$(REPLACE_PTHREAD_COND_TIMEDWAIT)|g' \
1485	      -e 's|@''REPLACE_PTHREAD_COND_SIGNAL''@|$(REPLACE_PTHREAD_COND_SIGNAL)|g' \
1486	      -e 's|@''REPLACE_PTHREAD_COND_BROADCAST''@|$(REPLACE_PTHREAD_COND_BROADCAST)|g' \
1487	      -e 's|@''REPLACE_PTHREAD_COND_DESTROY''@|$(REPLACE_PTHREAD_COND_DESTROY)|g' \
1488	      -e 's|@''REPLACE_PTHREAD_KEY_CREATE''@|$(REPLACE_PTHREAD_KEY_CREATE)|g' \
1489	      -e 's|@''REPLACE_PTHREAD_SETSPECIFIC''@|$(REPLACE_PTHREAD_SETSPECIFIC)|g' \
1490	      -e 's|@''REPLACE_PTHREAD_GETSPECIFIC''@|$(REPLACE_PTHREAD_GETSPECIFIC)|g' \
1491	      -e 's|@''REPLACE_PTHREAD_KEY_DELETE''@|$(REPLACE_PTHREAD_KEY_DELETE)|g' \
1492	      -e 's|@''REPLACE_PTHREAD_SPIN_INIT''@|$(REPLACE_PTHREAD_SPIN_INIT)|g' \
1493	      -e 's|@''REPLACE_PTHREAD_SPIN_LOCK''@|$(REPLACE_PTHREAD_SPIN_LOCK)|g' \
1494	      -e 's|@''REPLACE_PTHREAD_SPIN_TRYLOCK''@|$(REPLACE_PTHREAD_SPIN_TRYLOCK)|g' \
1495	      -e 's|@''REPLACE_PTHREAD_SPIN_UNLOCK''@|$(REPLACE_PTHREAD_SPIN_UNLOCK)|g' \
1496	      -e 's|@''REPLACE_PTHREAD_SPIN_DESTROY''@|$(REPLACE_PTHREAD_SPIN_DESTROY)|g' \
1497	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1498	      -e '/definition of _Noreturn/r $(_NORETURN_H)' \
1499	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1500	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
1501	} > $@-t && \
1502	mv $@-t $@
1503MOSTLYCLEANFILES += pthread.h pthread.h-t
1504
1505EXTRA_DIST += pthread.in.h
1506
1507## end   gnulib module pthread-h
1508
1509## begin gnulib module pthread-h-tests
1510
1511TESTS += test-pthread
1512check_PROGRAMS += test-pthread
1513EXTRA_DIST += test-pthread.c
1514
1515## end   gnulib module pthread-h-tests
1516
1517## begin gnulib module pthread-thread
1518
1519
1520EXTRA_DIST += pthread-thread.c
1521
1522EXTRA_libtests_a_SOURCES += pthread-thread.c
1523
1524## end   gnulib module pthread-thread
1525
1526## begin gnulib module pthread-thread-tests
1527
1528TESTS += test-pthread-thread
1529check_PROGRAMS += test-pthread-thread
1530test_pthread_thread_LDADD = $(LDADD) @LIBPMULTITHREAD@
1531EXTRA_DIST += test-pthread-thread.c macros.h
1532
1533## end   gnulib module pthread-thread-tests
1534
1535## begin gnulib module pthread_sigmask
1536
1537
1538EXTRA_DIST += pthread_sigmask.c
1539
1540EXTRA_libtests_a_SOURCES += pthread_sigmask.c
1541
1542## end   gnulib module pthread_sigmask
1543
1544## begin gnulib module pthread_sigmask-tests
1545
1546TESTS += test-pthread_sigmask1 test-pthread_sigmask2
1547check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
1548test_pthread_sigmask1_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@
1549test_pthread_sigmask2_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@ @LIBMULTITHREAD@
1550EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h macros.h
1551
1552## end   gnulib module pthread_sigmask-tests
1553
1554## begin gnulib module putenv
1555
1556
1557EXTRA_DIST += putenv.c
1558
1559EXTRA_libtests_a_SOURCES += putenv.c
1560
1561## end   gnulib module putenv
1562
1563## begin gnulib module quotearg-simple-tests
1564
1565TESTS += test-quotearg-simple
1566check_PROGRAMS += test-quotearg-simple
1567test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
1568EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h zerosize-ptr.h
1569
1570## end   gnulib module quotearg-simple-tests
1571
1572## begin gnulib module raise
1573
1574
1575EXTRA_DIST += raise.c
1576
1577EXTRA_libtests_a_SOURCES += raise.c
1578
1579## end   gnulib module raise
1580
1581## begin gnulib module raise-tests
1582
1583TESTS += test-raise
1584check_PROGRAMS += test-raise
1585EXTRA_DIST += test-raise.c signature.h macros.h
1586
1587## end   gnulib module raise-tests
1588
1589## begin gnulib module rawmemchr-tests
1590
1591TESTS += test-rawmemchr
1592check_PROGRAMS += test-rawmemchr
1593EXTRA_DIST += test-rawmemchr.c zerosize-ptr.h signature.h macros.h
1594
1595## end   gnulib module rawmemchr-tests
1596
1597## begin gnulib module read-tests
1598
1599TESTS += test-read
1600check_PROGRAMS += test-read
1601EXTRA_DIST += test-read.c signature.h macros.h
1602
1603## end   gnulib module read-tests
1604
1605## begin gnulib module readlink-tests
1606
1607TESTS += test-readlink
1608check_PROGRAMS += test-readlink
1609EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
1610
1611## end   gnulib module readlink-tests
1612
1613## begin gnulib module readlinkat-tests
1614
1615TESTS += test-readlinkat
1616check_PROGRAMS += test-readlinkat
1617test_readlinkat_LDADD = $(LDADD) @LIBINTL@
1618EXTRA_DIST += test-readlink.h test-readlinkat.c signature.h macros.h
1619
1620## end   gnulib module readlinkat-tests
1621
1622## begin gnulib module realloc-gnu-tests
1623
1624TESTS += test-realloc-gnu
1625check_PROGRAMS += test-realloc-gnu
1626EXTRA_DIST += test-realloc-gnu.c
1627
1628## end   gnulib module realloc-gnu-tests
1629
1630## begin gnulib module regex-tests
1631
1632TESTS += test-regex
1633check_PROGRAMS += test-regex
1634test_regex_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC) @LIBINTL@ $(LIBTHREAD)
1635EXTRA_DIST += test-regex.c macros.h
1636
1637## end   gnulib module regex-tests
1638
1639## begin gnulib module rmdir-tests
1640
1641TESTS += test-rmdir
1642check_PROGRAMS += test-rmdir
1643EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
1644
1645## end   gnulib module rmdir-tests
1646
1647## begin gnulib module sched
1648
1649BUILT_SOURCES += sched.h
1650
1651# We need the following in order to create a replacement for <sched.h> when
1652# the system doesn't have one.
1653sched.h: sched.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
1654	$(AM_V_GEN)rm -f $@-t $@ && \
1655	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1656	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1657	      -e 's|@''HAVE_SCHED_H''@|$(HAVE_SCHED_H)|g' \
1658	      -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
1659	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1660	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1661	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1662	      -e 's|@''NEXT_SCHED_H''@|$(NEXT_SCHED_H)|g' \
1663	      -e 's|@''HAVE_STRUCT_SCHED_PARAM''@|$(HAVE_STRUCT_SCHED_PARAM)|g' \
1664	      -e 's/@''GNULIB_SCHED_YIELD''@/$(GNULIB_SCHED_YIELD)/g' \
1665	      -e 's|@''HAVE_SCHED_YIELD''@|$(HAVE_SCHED_YIELD)|g' \
1666	      -e 's|@''REPLACE_SCHED_YIELD''@|$(REPLACE_SCHED_YIELD)|g' \
1667	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1668	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1669	      < $(srcdir)/sched.in.h; \
1670	} > $@-t && \
1671	mv $@-t $@
1672MOSTLYCLEANFILES += sched.h sched.h-t
1673
1674EXTRA_DIST += sched.in.h
1675
1676## end   gnulib module sched
1677
1678## begin gnulib module sched-tests
1679
1680TESTS += test-sched
1681check_PROGRAMS += test-sched
1682EXTRA_DIST += test-sched.c
1683
1684## end   gnulib module sched-tests
1685
1686## begin gnulib module scratch_buffer-tests
1687
1688TESTS += test-scratch-buffer
1689check_PROGRAMS += test-scratch-buffer
1690test_scratch_buffer_SOURCES = test-scratch-buffer.c
1691EXTRA_DIST += test-scratch-buffer.c macros.h
1692
1693## end   gnulib module scratch_buffer-tests
1694
1695## begin gnulib module select
1696
1697
1698EXTRA_DIST += select.c
1699
1700EXTRA_libtests_a_SOURCES += select.c
1701
1702## end   gnulib module select
1703
1704## begin gnulib module select-tests
1705
1706TESTS += test-select test-select-in.sh test-select-out.sh
1707# test-select-stdin has to be run by hand.
1708check_PROGRAMS += test-select test-select-fd test-select-stdin
1709test_select_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ $(INET_PTON_LIB)
1710test_select_fd_LDADD = $(LDADD) @LIB_SELECT@
1711test_select_stdin_LDADD = $(LDADD) @LIB_SELECT@
1712EXTRA_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
1713
1714## end   gnulib module select-tests
1715
1716## begin gnulib module setenv-tests
1717
1718TESTS += test-setenv
1719check_PROGRAMS += test-setenv
1720EXTRA_DIST += test-setenv.c signature.h macros.h
1721
1722## end   gnulib module setenv-tests
1723
1724## begin gnulib module setlocale
1725
1726
1727EXTRA_DIST += setlocale.c
1728
1729EXTRA_libtests_a_SOURCES += setlocale.c
1730
1731## end   gnulib module setlocale
1732
1733## begin gnulib module setlocale-null-tests
1734
1735TESTS += \
1736  test-setlocale_null \
1737  test-setlocale_null-mt-one \
1738  test-setlocale_null-mt-all
1739check_PROGRAMS += \
1740  test-setlocale_null \
1741  test-setlocale_null-mt-one \
1742  test-setlocale_null-mt-all
1743test_setlocale_null_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@
1744test_setlocale_null_mt_one_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
1745test_setlocale_null_mt_all_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
1746EXTRA_DIST += test-setlocale_null.c test-setlocale_null-mt-one.c test-setlocale_null-mt-all.c
1747
1748## end   gnulib module setlocale-null-tests
1749
1750## begin gnulib module setlocale-tests
1751
1752TESTS += test-setlocale1.sh test-setlocale2.sh
1753TESTS_ENVIRONMENT += \
1754  LOCALE_FR='@LOCALE_FR@' \
1755  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1756  LOCALE_JA='@LOCALE_JA@' \
1757  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1758check_PROGRAMS += test-setlocale1 test-setlocale2
1759test_setlocale1_LDADD = $(LDADD) @LIB_SETLOCALE@
1760test_setlocale2_LDADD = $(LDADD) @LIB_SETLOCALE@
1761EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
1762
1763## end   gnulib module setlocale-tests
1764
1765## begin gnulib module setsockopt
1766
1767
1768EXTRA_DIST += setsockopt.c w32sock.h
1769
1770EXTRA_libtests_a_SOURCES += setsockopt.c
1771
1772## end   gnulib module setsockopt
1773
1774## begin gnulib module setsockopt-tests
1775
1776TESTS += test-setsockopt
1777check_PROGRAMS += test-setsockopt
1778test_setsockopt_LDADD = $(LDADD) @LIBSOCKET@
1779EXTRA_DIST += test-setsockopt.c signature.h macros.h
1780
1781## end   gnulib module setsockopt-tests
1782
1783## begin gnulib module sigaction
1784
1785libtests_a_SOURCES += sig-handler.c
1786
1787EXTRA_DIST += sig-handler.h sigaction.c
1788
1789EXTRA_libtests_a_SOURCES += sigaction.c
1790
1791## end   gnulib module sigaction
1792
1793## begin gnulib module sigaction-tests
1794
1795TESTS += test-sigaction
1796check_PROGRAMS += test-sigaction
1797EXTRA_DIST += test-sigaction.c signature.h macros.h
1798
1799## end   gnulib module sigaction-tests
1800
1801## begin gnulib module signal-h
1802
1803BUILT_SOURCES += signal.h
1804
1805# We need the following in order to create <signal.h> when the system
1806# doesn't have a complete one.
1807signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1808	$(AM_V_GEN)rm -f $@-t $@ && \
1809	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1810	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1811	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1812	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1813	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1814	      -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \
1815	      -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GNULIB_PTHREAD_SIGMASK)/g' \
1816	      -e 's/@''GNULIB_RAISE''@/$(GNULIB_RAISE)/g' \
1817	      -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \
1818	      -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \
1819	      -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \
1820	      -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \
1821	      -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \
1822	      -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \
1823	      -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \
1824	      -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \
1825	      -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
1826	      -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
1827	      -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
1828	      -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \
1829	      -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \
1830	      -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \
1831	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1832	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1833	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1834	      < $(srcdir)/signal.in.h; \
1835	} > $@-t && \
1836	mv $@-t $@
1837MOSTLYCLEANFILES += signal.h signal.h-t
1838
1839EXTRA_DIST += signal.in.h
1840
1841## end   gnulib module signal-h
1842
1843## begin gnulib module signal-h-tests
1844
1845TESTS += test-signal-h
1846check_PROGRAMS += test-signal-h
1847EXTRA_DIST += test-signal-h.c
1848
1849## end   gnulib module signal-h-tests
1850
1851## begin gnulib module sigprocmask
1852
1853
1854EXTRA_DIST += sigprocmask.c
1855
1856EXTRA_libtests_a_SOURCES += sigprocmask.c
1857
1858## end   gnulib module sigprocmask
1859
1860## begin gnulib module sigprocmask-tests
1861
1862TESTS += test-sigprocmask
1863check_PROGRAMS += test-sigprocmask
1864EXTRA_DIST += test-sigprocmask.c signature.h macros.h
1865
1866## end   gnulib module sigprocmask-tests
1867
1868## begin gnulib module sleep
1869
1870
1871EXTRA_DIST += sleep.c
1872
1873EXTRA_libtests_a_SOURCES += sleep.c
1874
1875## end   gnulib module sleep
1876
1877## begin gnulib module sleep-tests
1878
1879TESTS += test-sleep
1880check_PROGRAMS += test-sleep
1881EXTRA_DIST += test-sleep.c signature.h macros.h
1882
1883## end   gnulib module sleep-tests
1884
1885## begin gnulib module snippet/_Noreturn
1886
1887# Because this Makefile snippet defines a variable used by other
1888# gnulib Makefile snippets, it must be present in all makefiles that
1889# need it. This is ensured by the applicability 'all' defined above.
1890
1891_NORETURN_H=$(srcdir)/_Noreturn.h
1892
1893EXTRA_DIST += _Noreturn.h
1894
1895## end   gnulib module snippet/_Noreturn
1896
1897## begin gnulib module snippet/arg-nonnull
1898
1899# Because this Makefile snippet defines a variable used by other
1900# gnulib Makefile snippets, it must be present in all makefiles that
1901# need it. This is ensured by the applicability 'all' defined above.
1902
1903ARG_NONNULL_H=$(srcdir)/arg-nonnull.h
1904
1905EXTRA_DIST += arg-nonnull.h
1906
1907## end   gnulib module snippet/arg-nonnull
1908
1909## begin gnulib module snippet/c++defs
1910
1911# Because this Makefile snippet defines a variable used by other
1912# gnulib Makefile snippets, it must be present in all makefiles that
1913# need it. This is ensured by the applicability 'all' defined above.
1914
1915CXXDEFS_H=$(srcdir)/c++defs.h
1916
1917EXTRA_DIST += c++defs.h
1918
1919## end   gnulib module snippet/c++defs
1920
1921## begin gnulib module snippet/unused-parameter
1922
1923# Because this Makefile snippet defines a variable used by other
1924# gnulib Makefile snippets, it must be present in all makefiles that
1925# need it. This is ensured by the applicability 'all' defined above.
1926
1927UNUSED_PARAMETER_H=$(srcdir)/unused-parameter.h
1928
1929EXTRA_DIST += unused-parameter.h
1930
1931## end   gnulib module snippet/unused-parameter
1932
1933## begin gnulib module snippet/warn-on-use
1934
1935# Because this Makefile snippet defines a variable used by other
1936# gnulib Makefile snippets, it must be present in all makefiles that
1937# need it. This is ensured by the applicability 'all' defined above.
1938
1939WARN_ON_USE_H=$(srcdir)/warn-on-use.h
1940
1941EXTRA_DIST += warn-on-use.h
1942
1943## end   gnulib module snippet/warn-on-use
1944
1945## begin gnulib module snprintf-tests
1946
1947TESTS += test-snprintf
1948check_PROGRAMS += test-snprintf
1949
1950EXTRA_DIST += test-snprintf.c signature.h macros.h
1951
1952## end   gnulib module snprintf-tests
1953
1954## begin gnulib module socket
1955
1956
1957EXTRA_DIST += socket.c w32sock.h
1958
1959EXTRA_libtests_a_SOURCES += socket.c
1960
1961## end   gnulib module socket
1962
1963## begin gnulib module sockets-tests
1964
1965TESTS += test-sockets
1966check_PROGRAMS += test-sockets
1967test_sockets_LDADD = $(LDADD) @LIBSOCKET@
1968EXTRA_DIST += test-sockets.c
1969
1970## end   gnulib module sockets-tests
1971
1972## begin gnulib module stat-tests
1973
1974TESTS += test-stat
1975check_PROGRAMS += test-stat
1976test_stat_LDADD = $(LDADD) $(LIBINTL)
1977EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
1978
1979## end   gnulib module stat-tests
1980
1981## begin gnulib module stat-time-tests
1982
1983TESTS += test-stat-time
1984check_PROGRAMS += test-stat-time
1985test_stat_time_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1986EXTRA_DIST += test-stat-time.c macros.h nap.h
1987
1988## end   gnulib module stat-time-tests
1989
1990## begin gnulib module statat-tests
1991
1992TESTS += test-statat
1993check_PROGRAMS += test-statat
1994test_statat_LDADD = $(LDADD) @LIBINTL@
1995EXTRA_DIST += test-statat.c
1996
1997## end   gnulib module statat-tests
1998
1999## begin gnulib module stdalign-tests
2000
2001TESTS += test-stdalign
2002check_PROGRAMS += test-stdalign
2003EXTRA_DIST += test-stdalign.c macros.h
2004
2005## end   gnulib module stdalign-tests
2006
2007## begin gnulib module stdbool-tests
2008
2009TESTS += test-stdbool
2010check_PROGRAMS += test-stdbool
2011EXTRA_DIST += test-stdbool.c
2012
2013## end   gnulib module stdbool-tests
2014
2015## begin gnulib module stddef-tests
2016
2017TESTS += test-stddef
2018check_PROGRAMS += test-stddef
2019EXTRA_DIST += test-stddef.c
2020
2021## end   gnulib module stddef-tests
2022
2023## begin gnulib module stdint-tests
2024
2025TESTS += test-stdint
2026check_PROGRAMS += test-stdint
2027EXTRA_DIST += test-stdint.c
2028
2029## end   gnulib module stdint-tests
2030
2031## begin gnulib module stdio-tests
2032
2033TESTS += test-stdio
2034check_PROGRAMS += test-stdio
2035EXTRA_DIST += test-stdio.c
2036
2037## end   gnulib module stdio-tests
2038
2039## begin gnulib module stdlib-tests
2040
2041TESTS += test-stdlib
2042check_PROGRAMS += test-stdlib
2043EXTRA_DIST += test-stdlib.c test-sys_wait.h
2044
2045## end   gnulib module stdlib-tests
2046
2047## begin gnulib module strcasestr-tests
2048
2049TESTS += test-strcasestr
2050check_PROGRAMS += test-strcasestr
2051
2052EXTRA_DIST += test-strcasestr.c signature.h macros.h
2053
2054## end   gnulib module strcasestr-tests
2055
2056## begin gnulib module strerror-tests
2057
2058TESTS += test-strerror
2059check_PROGRAMS += test-strerror
2060EXTRA_DIST += test-strerror.c signature.h macros.h
2061
2062## end   gnulib module strerror-tests
2063
2064## begin gnulib module strerror_r-posix-tests
2065
2066TESTS += test-strerror_r
2067check_PROGRAMS += test-strerror_r
2068EXTRA_DIST += test-strerror_r.c signature.h macros.h
2069
2070## end   gnulib module strerror_r-posix-tests
2071
2072## begin gnulib module string-tests
2073
2074TESTS += test-string
2075check_PROGRAMS += test-string
2076EXTRA_DIST += test-string.c
2077
2078## end   gnulib module string-tests
2079
2080## begin gnulib module strings-tests
2081
2082TESTS += test-strings
2083check_PROGRAMS += test-strings
2084EXTRA_DIST += test-strings.c
2085
2086## end   gnulib module strings-tests
2087
2088## begin gnulib module strnlen-tests
2089
2090TESTS += test-strnlen
2091check_PROGRAMS += test-strnlen
2092EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
2093
2094## end   gnulib module strnlen-tests
2095
2096## begin gnulib module strstr-tests
2097
2098TESTS += test-strstr
2099check_PROGRAMS += test-strstr
2100EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
2101
2102## end   gnulib module strstr-tests
2103
2104## begin gnulib module strtoll
2105
2106
2107EXTRA_DIST += strtol.c strtoll.c
2108
2109EXTRA_libtests_a_SOURCES += strtol.c strtoll.c
2110
2111## end   gnulib module strtoll
2112
2113## begin gnulib module strtoll-tests
2114
2115TESTS += test-strtoll
2116check_PROGRAMS += test-strtoll
2117EXTRA_DIST += test-strtoll.c signature.h macros.h
2118
2119## end   gnulib module strtoll-tests
2120
2121## begin gnulib module strtoull-tests
2122
2123TESTS += test-strtoull
2124check_PROGRAMS += test-strtoull
2125EXTRA_DIST += test-strtoull.c signature.h macros.h
2126
2127## end   gnulib module strtoull-tests
2128
2129## begin gnulib module strtoumax-tests
2130
2131TESTS += test-strtoumax
2132check_PROGRAMS += test-strtoumax
2133EXTRA_DIST += test-strtoumax.c signature.h macros.h
2134
2135## end   gnulib module strtoumax-tests
2136
2137## begin gnulib module symlink
2138
2139
2140EXTRA_DIST += symlink.c
2141
2142EXTRA_libtests_a_SOURCES += symlink.c
2143
2144## end   gnulib module symlink
2145
2146## begin gnulib module symlink-tests
2147
2148TESTS += test-symlink
2149check_PROGRAMS += test-symlink
2150EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
2151
2152## end   gnulib module symlink-tests
2153
2154## begin gnulib module symlinkat
2155
2156
2157EXTRA_DIST += at-func.c symlinkat.c
2158
2159EXTRA_libtests_a_SOURCES += at-func.c symlinkat.c
2160
2161## end   gnulib module symlinkat
2162
2163## begin gnulib module symlinkat-tests
2164
2165TESTS += test-symlinkat
2166check_PROGRAMS += test-symlinkat
2167test_symlinkat_LDADD = $(LDADD) @LIBINTL@
2168EXTRA_DIST += test-symlink.h test-symlinkat.c signature.h macros.h
2169
2170## end   gnulib module symlinkat-tests
2171
2172## begin gnulib module sys_ioctl
2173
2174BUILT_SOURCES += sys/ioctl.h
2175
2176# We need the following in order to create <sys/ioctl.h> when the system
2177# does not have a complete one.
2178sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
2179	$(AM_V_at)$(MKDIR_P) sys
2180	$(AM_V_GEN)rm -f $@-t $@ && \
2181	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2182	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2183	      -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
2184	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2185	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2186	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2187	      -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \
2188	      -e 's/@''GNULIB_IOCTL''@/$(GNULIB_IOCTL)/g' \
2189	      -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
2190	      -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
2191	      -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
2192	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2193	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2194	      < $(srcdir)/sys_ioctl.in.h; \
2195	} > $@-t && \
2196	mv $@-t $@
2197MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
2198MOSTLYCLEANDIRS += sys
2199
2200EXTRA_DIST += sys_ioctl.in.h
2201
2202## end   gnulib module sys_ioctl
2203
2204## begin gnulib module sys_ioctl-tests
2205
2206TESTS += test-sys_ioctl
2207check_PROGRAMS += test-sys_ioctl
2208EXTRA_DIST += test-sys_ioctl.c
2209
2210## end   gnulib module sys_ioctl-tests
2211
2212## begin gnulib module sys_select
2213
2214BUILT_SOURCES += sys/select.h
2215
2216# We need the following in order to create <sys/select.h> when the system
2217# doesn't have one that works with the given compiler.
2218sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
2219	$(AM_V_at)$(MKDIR_P) sys
2220	$(AM_V_GEN)rm -f $@-t $@ && \
2221	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2222	  sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2223	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2224	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2225	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2226	      -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
2227	      -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
2228	      -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
2229	      -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
2230	      -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
2231	      -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
2232	      -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
2233	      -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
2234	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2235	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2236	      < $(srcdir)/sys_select.in.h; \
2237	} > $@-t && \
2238	mv $@-t $@
2239MOSTLYCLEANFILES += sys/select.h sys/select.h-t
2240MOSTLYCLEANDIRS += sys
2241
2242EXTRA_DIST += sys_select.in.h
2243
2244## end   gnulib module sys_select
2245
2246## begin gnulib module sys_select-tests
2247
2248TESTS += test-sys_select
2249check_PROGRAMS += test-sys_select
2250EXTRA_DIST += test-sys_select.c signature.h
2251
2252## end   gnulib module sys_select-tests
2253
2254## begin gnulib module sys_socket-tests
2255
2256TESTS += test-sys_socket
2257check_PROGRAMS += test-sys_socket
2258EXTRA_DIST += test-sys_socket.c
2259
2260## end   gnulib module sys_socket-tests
2261
2262## begin gnulib module sys_stat-tests
2263
2264TESTS += test-sys_stat
2265check_PROGRAMS += test-sys_stat
2266EXTRA_DIST += test-sys_stat.c
2267
2268## end   gnulib module sys_stat-tests
2269
2270## begin gnulib module sys_time-tests
2271
2272TESTS += test-sys_time
2273check_PROGRAMS += test-sys_time
2274EXTRA_DIST += test-sys_time.c
2275
2276## end   gnulib module sys_time-tests
2277
2278## begin gnulib module sys_types-tests
2279
2280TESTS += test-sys_types
2281check_PROGRAMS += test-sys_types
2282EXTRA_DIST += test-sys_types.c
2283
2284## end   gnulib module sys_types-tests
2285
2286## begin gnulib module sys_uio-tests
2287
2288TESTS += test-sys_uio
2289check_PROGRAMS += test-sys_uio
2290EXTRA_DIST += test-sys_uio.c
2291
2292## end   gnulib module sys_uio-tests
2293
2294## begin gnulib module sys_utsname-tests
2295
2296TESTS += test-sys_utsname
2297check_PROGRAMS += test-sys_utsname
2298EXTRA_DIST += test-sys_utsname.c
2299
2300## end   gnulib module sys_utsname-tests
2301
2302## begin gnulib module sys_wait-tests
2303
2304TESTS += test-sys_wait
2305check_PROGRAMS += test-sys_wait
2306EXTRA_DIST += test-sys_wait.c test-sys_wait.h
2307
2308## end   gnulib module sys_wait-tests
2309
2310## begin gnulib module test-framework-sh-tests
2311
2312TESTS += test-init.sh
2313EXTRA_DIST += init.sh
2314EXTRA_DIST += test-init.sh
2315
2316## end   gnulib module test-framework-sh-tests
2317
2318## begin gnulib module thread
2319
2320libtests_a_SOURCES += glthread/thread.h glthread/thread.c
2321
2322## end   gnulib module thread
2323
2324## begin gnulib module thread-optim
2325
2326
2327EXTRA_DIST += thread-optim.h
2328
2329## end   gnulib module thread-optim
2330
2331## begin gnulib module thread-tests
2332
2333TESTS += test-thread_self test-thread_create
2334check_PROGRAMS += test-thread_self test-thread_create
2335test_thread_self_LDADD = $(LDADD) @LIBTHREAD@
2336test_thread_create_LDADD = $(LDADD) @LIBMULTITHREAD@
2337EXTRA_DIST += test-thread_self.c test-thread_create.c macros.h
2338
2339## end   gnulib module thread-tests
2340
2341## begin gnulib module time-tests
2342
2343TESTS += test-time
2344check_PROGRAMS += test-time
2345EXTRA_DIST += test-time.c
2346
2347## end   gnulib module time-tests
2348
2349## begin gnulib module timespec-add
2350
2351libtests_a_SOURCES += timespec-add.c
2352
2353## end   gnulib module timespec-add
2354
2355## begin gnulib module timespec-sub
2356
2357libtests_a_SOURCES += timespec-sub.c
2358
2359## end   gnulib module timespec-sub
2360
2361## begin gnulib module timespec-tests
2362
2363TESTS += test-timespec
2364check_PROGRAMS += test-timespec
2365EXTRA_DIST += test-timespec.c macros.h
2366
2367## end   gnulib module timespec-tests
2368
2369## begin gnulib module trunc-tests
2370
2371TESTS += test-trunc1 test-trunc2
2372check_PROGRAMS += test-trunc1 test-trunc2
2373test_trunc1_LDADD = $(LDADD) @TRUNC_LIBM@
2374test_trunc2_LDADD = $(LDADD) @TRUNC_LIBM@
2375EXTRA_DIST += test-trunc1.c test-trunc2.c minus-zero.h infinity.h nan.h signature.h macros.h
2376
2377## end   gnulib module trunc-tests
2378
2379## begin gnulib module uname-tests
2380
2381TESTS += test-uname
2382check_PROGRAMS += test-uname
2383test_uname_LDADD = $(LDADD) @GETHOSTNAME_LIB@
2384EXTRA_DIST += test-uname.c signature.h macros.h
2385
2386## end   gnulib module uname-tests
2387
2388## begin gnulib module unistd-safer-tests
2389
2390TESTS += test-dup-safer
2391check_PROGRAMS += test-dup-safer
2392EXTRA_DIST += test-dup-safer.c macros.h
2393
2394## end   gnulib module unistd-safer-tests
2395
2396## begin gnulib module unistd-tests
2397
2398TESTS += test-unistd
2399check_PROGRAMS += test-unistd
2400EXTRA_DIST += test-unistd.c
2401
2402## end   gnulib module unistd-tests
2403
2404## begin gnulib module uniwidth/width-tests
2405
2406TESTS += test-uc_width uniwidth/test-uc_width2.sh
2407check_PROGRAMS += test-uc_width test-uc_width2
2408test_uc_width_SOURCES = uniwidth/test-uc_width.c
2409test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING)
2410test_uc_width2_SOURCES = uniwidth/test-uc_width2.c
2411test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING)
2412EXTRA_DIST += uniwidth/test-uc_width.c uniwidth/test-uc_width2.c uniwidth/test-uc_width2.sh macros.h
2413
2414## end   gnulib module uniwidth/width-tests
2415
2416## begin gnulib module unlink-tests
2417
2418TESTS += test-unlink
2419check_PROGRAMS += test-unlink
2420EXTRA_DIST += test-unlink.h test-unlink.c signature.h macros.h
2421
2422## end   gnulib module unlink-tests
2423
2424## begin gnulib module unlinkat-tests
2425
2426TESTS += test-unlinkat
2427check_PROGRAMS += test-unlinkat
2428test_unlinkat_LDADD = $(LDADD) @LIBINTL@
2429EXTRA_DIST += test-unlinkat.c test-rmdir.h test-unlink.h signature.h macros.h
2430
2431## end   gnulib module unlinkat-tests
2432
2433## begin gnulib module unlinkdir
2434
2435libtests_a_SOURCES += unlinkdir.c
2436
2437EXTRA_DIST += unlinkdir.h
2438
2439## end   gnulib module unlinkdir
2440
2441## begin gnulib module unsetenv-tests
2442
2443TESTS += test-unsetenv
2444check_PROGRAMS += test-unsetenv
2445EXTRA_DIST += test-unsetenv.c signature.h macros.h
2446
2447## end   gnulib module unsetenv-tests
2448
2449## begin gnulib module update-copyright-tests
2450
2451TESTS += test-update-copyright.sh
2452TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
2453EXTRA_DIST += test-update-copyright.sh
2454
2455## end   gnulib module update-copyright-tests
2456
2457## begin gnulib module usleep
2458
2459
2460EXTRA_DIST += usleep.c
2461
2462EXTRA_libtests_a_SOURCES += usleep.c
2463
2464## end   gnulib module usleep
2465
2466## begin gnulib module usleep-tests
2467
2468TESTS += test-usleep
2469check_PROGRAMS += test-usleep
2470EXTRA_DIST += test-usleep.c signature.h macros.h
2471
2472## end   gnulib module usleep-tests
2473
2474## begin gnulib module vasnprintf-tests
2475
2476TESTS += test-vasnprintf
2477check_PROGRAMS += test-vasnprintf
2478
2479EXTRA_DIST += test-vasnprintf.c macros.h
2480
2481## end   gnulib module vasnprintf-tests
2482
2483## begin gnulib module vc-list-files-tests
2484
2485TESTS += test-vc-list-files-git.sh
2486TESTS += test-vc-list-files-cvs.sh
2487TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
2488EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh
2489
2490## end   gnulib module vc-list-files-tests
2491
2492## begin gnulib module verify-tests
2493
2494TESTS_ENVIRONMENT += MAKE='$(MAKE)'
2495TESTS += test-verify test-verify.sh
2496check_PROGRAMS += test-verify
2497# test-verify-try is never built, but test-verify.sh needs a rule to
2498# build test-verify-try.o.
2499EXTRA_PROGRAMS += test-verify-try
2500
2501# This test expects compilation of test-verify-try.c to fail, and
2502# each time it fails, the makefile rule does not perform the usual
2503#  "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
2504MOSTLYCLEANFILES += .deps/test-verify-try.Tpo
2505EXTRA_DIST += test-verify.c test-verify-try.c test-verify.sh
2506
2507## end   gnulib module verify-tests
2508
2509## begin gnulib module version-etc-tests
2510
2511TESTS += test-version-etc.sh
2512check_PROGRAMS += test-version-etc
2513test_version_etc_LDADD = $(LDADD) @LIBINTL@
2514EXTRA_DIST += test-version-etc.c test-version-etc.sh
2515
2516## end   gnulib module version-etc-tests
2517
2518## begin gnulib module wchar-tests
2519
2520TESTS += test-wchar
2521check_PROGRAMS += test-wchar
2522EXTRA_DIST += test-wchar.c
2523
2524## end   gnulib module wchar-tests
2525
2526## begin gnulib module wcrtomb-tests
2527
2528TESTS += \
2529  test-wcrtomb.sh \
2530  test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
2531  test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh test-wcrtomb-w32-6.sh \
2532  test-wcrtomb-w32-7.sh
2533TESTS_ENVIRONMENT += \
2534  LOCALE_FR='@LOCALE_FR@' \
2535  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
2536  LOCALE_JA='@LOCALE_JA@' \
2537  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
2538check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
2539test_wcrtomb_LDADD = $(LDADD) $(LIB_SETLOCALE)
2540EXTRA_DIST += test-wcrtomb.sh test-wcrtomb.c test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh test-wcrtomb-w32-6.sh test-wcrtomb-w32-7.sh test-wcrtomb-w32.c signature.h macros.h
2541
2542## end   gnulib module wcrtomb-tests
2543
2544## begin gnulib module wctob
2545
2546
2547EXTRA_DIST += wctob.c
2548
2549EXTRA_libtests_a_SOURCES += wctob.c
2550
2551## end   gnulib module wctob
2552
2553## begin gnulib module wctomb
2554
2555
2556EXTRA_DIST += wctomb-impl.h wctomb.c
2557
2558EXTRA_libtests_a_SOURCES += wctomb.c
2559
2560## end   gnulib module wctomb
2561
2562## begin gnulib module wctype-h-tests
2563
2564TESTS += test-wctype-h
2565check_PROGRAMS += test-wctype-h
2566EXTRA_DIST += test-wctype-h.c macros.h
2567
2568## end   gnulib module wctype-h-tests
2569
2570## begin gnulib module wcwidth-tests
2571
2572TESTS += test-wcwidth
2573check_PROGRAMS += test-wcwidth
2574test_wcwidth_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBUNISTRING)
2575EXTRA_DIST += test-wcwidth.c signature.h macros.h
2576
2577## end   gnulib module wcwidth-tests
2578
2579## begin gnulib module windows-thread
2580
2581
2582EXTRA_DIST += windows-thread.c windows-thread.h
2583
2584EXTRA_libtests_a_SOURCES += windows-thread.c
2585
2586## end   gnulib module windows-thread
2587
2588## begin gnulib module windows-tls
2589
2590
2591EXTRA_DIST += windows-tls.c windows-tls.h
2592
2593EXTRA_libtests_a_SOURCES += windows-tls.c
2594
2595## end   gnulib module windows-tls
2596
2597## begin gnulib module xalloc-die-tests
2598
2599TESTS += test-xalloc-die.sh
2600check_PROGRAMS += test-xalloc-die
2601test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
2602EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh
2603
2604## end   gnulib module xalloc-die-tests
2605
2606## begin gnulib module xstrtol-tests
2607
2608TESTS += test-xstrtol.sh
2609check_PROGRAMS += test-xstrtol test-xstrtoul
2610test_xstrtol_LDADD = $(LDADD) @LIBINTL@
2611test_xstrtoul_LDADD = $(LDADD) @LIBINTL@
2612EXTRA_DIST += test-xstrtol.c test-xstrtoul.c test-xstrtol.sh
2613
2614## end   gnulib module xstrtol-tests
2615
2616## begin gnulib module xstrtoumax-tests
2617
2618TESTS += test-xstrtoumax.sh
2619check_PROGRAMS += test-xstrtoumax
2620test_xstrtoumax_LDADD = $(LDADD) @LIBINTL@
2621EXTRA_DIST += test-xstrtoumax.c test-xstrtoumax.sh
2622
2623## end   gnulib module xstrtoumax-tests
2624
2625## begin gnulib module yesno-tests
2626
2627TESTS += test-yesno.sh
2628check_PROGRAMS += test-yesno
2629test_yesno_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
2630EXTRA_DIST += test-yesno.c test-yesno.sh
2631
2632## end   gnulib module yesno-tests
2633
2634## begin gnulib module yield
2635
2636libtests_a_SOURCES += glthread/yield.h
2637
2638## end   gnulib module yield
2639
2640# Clean up after Solaris cc.
2641clean-local:
2642	rm -rf SunWS_cache
2643
2644mostlyclean-local: mostlyclean-generic
2645	@for dir in '' $(MOSTLYCLEANDIRS); do \
2646	  if test -n "$$dir" && test -d $$dir; then \
2647	    echo "rmdir $$dir"; rmdir $$dir; \
2648	  fi; \
2649	done; \
2650	:
2651