Bump to m4 1.4.19
[platform/upstream/m4.git] / tests / gnulib.mk
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
25 AUTOMAKE_OPTIONS = 1.11 foreign subdir-objects
26
27 SUBDIRS = .
28 TESTS =
29 XFAIL_TESTS =
30 TESTS_ENVIRONMENT =
31 noinst_PROGRAMS =
32 check_PROGRAMS =
33 EXTRA_PROGRAMS =
34 noinst_HEADERS =
35 noinst_LIBRARIES =
36 check_LIBRARIES = libtests.a
37 EXTRA_DIST =
38 BUILT_SOURCES =
39 SUFFIXES =
40 MOSTLYCLEANFILES = core *.stackdump
41 MOSTLYCLEANDIRS =
42 CLEANFILES =
43 DISTCLEANFILES =
44 MAINTAINERCLEANFILES =
45
46 AM_CPPFLAGS = \
47   -D@M4tests_WITNESS@=1 \
48   -I. -I$(srcdir) \
49   -I.. -I$(srcdir)/.. \
50   -I../lib -I$(srcdir)/../lib
51
52 LDADD = libtests.a ../lib/libm4.a libtests.a ../lib/libm4.a libtests.a $(LIBTESTS_LIBDEPS)
53
54 libtests_a_SOURCES =
55 libtests_a_LIBADD = $(M4tests_LIBOBJS)
56 libtests_a_DEPENDENCIES = $(M4tests_LIBOBJS)
57 EXTRA_libtests_a_SOURCES =
58 AM_LIBTOOLFLAGS = --preserve-dup-deps
59
60 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
61
62 ## begin gnulib module accept
63
64
65 EXTRA_DIST += accept.c w32sock.h
66
67 EXTRA_libtests_a_SOURCES += accept.c
68
69 ## end   gnulib module accept
70
71 ## begin gnulib module accept-tests
72
73 TESTS += test-accept
74 check_PROGRAMS += test-accept
75 test_accept_LDADD = $(LDADD) @LIBSOCKET@
76 EXTRA_DIST += test-accept.c signature.h macros.h
77
78 ## end   gnulib module accept-tests
79
80 ## begin gnulib module access-tests
81
82 TESTS += test-access
83 check_PROGRAMS += test-access
84 EXTRA_DIST += test-access.c signature.h macros.h
85
86 ## end   gnulib module access-tests
87
88 ## begin gnulib module alignof-tests
89
90 TESTS += test-alignof
91 check_PROGRAMS += test-alignof
92
93 EXTRA_DIST += test-alignof.c
94
95 ## end   gnulib module alignof-tests
96
97 ## begin gnulib module alloca
98
99
100 libtests_a_LIBADD += @ALLOCA@
101 libtests_a_DEPENDENCIES += @ALLOCA@
102 EXTRA_DIST += alloca.c
103
104 EXTRA_libtests_a_SOURCES += alloca.c
105
106 ## end   gnulib module alloca
107
108 ## begin gnulib module alloca-opt-tests
109
110 TESTS += test-alloca-opt
111 check_PROGRAMS += test-alloca-opt
112
113 EXTRA_DIST += test-alloca-opt.c
114
115 ## end   gnulib module alloca-opt-tests
116
117 ## begin gnulib module arpa_inet
118
119 BUILT_SOURCES += arpa/inet.h
120
121 # We need the following in order to create <arpa/inet.h> when the system
122 # doesn't have one.
123 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
124         $(AM_V_at)$(MKDIR_P) arpa
125         $(AM_V_GEN)rm -f $@-t $@ && \
126         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
127           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
128               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
129               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
130               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
131               -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
132               -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
133               -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
134               -e 's/@''GNULIB_INET_NTOP''@/$(GL_M4_GNULIB_INET_NTOP)/g' \
135               -e 's/@''GNULIB_INET_PTON''@/$(GL_M4_GNULIB_INET_PTON)/g' \
136               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
137               -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
138               -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
139               -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
140               -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
141               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
142               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
143               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
144               < $(srcdir)/arpa_inet.in.h; \
145         } > $@-t && \
146         mv $@-t $@
147 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
148 MOSTLYCLEANDIRS += arpa
149
150 EXTRA_DIST += arpa_inet.in.h
151
152 ## end   gnulib module arpa_inet
153
154 ## begin gnulib module arpa_inet-c++-tests
155
156 if ANSICXX
157 TESTS += test-arpa_inet-c++
158 check_PROGRAMS += test-arpa_inet-c++
159 test_arpa_inet_c___SOURCES = test-arpa_inet-c++.cc
160 test_arpa_inet_c___LDADD = $(LDADD) $(INET_NTOP_LIB) $(INET_PTON_LIB) $(LIBSOCKET)
161 endif
162 EXTRA_DIST += test-arpa_inet-c++.cc signature.h
163
164 ## end   gnulib module arpa_inet-c++-tests
165
166 ## begin gnulib module arpa_inet-tests
167
168 TESTS += test-arpa_inet
169 check_PROGRAMS += test-arpa_inet
170 EXTRA_DIST += test-arpa_inet.c
171
172 ## end   gnulib module arpa_inet-tests
173
174 ## begin gnulib module array-list
175
176 libtests_a_SOURCES += gl_array_list.h gl_array_list.c
177
178 ## end   gnulib module array-list
179
180 ## begin gnulib module array-list-tests
181
182 TESTS += test-array_list
183 check_PROGRAMS += test-array_list
184
185 EXTRA_DIST += test-array_list.c macros.h
186
187 ## end   gnulib module array-list-tests
188
189 ## begin gnulib module array-oset
190
191 libtests_a_SOURCES += gl_array_oset.h gl_array_oset.c
192
193 ## end   gnulib module array-oset
194
195 ## begin gnulib module array-oset-tests
196
197 TESTS += test-array_oset
198 check_PROGRAMS += test-array_oset
199 test_array_oset_LDADD = $(LDADD) @LIBINTL@
200
201 EXTRA_DIST += test-array_oset.c test-oset-update.h macros.h
202
203 ## end   gnulib module array-oset-tests
204
205 ## begin gnulib module asyncsafe-spin-tests
206
207 TESTS += test-asyncsafe-spin1 test-asyncsafe-spin2
208 check_PROGRAMS += test-asyncsafe-spin1 test-asyncsafe-spin2
209 test_asyncsafe_spin2_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@ @LIB_SEMAPHORE@
210 EXTRA_DIST += test-asyncsafe-spin1.c test-asyncsafe-spin2.c atomic-int-gnulib.h
211
212 ## end   gnulib module asyncsafe-spin-tests
213
214 ## begin gnulib module avltree-oset-tests
215
216 TESTS += test-avltree_oset
217 check_PROGRAMS += test-avltree_oset
218 EXTRA_DIST += test-avltree_oset.c test-oset-update.h macros.h
219
220 ## end   gnulib module avltree-oset-tests
221
222 ## begin gnulib module binary-io-tests
223
224 TESTS += test-binary-io.sh
225 check_PROGRAMS += test-binary-io
226
227 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
228
229 ## end   gnulib module binary-io-tests
230
231 ## begin gnulib module bind
232
233
234 EXTRA_DIST += bind.c w32sock.h
235
236 EXTRA_libtests_a_SOURCES += bind.c
237
238 ## end   gnulib module bind
239
240 ## begin gnulib module bind-tests
241
242 TESTS += test-bind
243 check_PROGRAMS += test-bind
244 test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
245 EXTRA_DIST += test-bind.c signature.h macros.h
246
247 ## end   gnulib module bind-tests
248
249 ## begin gnulib module bitrotate-tests
250
251 TESTS += test-bitrotate
252 check_PROGRAMS += test-bitrotate
253 EXTRA_DIST += test-bitrotate.c macros.h
254
255 ## end   gnulib module bitrotate-tests
256
257 ## begin gnulib module btowc-tests
258
259 TESTS += test-btowc1.sh test-btowc2.sh
260 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
261 check_PROGRAMS += test-btowc
262 test_btowc_LDADD = $(LDADD) $(LIB_SETLOCALE)
263 EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
264
265 ## end   gnulib module btowc-tests
266
267 ## begin gnulib module c-ctype-tests
268
269 TESTS += test-c-ctype
270 check_PROGRAMS += test-c-ctype
271 test_c_ctype_LDADD = $(LDADD) $(LIB_SETLOCALE)
272 EXTRA_DIST += test-c-ctype.c macros.h
273
274 ## end   gnulib module c-ctype-tests
275
276 ## begin gnulib module c-stack-tests
277
278 TESTS += test-c-stack.sh test-c-stack2.sh
279 TESTS_ENVIRONMENT += LIBSIGSEGV='@LIBSIGSEGV@'
280 check_PROGRAMS += test-c-stack
281 test_c_stack_LDADD = $(LDADD) $(LIBCSTACK) @LIBINTL@
282 MOSTLYCLEANFILES += t-c-stack.tmp t-c-stack2.tmp
283 EXTRA_DIST += test-c-stack.c test-c-stack.sh test-c-stack2.sh macros.h
284
285 ## end   gnulib module c-stack-tests
286
287 ## begin gnulib module c-strcase-tests
288
289 TESTS += test-c-strcase.sh
290 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
291 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
292 test_c_strcasecmp_LDADD = $(LDADD) $(LIB_SETLOCALE)
293 test_c_strncasecmp_LDADD = $(LDADD) $(LIB_SETLOCALE)
294 EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
295
296 ## end   gnulib module c-strcase-tests
297
298 ## begin gnulib module calloc-gnu-tests
299
300 TESTS += test-calloc-gnu
301 check_PROGRAMS += test-calloc-gnu
302 EXTRA_DIST += test-calloc-gnu.c macros.h
303
304 ## end   gnulib module calloc-gnu-tests
305
306 ## begin gnulib module canonicalize-lgpl-tests
307
308 TESTS += test-canonicalize-lgpl
309 check_PROGRAMS += test-canonicalize-lgpl
310 test_canonicalize_lgpl_LDADD = $(LDADD) $(LIBINTL)
311 EXTRA_DIST += test-canonicalize-lgpl.c signature.h null-ptr.h macros.h
312
313 ## end   gnulib module canonicalize-lgpl-tests
314
315 ## begin gnulib module canonicalize-tests
316
317 TESTS += test-canonicalize
318 check_PROGRAMS += test-canonicalize
319 test_canonicalize_LDADD = $(LDADD) @LIBINTL@
320 EXTRA_DIST += test-canonicalize.c null-ptr.h macros.h
321
322 ## end   gnulib module canonicalize-tests
323
324 ## begin gnulib module chdir-tests
325
326 TESTS += test-chdir
327 check_PROGRAMS += test-chdir
328 EXTRA_DIST += test-chdir.c signature.h macros.h
329
330 ## end   gnulib module chdir-tests
331
332 ## begin gnulib module cloexec-tests
333
334 TESTS += test-cloexec
335 check_PROGRAMS += test-cloexec
336 EXTRA_DIST += test-cloexec.c macros.h
337
338 ## end   gnulib module cloexec-tests
339
340 ## begin gnulib module close-tests
341
342 TESTS += test-close
343 check_PROGRAMS += test-close
344 EXTRA_DIST += test-close.c signature.h macros.h
345
346 ## end   gnulib module close-tests
347
348 ## begin gnulib module closein-tests
349
350 TESTS += test-closein.sh
351 check_PROGRAMS += test-closein
352 test_closein_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
353 EXTRA_DIST += test-closein.sh test-closein.c
354
355 ## end   gnulib module closein-tests
356
357 ## begin gnulib module connect
358
359
360 EXTRA_DIST += connect.c w32sock.h
361
362 EXTRA_libtests_a_SOURCES += connect.c
363
364 ## end   gnulib module connect
365
366 ## begin gnulib module connect-tests
367
368 TESTS += test-connect
369 check_PROGRAMS += test-connect
370 test_connect_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
371 EXTRA_DIST += test-connect.c signature.h macros.h
372
373 ## end   gnulib module connect-tests
374
375 ## begin gnulib module creat
376
377
378 EXTRA_DIST += creat.c
379
380 EXTRA_libtests_a_SOURCES += creat.c
381
382 ## end   gnulib module creat
383
384 ## begin gnulib module creat-tests
385
386 TESTS += test-creat
387 check_PROGRAMS += test-creat
388 EXTRA_DIST += test-creat.c signature.h macros.h
389
390 ## end   gnulib module creat-tests
391
392 ## begin gnulib module ctype
393
394 BUILT_SOURCES += ctype.h
395
396 # We need the following in order to create <ctype.h> when the system
397 # doesn't have one that works with the given compiler.
398 ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
399         $(AM_V_GEN)rm -f $@-t $@ && \
400         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
401           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
402               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
403               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
404               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
405               -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
406               -e 's/@''GNULIB_ISBLANK''@/$(GL_M4_GNULIB_ISBLANK)/g' \
407               -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
408               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
409               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
410               < $(srcdir)/ctype.in.h; \
411         } > $@-t && \
412         mv $@-t $@
413 MOSTLYCLEANFILES += ctype.h ctype.h-t
414
415 EXTRA_DIST += ctype.in.h
416
417 ## end   gnulib module ctype
418
419 ## begin gnulib module ctype-c++-tests
420
421 if ANSICXX
422 TESTS += test-ctype-c++
423 check_PROGRAMS += test-ctype-c++
424 test_ctype_c___SOURCES = test-ctype-c++.cc test-ctype-c++2.cc
425 endif
426 EXTRA_DIST += test-ctype-c++.cc test-ctype-c++2.cc signature.h
427
428 ## end   gnulib module ctype-c++-tests
429
430 ## begin gnulib module ctype-tests
431
432 TESTS += test-ctype
433 check_PROGRAMS += test-ctype
434 EXTRA_DIST += test-ctype.c
435
436 ## end   gnulib module ctype-tests
437
438 ## begin gnulib module dirent-c++-tests
439
440 if ANSICXX
441 TESTS += test-dirent-c++
442 check_PROGRAMS += test-dirent-c++
443 test_dirent_c___SOURCES = test-dirent-c++.cc
444 test_dirent_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
445 endif
446 EXTRA_DIST += test-dirent-c++.cc signature.h
447
448 ## end   gnulib module dirent-c++-tests
449
450 ## begin gnulib module dirent-tests
451
452 TESTS += test-dirent
453 check_PROGRAMS += test-dirent
454 EXTRA_DIST += test-dirent.c
455
456 ## end   gnulib module dirent-tests
457
458 ## begin gnulib module dirname-tests
459
460 TESTS += test-dirname
461 check_PROGRAMS += test-dirname
462 test_dirname_LDADD = $(LDADD) @LIBINTL@
463 EXTRA_DIST += test-dirname.c
464
465 ## end   gnulib module dirname-tests
466
467 ## begin gnulib module dup-tests
468
469 TESTS += test-dup
470 check_PROGRAMS += test-dup
471 EXTRA_DIST += test-dup.c signature.h macros.h
472
473 ## end   gnulib module dup-tests
474
475 ## begin gnulib module dup2-tests
476
477 TESTS += test-dup2
478 check_PROGRAMS += test-dup2
479 EXTRA_DIST += test-dup2.c signature.h macros.h
480
481 ## end   gnulib module dup2-tests
482
483 ## begin gnulib module dynarray-tests
484
485 TESTS += test-dynarray
486 check_PROGRAMS += test-dynarray
487 EXTRA_DIST += test-dynarray.c macros.h
488
489 ## end   gnulib module dynarray-tests
490
491 ## begin gnulib module environ-tests
492
493 TESTS += test-environ
494 check_PROGRAMS += test-environ
495
496 EXTRA_DIST += test-environ.c
497
498 ## end   gnulib module environ-tests
499
500 ## begin gnulib module errno-c++-tests
501
502 if ANSICXX
503 TESTS += test-errno-c++
504 check_PROGRAMS += test-errno-c++
505 test_errno_c___SOURCES = test-errno-c++.cc test-errno-c++2.cc
506 endif
507 EXTRA_DIST += test-errno-c++.cc test-errno-c++2.cc
508
509 ## end   gnulib module errno-c++-tests
510
511 ## begin gnulib module errno-tests
512
513 TESTS += test-errno
514 check_PROGRAMS += test-errno
515
516 EXTRA_DIST += test-errno.c
517
518 ## end   gnulib module errno-tests
519
520 ## begin gnulib module execute-tests
521
522 TESTS += test-execute.sh
523 check_PROGRAMS += test-execute-main test-execute-child
524 test_execute_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
525 # The test-execute-child program must be a real executable, not a libtool
526 # wrapper script, and should link against as few libraries as possible.
527 # Therefore don't link it against any libraries other than -lc.
528 test_execute_child_LDADD =
529
530 TESTS += test-execute-script
531 check_PROGRAMS += test-execute-script
532 test_execute_script_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
533 test_execute_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"
534 EXTRA_DIST += test-execute.sh test-execute-main.c test-execute-child.c test-execute-script.c executable-script executable-script.sh executable-shell-script macros.h
535
536 ## end   gnulib module execute-tests
537
538 ## begin gnulib module explicit_bzero
539
540
541 EXTRA_DIST += explicit_bzero.c
542
543 EXTRA_libtests_a_SOURCES += explicit_bzero.c
544
545 ## end   gnulib module explicit_bzero
546
547 ## begin gnulib module explicit_bzero-tests
548
549 TESTS += test-explicit_bzero
550 check_PROGRAMS += test-explicit_bzero
551 EXTRA_DIST += test-explicit_bzero.c signature.h macros.h
552
553 ## end   gnulib module explicit_bzero-tests
554
555 ## begin gnulib module fchdir-tests
556
557 TESTS += test-fchdir
558 check_PROGRAMS += test-fchdir
559 test_fchdir_LDADD = $(LDADD) $(LIBINTL)
560 EXTRA_DIST += test-fchdir.c signature.h macros.h
561
562 ## end   gnulib module fchdir-tests
563
564 ## begin gnulib module fclose-tests
565
566 TESTS += test-fclose
567 check_PROGRAMS += test-fclose
568 EXTRA_DIST += test-fclose.c
569
570 ## end   gnulib module fclose-tests
571
572 ## begin gnulib module fcntl-h-c++-tests
573
574 if ANSICXX
575 TESTS += test-fcntl-h-c++
576 check_PROGRAMS += test-fcntl-h-c++
577 test_fcntl_h_c___SOURCES = test-fcntl-h-c++.cc
578 test_fcntl_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
579 endif
580 EXTRA_DIST += test-fcntl-h-c++.cc signature.h
581
582 ## end   gnulib module fcntl-h-c++-tests
583
584 ## begin gnulib module fcntl-h-tests
585
586 TESTS += test-fcntl-h
587 check_PROGRAMS += test-fcntl-h
588 EXTRA_DIST += test-fcntl-h.c
589
590 ## end   gnulib module fcntl-h-tests
591
592 ## begin gnulib module fcntl-tests
593
594 TESTS += test-fcntl
595 check_PROGRAMS += test-fcntl
596 EXTRA_DIST += test-fcntl.c signature.h macros.h
597
598 ## end   gnulib module fcntl-tests
599
600 ## begin gnulib module fdopen
601
602
603 EXTRA_DIST += fdopen.c
604
605 EXTRA_libtests_a_SOURCES += fdopen.c
606
607 ## end   gnulib module fdopen
608
609 ## begin gnulib module fdopen-tests
610
611 TESTS += test-fdopen
612 check_PROGRAMS += test-fdopen
613 EXTRA_DIST += test-fdopen.c signature.h macros.h
614
615 ## end   gnulib module fdopen-tests
616
617 ## begin gnulib module fdopendir-tests
618
619 TESTS += test-fdopendir
620 check_PROGRAMS += test-fdopendir
621 test_fdopendir_LDADD = $(LDADD) @LIBINTL@
622 EXTRA_DIST += test-fdopendir.c signature.h macros.h
623
624 ## end   gnulib module fdopendir-tests
625
626 ## begin gnulib module fflush-tests
627
628 TESTS += test-fflush test-fflush2.sh
629 check_PROGRAMS += test-fflush test-fflush2
630 MOSTLYCLEANFILES += test-fflush.txt
631 EXTRA_DIST += test-fflush.c test-fflush2.sh test-fflush2.c signature.h macros.h
632
633 ## end   gnulib module fflush-tests
634
635 ## begin gnulib module fgetc-tests
636
637 TESTS += test-fgetc
638 check_PROGRAMS += test-fgetc
639 EXTRA_DIST += test-fgetc.c signature.h macros.h
640
641 ## end   gnulib module fgetc-tests
642
643 ## begin gnulib module filenamecat-tests
644
645 TESTS += test-filenamecat
646 check_PROGRAMS += test-filenamecat
647 test_filenamecat_LDADD = $(LDADD) @LIBINTL@
648 EXTRA_DIST += test-filenamecat.c
649
650 ## end   gnulib module filenamecat-tests
651
652 ## begin gnulib module findprog
653
654 libtests_a_SOURCES += findprog.h findprog.c
655
656 ## end   gnulib module findprog
657
658 ## begin gnulib module float-c++-tests
659
660 if ANSICXX
661 TESTS += test-float-c++
662 check_PROGRAMS += test-float-c++
663 test_float_c___SOURCES = test-float-c++.cc test-float-c++2.cc
664 endif
665 EXTRA_DIST += test-float-c++.cc test-float-c++2.cc
666
667 ## end   gnulib module float-c++-tests
668
669 ## begin gnulib module float-tests
670
671 TESTS += test-float
672 check_PROGRAMS += test-float
673 EXTRA_DIST += test-float.c macros.h
674
675 ## end   gnulib module float-tests
676
677 ## begin gnulib module fopen-gnu-tests
678
679 TESTS += test-fopen-gnu
680 check_PROGRAMS += test-fopen-gnu
681 EXTRA_DIST += test-fopen-gnu.c macros.h
682
683 ## end   gnulib module fopen-gnu-tests
684
685 ## begin gnulib module fopen-safer-tests
686
687 TESTS += test-fopen-safer
688 check_PROGRAMS += test-fopen-safer
689 EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
690
691 ## end   gnulib module fopen-safer-tests
692
693 ## begin gnulib module fopen-tests
694
695 TESTS += test-fopen
696 check_PROGRAMS += test-fopen
697
698 EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
699
700 ## end   gnulib module fopen-tests
701
702 ## begin gnulib module fpending-tests
703
704 TESTS += test-fpending.sh
705 check_PROGRAMS += test-fpending
706 MOSTLYCLEANFILES += test-fpending.t
707 EXTRA_DIST += test-fpending.c test-fpending.sh macros.h
708
709 ## end   gnulib module fpending-tests
710
711 ## begin gnulib module fpurge-tests
712
713 TESTS += test-fpurge
714 check_PROGRAMS += test-fpurge
715 MOSTLYCLEANFILES += t-fpurge.tmp
716 EXTRA_DIST += test-fpurge.c macros.h
717
718 ## end   gnulib module fpurge-tests
719
720 ## begin gnulib module fputc-tests
721
722 TESTS += test-fputc
723 check_PROGRAMS += test-fputc
724 EXTRA_DIST += test-fputc.c signature.h macros.h
725
726 ## end   gnulib module fputc-tests
727
728 ## begin gnulib module fread-tests
729
730 TESTS += test-fread
731 check_PROGRAMS += test-fread
732 EXTRA_DIST += test-fread.c signature.h macros.h
733
734 ## end   gnulib module fread-tests
735
736 ## begin gnulib module freadahead-tests
737
738 TESTS += test-freadahead.sh
739 check_PROGRAMS += test-freadahead
740 EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
741
742 ## end   gnulib module freadahead-tests
743
744 ## begin gnulib module freading-tests
745
746 TESTS += test-freading
747 check_PROGRAMS += test-freading
748 MOSTLYCLEANFILES += t-freading.tmp
749 EXTRA_DIST += test-freading.c macros.h
750
751 ## end   gnulib module freading-tests
752
753 ## begin gnulib module free-posix-tests
754
755 TESTS += test-free
756 check_PROGRAMS += test-free
757 EXTRA_DIST += test-free.c macros.h
758
759 ## end   gnulib module free-posix-tests
760
761 ## begin gnulib module freopen
762
763
764 EXTRA_DIST += freopen.c
765
766 EXTRA_libtests_a_SOURCES += freopen.c
767
768 ## end   gnulib module freopen
769
770 ## begin gnulib module freopen-tests
771
772 TESTS += test-freopen
773 check_PROGRAMS += test-freopen
774
775 EXTRA_DIST += test-freopen.c signature.h macros.h
776
777 ## end   gnulib module freopen-tests
778
779 ## begin gnulib module frexp-nolibm-tests
780
781 TESTS += test-frexp-nolibm
782 check_PROGRAMS += test-frexp-nolibm
783 test_frexp_nolibm_SOURCES = test-frexp.c randomd.c
784 EXTRA_DIST += test-frexp.c test-frexp.h minus-zero.h infinity.h nan.h signature.h macros.h randomd.c
785
786 ## end   gnulib module frexp-nolibm-tests
787
788 ## begin gnulib module frexpl-nolibm-tests
789
790 TESTS += test-frexpl-nolibm
791 check_PROGRAMS += test-frexpl-nolibm
792 test_frexpl_nolibm_SOURCES = test-frexpl.c randoml.c
793 EXTRA_DIST += test-frexpl.c test-frexp.h minus-zero.h infinity.h nan.h signature.h macros.h randoml.c
794
795 ## end   gnulib module frexpl-nolibm-tests
796
797 ## begin gnulib module fseek-tests
798
799 TESTS += test-fseek.sh test-fseek2.sh
800 check_PROGRAMS += test-fseek
801 EXTRA_DIST += test-fseek.c test-fseek.sh test-fseek2.sh signature.h macros.h
802
803 ## end   gnulib module fseek-tests
804
805 ## begin gnulib module fseeko-tests
806
807 TESTS += test-fseeko.sh test-fseeko2.sh test-fseeko3.sh test-fseeko4.sh
808 check_PROGRAMS += test-fseeko test-fseeko3 test-fseeko4
809 EXTRA_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
810
811 ## end   gnulib module fseeko-tests
812
813 ## begin gnulib module fstat-tests
814
815 TESTS += test-fstat
816 check_PROGRAMS += test-fstat
817 EXTRA_DIST += test-fstat.c signature.h macros.h
818
819 ## end   gnulib module fstat-tests
820
821 ## begin gnulib module fstatat-tests
822
823 TESTS += test-fstatat
824 check_PROGRAMS += test-fstatat
825 test_fstatat_LDADD = $(LDADD) @LIBINTL@
826 EXTRA_DIST += test-fstatat.c test-lstat.h test-stat.h signature.h macros.h
827
828 ## end   gnulib module fstatat-tests
829
830 ## begin gnulib module ftell-tests
831
832 TESTS += test-ftell.sh test-ftell2.sh test-ftell3
833 check_PROGRAMS += test-ftell test-ftell3
834 MOSTLYCLEANFILES += t-ftell3.tmp
835 EXTRA_DIST += test-ftell.c test-ftell.sh test-ftell2.sh test-ftell3.c signature.h macros.h
836
837 ## end   gnulib module ftell-tests
838
839 ## begin gnulib module ftello-tests
840
841 TESTS += test-ftello.sh test-ftello2.sh test-ftello3 test-ftello4.sh
842 check_PROGRAMS += test-ftello test-ftello3 test-ftello4
843 MOSTLYCLEANFILES += t-ftello3.tmp
844 EXTRA_DIST += test-ftello.c test-ftello.sh test-ftello2.sh test-ftello3.c test-ftello4.c test-ftello4.sh signature.h macros.h
845
846 ## end   gnulib module ftello-tests
847
848 ## begin gnulib module ftruncate
849
850
851 EXTRA_DIST += ftruncate.c
852
853 EXTRA_libtests_a_SOURCES += ftruncate.c
854
855 ## end   gnulib module ftruncate
856
857 ## begin gnulib module ftruncate-tests
858
859 TESTS += test-ftruncate.sh
860 check_PROGRAMS += test-ftruncate
861 EXTRA_DIST += test-ftruncate.c test-ftruncate.sh signature.h macros.h
862
863 ## end   gnulib module ftruncate-tests
864
865 ## begin gnulib module fwrite-tests
866
867 TESTS += test-fwrite
868 check_PROGRAMS += test-fwrite
869 EXTRA_DIST += test-fwrite.c signature.h macros.h
870
871 ## end   gnulib module fwrite-tests
872
873 ## begin gnulib module getcwd-lgpl-tests
874
875 TESTS += test-getcwd-lgpl
876 check_PROGRAMS += test-getcwd-lgpl
877 test_getcwd_lgpl_LDADD = $(LDADD) $(LIBINTL)
878 EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
879
880 ## end   gnulib module getcwd-lgpl-tests
881
882 ## begin gnulib module getcwd-tests
883
884 TESTS += test-getcwd.sh
885 check_PROGRAMS += test-getcwd
886 test_getcwd_LDADD = $(LDADD) @LIBINTL@
887 EXTRA_DIST += test-getcwd.c test-getcwd.sh
888
889 ## end   gnulib module getcwd-tests
890
891 ## begin gnulib module getdtablesize-tests
892
893 TESTS += test-getdtablesize
894 check_PROGRAMS += test-getdtablesize
895 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
896
897 ## end   gnulib module getdtablesize-tests
898
899 ## begin gnulib module getopt-gnu-tests
900
901 TESTS += test-getopt-gnu
902 check_PROGRAMS += test-getopt-gnu
903 test_getopt_gnu_LDADD = $(LDADD) $(LIBINTL)
904 EXTRA_DIST += macros.h signature.h test-getopt-gnu.c test-getopt-main.h test-getopt.h test-getopt_long.h
905
906 ## end   gnulib module getopt-gnu-tests
907
908 ## begin gnulib module getprogname-tests
909
910 DEFS += -DEXEEXT=\"@EXEEXT@\"
911 TESTS += test-getprogname
912 check_PROGRAMS += test-getprogname
913 test_getprogname_LDADD = $(LDADD)
914 EXTRA_DIST += test-getprogname.c
915
916 ## end   gnulib module getprogname-tests
917
918 ## begin gnulib module getrandom-tests
919
920 TESTS += test-getrandom
921 check_PROGRAMS += test-getrandom
922 test_getrandom_LDADD = $(LDADD) @LIB_GETRANDOM@
923 EXTRA_DIST += test-getrandom.c signature.h macros.h
924
925 ## end   gnulib module getrandom-tests
926
927 ## begin gnulib module gettimeofday
928
929
930 EXTRA_DIST += gettimeofday.c
931
932 EXTRA_libtests_a_SOURCES += gettimeofday.c
933
934 ## end   gnulib module gettimeofday
935
936 ## begin gnulib module gettimeofday-tests
937
938 TESTS += test-gettimeofday
939 check_PROGRAMS += test-gettimeofday
940
941 EXTRA_DIST += signature.h test-gettimeofday.c
942
943 ## end   gnulib module gettimeofday-tests
944
945 ## begin gnulib module gperf
946
947 GPERF = gperf
948 V_GPERF = $(V_GPERF_@AM_V@)
949 V_GPERF_ = $(V_GPERF_@AM_DEFAULT_V@)
950 V_GPERF_0 = @echo "  GPERF   " $@;
951
952 ## end   gnulib module gperf
953
954 ## begin gnulib module hard-locale-tests
955
956 TESTS += test-hard-locale
957 check_PROGRAMS += test-hard-locale
958 test_hard_locale_LDADD = $(LDADD) $(LIB_SETLOCALE) @LIB_HARD_LOCALE@
959 # We cannot call this program 'locale', because the C++ compiler on Mac OS X
960 # would then barf upon '#include <locale>'. So, call it 'current-locale'.
961 noinst_PROGRAMS += current-locale
962 current_locale_SOURCES = locale.c
963 EXTRA_DIST += test-hard-locale.c locale.c
964
965 ## end   gnulib module hard-locale-tests
966
967 ## begin gnulib module hash-tests
968
969 TESTS += test-hash
970 check_PROGRAMS += test-hash
971 EXTRA_DIST += test-hash.c macros.h
972
973 ## end   gnulib module hash-tests
974
975 ## begin gnulib module iconv-h-c++-tests
976
977 if ANSICXX
978 TESTS += test-iconv-h-c++
979 check_PROGRAMS += test-iconv-h-c++
980 test_iconv_h_c___SOURCES = test-iconv-h-c++.cc
981 test_iconv_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIBICONV) $(LIB_NANOSLEEP)
982 endif
983 EXTRA_DIST += test-iconv-h-c++.cc signature.h
984
985 ## end   gnulib module iconv-h-c++-tests
986
987 ## begin gnulib module iconv-h-tests
988
989 TESTS += test-iconv-h
990 check_PROGRAMS += test-iconv-h
991 EXTRA_DIST += test-iconv-h.c
992
993 ## end   gnulib module iconv-h-tests
994
995 ## begin gnulib module iconv-tests
996
997 TESTS += test-iconv
998 check_PROGRAMS += test-iconv
999 test_iconv_LDADD = $(LDADD) @LIBICONV@
1000
1001 EXTRA_DIST += test-iconv.c signature.h macros.h
1002
1003 ## end   gnulib module iconv-tests
1004
1005 ## begin gnulib module ignore-value-tests
1006
1007 TESTS += test-ignore-value
1008 check_PROGRAMS += test-ignore-value
1009 EXTRA_DIST += test-ignore-value.c
1010
1011 ## end   gnulib module ignore-value-tests
1012
1013 ## begin gnulib module inet_pton
1014
1015
1016 EXTRA_DIST += inet_pton.c
1017
1018 EXTRA_libtests_a_SOURCES += inet_pton.c
1019
1020 ## end   gnulib module inet_pton
1021
1022 ## begin gnulib module inet_pton-tests
1023
1024 TESTS += test-inet_pton
1025 check_PROGRAMS += test-inet_pton
1026 test_inet_pton_LDADD = $(LDADD) @INET_PTON_LIB@
1027 EXTRA_DIST += test-inet_pton.c signature.h macros.h
1028
1029 ## end   gnulib module inet_pton-tests
1030
1031 ## begin gnulib module intprops-tests
1032
1033 TESTS += test-intprops
1034 check_PROGRAMS += test-intprops
1035 EXTRA_DIST += test-intprops.c macros.h
1036
1037 ## end   gnulib module intprops-tests
1038
1039 ## begin gnulib module inttostr
1040
1041 libtests_a_SOURCES +=    imaxtostr.c    inttostr.c    offtostr.c    uinttostr.c    umaxtostr.c
1042
1043 EXTRA_DIST += anytostr.c inttostr.h
1044
1045 EXTRA_libtests_a_SOURCES += anytostr.c
1046
1047 ## end   gnulib module inttostr
1048
1049 ## begin gnulib module inttostr-tests
1050
1051 TESTS += test-inttostr
1052 check_PROGRAMS += test-inttostr
1053 EXTRA_DIST += macros.h test-inttostr.c
1054
1055 ## end   gnulib module inttostr-tests
1056
1057 ## begin gnulib module inttypes-c++-tests
1058
1059 if ANSICXX
1060 TESTS += test-inttypes-c++
1061 check_PROGRAMS += test-inttypes-c++
1062 test_inttypes_c___SOURCES = test-inttypes-c++.cc test-inttypes-c++2.cc
1063 endif
1064 EXTRA_DIST += test-inttypes-c++.cc test-inttypes-c++2.cc signature.h
1065
1066 ## end   gnulib module inttypes-c++-tests
1067
1068 ## begin gnulib module inttypes-tests
1069
1070 TESTS += test-inttypes
1071 check_PROGRAMS += test-inttypes
1072 EXTRA_DIST += test-inttypes.c
1073
1074 ## end   gnulib module inttypes-tests
1075
1076 ## begin gnulib module ioctl
1077
1078
1079 EXTRA_DIST += ioctl.c w32sock.h
1080
1081 EXTRA_libtests_a_SOURCES += ioctl.c
1082
1083 ## end   gnulib module ioctl
1084
1085 ## begin gnulib module ioctl-tests
1086
1087 TESTS += test-ioctl
1088 check_PROGRAMS += test-ioctl
1089 EXTRA_DIST += test-ioctl.c signature.h macros.h
1090
1091 ## end   gnulib module ioctl-tests
1092
1093 ## begin gnulib module isblank
1094
1095
1096 EXTRA_DIST += isblank.c
1097
1098 EXTRA_libtests_a_SOURCES += isblank.c
1099
1100 ## end   gnulib module isblank
1101
1102 ## begin gnulib module isblank-tests
1103
1104 TESTS += test-isblank
1105 check_PROGRAMS += test-isblank
1106 EXTRA_DIST += test-isblank.c signature.h macros.h
1107
1108 ## end   gnulib module isblank-tests
1109
1110 ## begin gnulib module isnand-nolibm-tests
1111
1112 TESTS += test-isnand-nolibm
1113 check_PROGRAMS += test-isnand-nolibm
1114
1115 EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h infinity.h nan.h macros.h
1116
1117 ## end   gnulib module isnand-nolibm-tests
1118
1119 ## begin gnulib module isnanf-nolibm-tests
1120
1121 TESTS += test-isnanf-nolibm
1122 check_PROGRAMS += test-isnanf-nolibm
1123
1124 EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h infinity.h nan.h macros.h
1125
1126 ## end   gnulib module isnanf-nolibm-tests
1127
1128 ## begin gnulib module isnanl-nolibm-tests
1129
1130 TESTS += test-isnanl-nolibm
1131 check_PROGRAMS += test-isnanl-nolibm
1132
1133 EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h infinity.h nan.h macros.h
1134
1135 ## end   gnulib module isnanl-nolibm-tests
1136
1137 ## begin gnulib module iswblank-tests
1138
1139 TESTS += test-iswblank
1140 check_PROGRAMS += test-iswblank
1141 EXTRA_DIST += test-iswblank.c macros.h
1142
1143 ## end   gnulib module iswblank-tests
1144
1145 ## begin gnulib module iswdigit-tests
1146
1147 TESTS += test-iswdigit.sh
1148 TESTS_ENVIRONMENT += \
1149   LOCALE_FR='@LOCALE_FR@' \
1150   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1151   LOCALE_JA='@LOCALE_JA@' \
1152   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1153 check_PROGRAMS += test-iswdigit
1154 test_iswdigit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1155 EXTRA_DIST += test-iswdigit.sh test-iswdigit.c signature.h macros.h
1156
1157 ## end   gnulib module iswdigit-tests
1158
1159 ## begin gnulib module iswxdigit-tests
1160
1161 TESTS += test-iswxdigit.sh
1162 TESTS_ENVIRONMENT += \
1163   LOCALE_FR='@LOCALE_FR@' \
1164   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1165   LOCALE_JA='@LOCALE_JA@' \
1166   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1167 check_PROGRAMS += test-iswxdigit
1168 test_iswxdigit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1169 EXTRA_DIST += test-iswxdigit.sh test-iswxdigit.c signature.h macros.h
1170
1171 ## end   gnulib module iswxdigit-tests
1172
1173 ## begin gnulib module langinfo-c++-tests
1174
1175 if ANSICXX
1176 TESTS += test-langinfo-c++
1177 check_PROGRAMS += test-langinfo-c++
1178 test_langinfo_c___SOURCES = test-langinfo-c++.cc
1179 endif
1180 EXTRA_DIST += test-langinfo-c++.cc signature.h
1181
1182 ## end   gnulib module langinfo-c++-tests
1183
1184 ## begin gnulib module langinfo-tests
1185
1186 TESTS += test-langinfo
1187 check_PROGRAMS += test-langinfo
1188 EXTRA_DIST += test-langinfo.c
1189
1190 ## end   gnulib module langinfo-tests
1191
1192 ## begin gnulib module limits-h-c++-tests
1193
1194 if ANSICXX
1195 TESTS += test-limits-h-c++
1196 check_PROGRAMS += test-limits-h-c++
1197 test_limits_h_c___SOURCES = test-limits-h-c++.cc test-limits-h-c++2.cc
1198 endif
1199 EXTRA_DIST += test-limits-h-c++.cc test-limits-h-c++2.cc
1200
1201 ## end   gnulib module limits-h-c++-tests
1202
1203 ## begin gnulib module limits-h-tests
1204
1205 TESTS += test-limits-h
1206 check_PROGRAMS += test-limits-h
1207 EXTRA_DIST += test-limits-h.c
1208
1209 ## end   gnulib module limits-h-tests
1210
1211 ## begin gnulib module link
1212
1213
1214 EXTRA_DIST += link.c
1215
1216 EXTRA_libtests_a_SOURCES += link.c
1217
1218 ## end   gnulib module link
1219
1220 ## begin gnulib module link-tests
1221
1222 TESTS += test-link
1223 check_PROGRAMS += test-link
1224 EXTRA_DIST += test-link.h test-link.c signature.h macros.h
1225
1226 ## end   gnulib module link-tests
1227
1228 ## begin gnulib module linked-list-tests
1229
1230 TESTS += test-linked_list
1231 check_PROGRAMS += test-linked_list
1232 EXTRA_DIST += test-linked_list.c macros.h
1233
1234 ## end   gnulib module linked-list-tests
1235
1236 ## begin gnulib module linkedhash-list-tests
1237
1238 TESTS += test-linkedhash_list
1239 check_PROGRAMS += test-linkedhash_list
1240 EXTRA_DIST += test-linkedhash_list.c macros.h
1241
1242 ## end   gnulib module linkedhash-list-tests
1243
1244 ## begin gnulib module listen
1245
1246
1247 EXTRA_DIST += listen.c w32sock.h
1248
1249 EXTRA_libtests_a_SOURCES += listen.c
1250
1251 ## end   gnulib module listen
1252
1253 ## begin gnulib module listen-tests
1254
1255 TESTS += test-listen
1256 check_PROGRAMS += test-listen
1257 test_listen_LDADD = $(LDADD) @LIBSOCKET@
1258 EXTRA_DIST += test-listen.c signature.h macros.h
1259
1260 ## end   gnulib module listen-tests
1261
1262 ## begin gnulib module localcharset-tests
1263
1264 noinst_PROGRAMS += test-localcharset
1265 test_localcharset_LDADD = $(LDADD) $(LIB_SETLOCALE)
1266 EXTRA_DIST += test-localcharset.c
1267
1268 ## end   gnulib module localcharset-tests
1269
1270 ## begin gnulib module locale-c++-tests
1271
1272 if ANSICXX
1273 TESTS += test-locale-c++
1274 check_PROGRAMS += test-locale-c++
1275 test_locale_c___SOURCES = test-locale-c++.cc test-locale-c++2.cc
1276 test_locale_c___LDADD = $(LDADD) $(LIB_SETLOCALE)
1277 endif
1278 EXTRA_DIST += test-locale-c++.cc test-locale-c++2.cc signature.h
1279
1280 ## end   gnulib module locale-c++-tests
1281
1282 ## begin gnulib module locale-tests
1283
1284 TESTS += test-locale
1285 check_PROGRAMS += test-locale
1286 EXTRA_DIST += test-locale.c
1287
1288 ## end   gnulib module locale-tests
1289
1290 ## begin gnulib module localeconv-tests
1291
1292 TESTS += test-localeconv
1293 check_PROGRAMS += test-localeconv
1294 EXTRA_DIST += test-localeconv.c signature.h macros.h
1295
1296 ## end   gnulib module localeconv-tests
1297
1298 ## begin gnulib module localename-tests
1299
1300 TESTS += test-localename
1301 check_PROGRAMS += test-localename
1302 test_localename_LDADD = $(LDADD) $(LIB_SETLOCALE) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
1303
1304 EXTRA_DIST += test-localename.c macros.h
1305
1306 ## end   gnulib module localename-tests
1307
1308 ## begin gnulib module lseek-tests
1309
1310 TESTS += test-lseek.sh
1311 check_PROGRAMS += test-lseek
1312 EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
1313
1314 ## end   gnulib module lseek-tests
1315
1316 ## begin gnulib module lstat-tests
1317
1318 TESTS += test-lstat
1319 check_PROGRAMS += test-lstat
1320 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
1321
1322 ## end   gnulib module lstat-tests
1323
1324 ## begin gnulib module malloc-gnu-tests
1325
1326 TESTS += test-malloc-gnu
1327 check_PROGRAMS += test-malloc-gnu
1328 EXTRA_DIST += test-malloc-gnu.c macros.h
1329
1330 ## end   gnulib module malloc-gnu-tests
1331
1332 ## begin gnulib module malloca-tests
1333
1334 TESTS += test-malloca
1335 check_PROGRAMS += test-malloca
1336
1337 EXTRA_DIST += test-malloca.c
1338
1339 ## end   gnulib module malloca-tests
1340
1341 ## begin gnulib module math-c++-tests
1342
1343 if ANSICXX
1344 TESTS += test-math-c++
1345 check_PROGRAMS += test-math-c++
1346 test_math_c___SOURCES = test-math-c++.cc test-math-c++2.cc
1347 # These link dependencies are needed on IRIX 6.5 with cc.
1348 test_math_c___LDADD = $(LDADD) $(COPYSIGNL_LIBM) $(RINT_LIBM) $(RINTL_LIBM)
1349 endif
1350 EXTRA_DIST += test-math-c++.cc test-math-c++2.cc signature.h
1351
1352 ## end   gnulib module math-c++-tests
1353
1354 ## begin gnulib module math-tests
1355
1356 TESTS += test-math
1357 check_PROGRAMS += test-math
1358 EXTRA_DIST += test-math.c macros.h
1359
1360 ## end   gnulib module math-tests
1361
1362 ## begin gnulib module mbrtowc-tests
1363
1364 TESTS += \
1365   test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
1366   test-mbrtowc5.sh \
1367   test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
1368   test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32-6.sh \
1369   test-mbrtowc-w32-7.sh
1370 TESTS_ENVIRONMENT += \
1371   LOCALE_FR='@LOCALE_FR@' \
1372   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1373   LOCALE_JA='@LOCALE_JA@' \
1374   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1375 check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
1376 test_mbrtowc_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1377 EXTRA_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
1378
1379 ## end   gnulib module mbrtowc-tests
1380
1381 ## begin gnulib module mbsinit-tests
1382
1383 TESTS += test-mbsinit.sh
1384 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1385 check_PROGRAMS += test-mbsinit
1386 test_mbsinit_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1387 EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
1388
1389 ## end   gnulib module mbsinit-tests
1390
1391 ## begin gnulib module mbsstr-tests
1392
1393 TESTS += test-mbsstr1 test-mbsstr2.sh test-mbsstr3.sh
1394 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1395 check_PROGRAMS += test-mbsstr1 test-mbsstr2 test-mbsstr3
1396 test_mbsstr1_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_MBRTOWC)
1397 test_mbsstr2_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1398 test_mbsstr3_LDADD = $(LDADD) $(LIBUNISTRING) $(LIB_SETLOCALE) $(LIB_MBRTOWC)
1399 EXTRA_DIST += test-mbsstr1.c test-mbsstr2.sh test-mbsstr2.c test-mbsstr3.sh test-mbsstr3.c macros.h
1400
1401 ## end   gnulib module mbsstr-tests
1402
1403 ## begin gnulib module memchr-tests
1404
1405 TESTS += test-memchr
1406 check_PROGRAMS += test-memchr
1407 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
1408
1409 ## end   gnulib module memchr-tests
1410
1411 ## begin gnulib module memchr2-tests
1412
1413 TESTS += test-memchr2
1414 check_PROGRAMS += test-memchr2
1415 EXTRA_DIST += test-memchr2.c zerosize-ptr.h macros.h
1416
1417 ## end   gnulib module memchr2-tests
1418
1419 ## begin gnulib module memrchr-tests
1420
1421 TESTS += test-memrchr
1422 check_PROGRAMS += test-memrchr
1423 EXTRA_DIST += test-memrchr.c zerosize-ptr.h signature.h macros.h
1424
1425 ## end   gnulib module memrchr-tests
1426
1427 ## begin gnulib module mkdir-tests
1428
1429 TESTS += test-mkdir
1430 check_PROGRAMS += test-mkdir
1431 EXTRA_DIST += test-mkdir.h test-mkdir.c signature.h macros.h
1432
1433 ## end   gnulib module mkdir-tests
1434
1435 ## begin gnulib module nanosleep
1436
1437
1438 EXTRA_DIST += nanosleep.c
1439
1440 EXTRA_libtests_a_SOURCES += nanosleep.c
1441
1442 ## end   gnulib module nanosleep
1443
1444 ## begin gnulib module nanosleep-tests
1445
1446 TESTS += test-nanosleep
1447 check_PROGRAMS += test-nanosleep
1448 test_nanosleep_LDADD = $(LDADD) $(LIB_NANOSLEEP)
1449 EXTRA_DIST += test-nanosleep.c signature.h macros.h
1450
1451 ## end   gnulib module nanosleep-tests
1452
1453 ## begin gnulib module netinet_in
1454
1455 BUILT_SOURCES += $(NETINET_IN_H)
1456
1457 # We need the following in order to create <netinet/in.h> when the system
1458 # doesn't have one.
1459 if GL_GENERATE_NETINET_IN_H
1460 netinet/in.h: netinet_in.in.h $(top_builddir)/config.status
1461         $(AM_V_at)$(MKDIR_P) netinet
1462         $(AM_V_GEN)rm -f $@-t $@ && \
1463         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1464           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
1465               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1466               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1467               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1468               -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
1469               -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
1470               < $(srcdir)/netinet_in.in.h; \
1471         } > $@-t && \
1472         mv $@-t $@
1473 else
1474 netinet/in.h: $(top_builddir)/config.status
1475         rm -f $@
1476 endif
1477 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
1478 MOSTLYCLEANDIRS += netinet
1479
1480 EXTRA_DIST += netinet_in.in.h
1481
1482 ## end   gnulib module netinet_in
1483
1484 ## begin gnulib module netinet_in-tests
1485
1486 TESTS += test-netinet_in
1487 check_PROGRAMS += test-netinet_in
1488 EXTRA_DIST += test-netinet_in.c
1489
1490 ## end   gnulib module netinet_in-tests
1491
1492 ## begin gnulib module nl_langinfo-tests
1493
1494 TESTS += test-nl_langinfo.sh test-nl_langinfo-mt
1495 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
1496 check_PROGRAMS += test-nl_langinfo test-nl_langinfo-mt
1497 test_nl_langinfo_LDADD = $(LDADD) $(LIB_SETLOCALE)
1498 test_nl_langinfo_mt_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
1499 EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c test-nl_langinfo-mt.c signature.h macros.h
1500
1501 ## end   gnulib module nl_langinfo-tests
1502
1503 ## begin gnulib module open-tests
1504
1505 TESTS += test-open
1506 check_PROGRAMS += test-open
1507 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
1508
1509 ## end   gnulib module open-tests
1510
1511 ## begin gnulib module openat-tests
1512
1513 TESTS += test-openat
1514 check_PROGRAMS += test-openat
1515 test_openat_LDADD = $(LDADD) @LIBINTL@
1516 EXTRA_DIST += test-openat.c test-open.h signature.h macros.h
1517
1518 ## end   gnulib module openat-tests
1519
1520 ## begin gnulib module pathmax-tests
1521
1522 TESTS += test-pathmax
1523 check_PROGRAMS += test-pathmax
1524 EXTRA_DIST += test-pathmax.c
1525
1526 ## end   gnulib module pathmax-tests
1527
1528 ## begin gnulib module perror
1529
1530
1531 EXTRA_DIST += perror.c
1532
1533 EXTRA_libtests_a_SOURCES += perror.c
1534
1535 ## end   gnulib module perror
1536
1537 ## begin gnulib module perror-tests
1538
1539 TESTS += test-perror.sh test-perror2
1540 check_PROGRAMS += test-perror test-perror2
1541 EXTRA_DIST += macros.h signature.h test-perror.c test-perror2.c test-perror.sh
1542
1543 ## end   gnulib module perror-tests
1544
1545 ## begin gnulib module pipe-posix-tests
1546
1547 TESTS += test-pipe
1548 check_PROGRAMS += test-pipe
1549 EXTRA_DIST += test-pipe.c signature.h macros.h
1550
1551 ## end   gnulib module pipe-posix-tests
1552
1553 ## begin gnulib module pipe2-tests
1554
1555 TESTS += test-pipe2
1556 check_PROGRAMS += test-pipe2
1557 test_pipe2_LDADD = $(LDADD) $(LIBSOCKET)
1558 EXTRA_DIST += test-pipe2.c signature.h macros.h
1559
1560 ## end   gnulib module pipe2-tests
1561
1562 ## begin gnulib module posix_spawn-tests
1563
1564 TESTS += \
1565   test-posix_spawn-open1 \
1566   test-posix_spawn-open2 \
1567   test-posix_spawn-inherit0 \
1568   test-posix_spawn-inherit1 \
1569   test-posix_spawn-script
1570 check_PROGRAMS += \
1571   test-posix_spawn-open1 \
1572   test-posix_spawn-open2 \
1573   test-posix_spawn-inherit0 \
1574   test-posix_spawn-inherit1 \
1575   test-posix_spawn-script
1576 test_posix_spawn_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"
1577 EXTRA_DIST += test-posix_spawn-open1.c test-posix_spawn-open2.c test-posix_spawn-inherit0.c test-posix_spawn-inherit1.c test-posix_spawn-script.c executable-script executable-script.sh executable-shell-script signature.h
1578
1579 ## end   gnulib module posix_spawn-tests
1580
1581 ## begin gnulib module posix_spawn_file_actions_addchdir-tests
1582
1583 TESTS += \
1584   test-posix_spawn_file_actions_addchdir \
1585   test-posix_spawn-chdir
1586 check_PROGRAMS += \
1587   test-posix_spawn_file_actions_addchdir \
1588   test-posix_spawn-chdir
1589 test_posix_spawn_chdir_LDADD = $(LDADD) @LIBINTL@
1590 EXTRA_DIST += test-posix_spawn_file_actions_addchdir.c test-posix_spawn-chdir.c signature.h macros.h
1591
1592 ## end   gnulib module posix_spawn_file_actions_addchdir-tests
1593
1594 ## begin gnulib module posix_spawn_file_actions_addclose-tests
1595
1596 TESTS += test-posix_spawn_file_actions_addclose
1597 check_PROGRAMS += test-posix_spawn_file_actions_addclose
1598 EXTRA_DIST += test-posix_spawn_file_actions_addclose.c signature.h macros.h
1599
1600 ## end   gnulib module posix_spawn_file_actions_addclose-tests
1601
1602 ## begin gnulib module posix_spawn_file_actions_adddup2-tests
1603
1604 TESTS += test-posix_spawn_file_actions_adddup2
1605 check_PROGRAMS += test-posix_spawn_file_actions_adddup2
1606 EXTRA_DIST += test-posix_spawn_file_actions_adddup2.c signature.h macros.h
1607
1608 ## end   gnulib module posix_spawn_file_actions_adddup2-tests
1609
1610 ## begin gnulib module posix_spawn_file_actions_addopen-tests
1611
1612 TESTS += test-posix_spawn_file_actions_addopen
1613 check_PROGRAMS += test-posix_spawn_file_actions_addopen
1614 EXTRA_DIST += test-posix_spawn_file_actions_addopen.c signature.h macros.h
1615
1616 ## end   gnulib module posix_spawn_file_actions_addopen-tests
1617
1618 ## begin gnulib module posix_spawnp-tests
1619
1620 TESTS += \
1621   test-posix_spawn-dup2-stdout \
1622   test-posix_spawn-dup2-stdin \
1623   test-posix_spawnp-script
1624 check_PROGRAMS += \
1625   test-posix_spawn-dup2-stdout \
1626   test-posix_spawn-dup2-stdin \
1627   test-posix_spawnp-script
1628
1629 BUILT_SOURCES += test-posix_spawn-dup2-stdout.sh
1630 test-posix_spawn-dup2-stdout.sh: test-posix_spawn-dup2-stdout.in.sh
1631         $(AM_V_GEN)rm -f $@-t $@ && \
1632         cp $(srcdir)/test-posix_spawn-dup2-stdout.in.sh $@-t && \
1633         mv $@-t $@
1634 MOSTLYCLEANFILES += test-posix_spawn-dup2-stdout.sh test-posix_spawn-dup2-stdout.sh-t
1635
1636 BUILT_SOURCES += test-posix_spawn-dup2-stdin.sh
1637 test-posix_spawn-dup2-stdin.sh: test-posix_spawn-dup2-stdin.in.sh
1638         $(AM_V_GEN)rm -f $@-t $@ && \
1639         cp $(srcdir)/test-posix_spawn-dup2-stdin.in.sh $@-t && \
1640         mv $@-t $@
1641 MOSTLYCLEANFILES += test-posix_spawn-dup2-stdin.sh test-posix_spawn-dup2-stdin.sh-t
1642
1643 test_posix_spawnp_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"
1644 EXTRA_DIST += test-posix_spawn-dup2-stdout.c test-posix_spawn-dup2-stdout.in.sh test-posix_spawn-dup2-stdin.c test-posix_spawn-dup2-stdin.in.sh test-posix_spawnp-script.c executable-script executable-script.sh executable-shell-script signature.h
1645
1646 ## end   gnulib module posix_spawnp-tests
1647
1648 ## begin gnulib module printf-frexp-tests
1649
1650 TESTS += test-printf-frexp
1651 check_PROGRAMS += test-printf-frexp
1652 EXTRA_DIST += test-printf-frexp.c macros.h
1653
1654 ## end   gnulib module printf-frexp-tests
1655
1656 ## begin gnulib module printf-frexpl-tests
1657
1658 TESTS += test-printf-frexpl
1659 check_PROGRAMS += test-printf-frexpl
1660 EXTRA_DIST += test-printf-frexpl.c macros.h
1661
1662 ## end   gnulib module printf-frexpl-tests
1663
1664 ## begin gnulib module pthread-h
1665
1666 BUILT_SOURCES += pthread.h
1667
1668 # We need the following in order to create <pthread.h> when the system
1669 # doesn't have one that works with the given compiler.
1670 pthread.h: pthread.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1671         $(AM_V_GEN)rm -f $@-t $@ && \
1672         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1673           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
1674               -e 's|@''HAVE_PTHREAD_H''@|$(HAVE_PTHREAD_H)|g' \
1675               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1676               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1677               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1678               -e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \
1679               -e 's/@''GNULIB_PTHREAD_THREAD''@/$(GL_M4_GNULIB_PTHREAD_THREAD)/g' \
1680               -e 's/@''GNULIB_PTHREAD_ONCE''@/$(GL_M4_GNULIB_PTHREAD_ONCE)/g' \
1681               -e 's/@''GNULIB_PTHREAD_MUTEX''@/$(GL_M4_GNULIB_PTHREAD_MUTEX)/g' \
1682               -e 's/@''GNULIB_PTHREAD_RWLOCK''@/$(GL_M4_GNULIB_PTHREAD_RWLOCK)/g' \
1683               -e 's/@''GNULIB_PTHREAD_COND''@/$(GL_M4_GNULIB_PTHREAD_COND)/g' \
1684               -e 's/@''GNULIB_PTHREAD_TSS''@/$(GL_M4_GNULIB_PTHREAD_TSS)/g' \
1685               -e 's/@''GNULIB_PTHREAD_SPIN''@/$(GL_M4_GNULIB_PTHREAD_SPIN)/g' \
1686               -e 's/@''GNULIB_PTHREAD_MUTEX_TIMEDLOCK''@/$(GL_M4_GNULIB_PTHREAD_MUTEX_TIMEDLOCK)/g' \
1687               -e 's|@''HAVE_PTHREAD_T''@|$(HAVE_PTHREAD_T)|g' \
1688               -e 's|@''HAVE_PTHREAD_SPINLOCK_T''@|$(HAVE_PTHREAD_SPINLOCK_T)|g' \
1689               -e 's|@''HAVE_PTHREAD_CREATE_DETACHED''@|$(HAVE_PTHREAD_CREATE_DETACHED)|g' \
1690               -e 's|@''HAVE_PTHREAD_MUTEX_RECURSIVE''@|$(HAVE_PTHREAD_MUTEX_RECURSIVE)|g' \
1691               -e 's|@''HAVE_PTHREAD_MUTEX_ROBUST''@|$(HAVE_PTHREAD_MUTEX_ROBUST)|g' \
1692               -e 's|@''HAVE_PTHREAD_PROCESS_SHARED''@|$(HAVE_PTHREAD_PROCESS_SHARED)|g' \
1693               -e 's|@''HAVE_PTHREAD_CREATE''@|$(HAVE_PTHREAD_CREATE)|g' \
1694               -e 's|@''HAVE_PTHREAD_ATTR_INIT''@|$(HAVE_PTHREAD_ATTR_INIT)|g' \
1695               -e 's|@''HAVE_PTHREAD_ATTR_GETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_GETDETACHSTATE)|g' \
1696               -e 's|@''HAVE_PTHREAD_ATTR_SETDETACHSTATE''@|$(HAVE_PTHREAD_ATTR_SETDETACHSTATE)|g' \
1697               -e 's|@''HAVE_PTHREAD_ATTR_DESTROY''@|$(HAVE_PTHREAD_ATTR_DESTROY)|g' \
1698               -e 's|@''HAVE_PTHREAD_SELF''@|$(HAVE_PTHREAD_SELF)|g' \
1699               -e 's|@''HAVE_PTHREAD_EQUAL''@|$(HAVE_PTHREAD_EQUAL)|g' \
1700               -e 's|@''HAVE_PTHREAD_DETACH''@|$(HAVE_PTHREAD_DETACH)|g' \
1701               -e 's|@''HAVE_PTHREAD_JOIN''@|$(HAVE_PTHREAD_JOIN)|g' \
1702               -e 's|@''HAVE_PTHREAD_EXIT''@|$(HAVE_PTHREAD_EXIT)|g' \
1703               -e 's|@''HAVE_PTHREAD_ONCE''@|$(HAVE_PTHREAD_ONCE)|g' \
1704               -e 's|@''HAVE_PTHREAD_MUTEX_INIT''@|$(HAVE_PTHREAD_MUTEX_INIT)|g' \
1705               -e 's|@''HAVE_PTHREAD_MUTEXATTR_INIT''@|$(HAVE_PTHREAD_MUTEXATTR_INIT)|g' \
1706               -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_GETTYPE)|g' \
1707               -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETTYPE''@|$(HAVE_PTHREAD_MUTEXATTR_SETTYPE)|g' \
1708               -e 's|@''HAVE_PTHREAD_MUTEXATTR_GETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_GETROBUST)|g' \
1709               -e 's|@''HAVE_PTHREAD_MUTEXATTR_SETROBUST''@|$(HAVE_PTHREAD_MUTEXATTR_SETROBUST)|g' \
1710               -e 's|@''HAVE_PTHREAD_MUTEXATTR_DESTROY''@|$(HAVE_PTHREAD_MUTEXATTR_DESTROY)|g' \
1711               -e 's|@''HAVE_PTHREAD_MUTEX_LOCK''@|$(HAVE_PTHREAD_MUTEX_LOCK)|g' \
1712               -e 's|@''HAVE_PTHREAD_MUTEX_TRYLOCK''@|$(HAVE_PTHREAD_MUTEX_TRYLOCK)|g' \
1713               -e 's|@''HAVE_PTHREAD_MUTEX_TIMEDLOCK''@|$(HAVE_PTHREAD_MUTEX_TIMEDLOCK)|g' \
1714               -e 's|@''HAVE_PTHREAD_MUTEX_UNLOCK''@|$(HAVE_PTHREAD_MUTEX_UNLOCK)|g' \
1715               -e 's|@''HAVE_PTHREAD_MUTEX_DESTROY''@|$(HAVE_PTHREAD_MUTEX_DESTROY)|g' \
1716               -e 's|@''HAVE_PTHREAD_RWLOCK_INIT''@|$(HAVE_PTHREAD_RWLOCK_INIT)|g' \
1717               -e 's|@''HAVE_PTHREAD_RWLOCKATTR_INIT''@|$(HAVE_PTHREAD_RWLOCKATTR_INIT)|g' \
1718               -e 's|@''HAVE_PTHREAD_RWLOCKATTR_DESTROY''@|$(HAVE_PTHREAD_RWLOCKATTR_DESTROY)|g' \
1719               -e 's|@''HAVE_PTHREAD_RWLOCK_RDLOCK''@|$(HAVE_PTHREAD_RWLOCK_RDLOCK)|g' \
1720               -e 's|@''HAVE_PTHREAD_RWLOCK_WRLOCK''@|$(HAVE_PTHREAD_RWLOCK_WRLOCK)|g' \
1721               -e 's|@''HAVE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \
1722               -e 's|@''HAVE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \
1723               -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \
1724               -e 's|@''HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \
1725               -e 's|@''HAVE_PTHREAD_RWLOCK_UNLOCK''@|$(HAVE_PTHREAD_RWLOCK_UNLOCK)|g' \
1726               -e 's|@''HAVE_PTHREAD_RWLOCK_DESTROY''@|$(HAVE_PTHREAD_RWLOCK_DESTROY)|g' \
1727               -e 's|@''HAVE_PTHREAD_COND_INIT''@|$(HAVE_PTHREAD_COND_INIT)|g' \
1728               -e 's|@''HAVE_PTHREAD_CONDATTR_INIT''@|$(HAVE_PTHREAD_CONDATTR_INIT)|g' \
1729               -e 's|@''HAVE_PTHREAD_CONDATTR_DESTROY''@|$(HAVE_PTHREAD_CONDATTR_DESTROY)|g' \
1730               -e 's|@''HAVE_PTHREAD_COND_WAIT''@|$(HAVE_PTHREAD_COND_WAIT)|g' \
1731               -e 's|@''HAVE_PTHREAD_COND_TIMEDWAIT''@|$(HAVE_PTHREAD_COND_TIMEDWAIT)|g' \
1732               -e 's|@''HAVE_PTHREAD_COND_SIGNAL''@|$(HAVE_PTHREAD_COND_SIGNAL)|g' \
1733               -e 's|@''HAVE_PTHREAD_COND_BROADCAST''@|$(HAVE_PTHREAD_COND_BROADCAST)|g' \
1734               -e 's|@''HAVE_PTHREAD_COND_DESTROY''@|$(HAVE_PTHREAD_COND_DESTROY)|g' \
1735               -e 's|@''HAVE_PTHREAD_KEY_CREATE''@|$(HAVE_PTHREAD_KEY_CREATE)|g' \
1736               -e 's|@''HAVE_PTHREAD_SETSPECIFIC''@|$(HAVE_PTHREAD_SETSPECIFIC)|g' \
1737               -e 's|@''HAVE_PTHREAD_GETSPECIFIC''@|$(HAVE_PTHREAD_GETSPECIFIC)|g' \
1738               -e 's|@''HAVE_PTHREAD_KEY_DELETE''@|$(HAVE_PTHREAD_KEY_DELETE)|g' \
1739               -e 's|@''HAVE_PTHREAD_SPIN_INIT''@|$(HAVE_PTHREAD_SPIN_INIT)|g' \
1740               -e 's|@''HAVE_PTHREAD_SPIN_LOCK''@|$(HAVE_PTHREAD_SPIN_LOCK)|g' \
1741               -e 's|@''HAVE_PTHREAD_SPIN_TRYLOCK''@|$(HAVE_PTHREAD_SPIN_TRYLOCK)|g' \
1742               -e 's|@''HAVE_PTHREAD_SPIN_UNLOCK''@|$(HAVE_PTHREAD_SPIN_UNLOCK)|g' \
1743               -e 's|@''HAVE_PTHREAD_SPIN_DESTROY''@|$(HAVE_PTHREAD_SPIN_DESTROY)|g' \
1744               < $(srcdir)/pthread.in.h | \
1745           sed -e 's|@''REPLACE_PTHREAD_CREATE''@|$(REPLACE_PTHREAD_CREATE)|g' \
1746               -e 's|@''REPLACE_PTHREAD_ATTR_INIT''@|$(REPLACE_PTHREAD_ATTR_INIT)|g' \
1747               -e 's|@''REPLACE_PTHREAD_ATTR_GETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_GETDETACHSTATE)|g' \
1748               -e 's|@''REPLACE_PTHREAD_ATTR_SETDETACHSTATE''@|$(REPLACE_PTHREAD_ATTR_SETDETACHSTATE)|g' \
1749               -e 's|@''REPLACE_PTHREAD_ATTR_DESTROY''@|$(REPLACE_PTHREAD_ATTR_DESTROY)|g' \
1750               -e 's|@''REPLACE_PTHREAD_SELF''@|$(REPLACE_PTHREAD_SELF)|g' \
1751               -e 's|@''REPLACE_PTHREAD_EQUAL''@|$(REPLACE_PTHREAD_EQUAL)|g' \
1752               -e 's|@''REPLACE_PTHREAD_DETACH''@|$(REPLACE_PTHREAD_DETACH)|g' \
1753               -e 's|@''REPLACE_PTHREAD_JOIN''@|$(REPLACE_PTHREAD_JOIN)|g' \
1754               -e 's|@''REPLACE_PTHREAD_EXIT''@|$(REPLACE_PTHREAD_EXIT)|g' \
1755               -e 's|@''REPLACE_PTHREAD_ONCE''@|$(REPLACE_PTHREAD_ONCE)|g' \
1756               -e 's|@''REPLACE_PTHREAD_MUTEX_INIT''@|$(REPLACE_PTHREAD_MUTEX_INIT)|g' \
1757               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_INIT''@|$(REPLACE_PTHREAD_MUTEXATTR_INIT)|g' \
1758               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_GETTYPE)|g' \
1759               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETTYPE''@|$(REPLACE_PTHREAD_MUTEXATTR_SETTYPE)|g' \
1760               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_GETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_GETROBUST)|g' \
1761               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_SETROBUST''@|$(REPLACE_PTHREAD_MUTEXATTR_SETROBUST)|g' \
1762               -e 's|@''REPLACE_PTHREAD_MUTEXATTR_DESTROY''@|$(REPLACE_PTHREAD_MUTEXATTR_DESTROY)|g' \
1763               -e 's|@''REPLACE_PTHREAD_MUTEX_LOCK''@|$(REPLACE_PTHREAD_MUTEX_LOCK)|g' \
1764               -e 's|@''REPLACE_PTHREAD_MUTEX_TRYLOCK''@|$(REPLACE_PTHREAD_MUTEX_TRYLOCK)|g' \
1765               -e 's|@''REPLACE_PTHREAD_MUTEX_TIMEDLOCK''@|$(REPLACE_PTHREAD_MUTEX_TIMEDLOCK)|g' \
1766               -e 's|@''REPLACE_PTHREAD_MUTEX_UNLOCK''@|$(REPLACE_PTHREAD_MUTEX_UNLOCK)|g' \
1767               -e 's|@''REPLACE_PTHREAD_MUTEX_DESTROY''@|$(REPLACE_PTHREAD_MUTEX_DESTROY)|g' \
1768               -e 's|@''REPLACE_PTHREAD_RWLOCK_INIT''@|$(REPLACE_PTHREAD_RWLOCK_INIT)|g' \
1769               -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_INIT''@|$(REPLACE_PTHREAD_RWLOCKATTR_INIT)|g' \
1770               -e 's|@''REPLACE_PTHREAD_RWLOCKATTR_DESTROY''@|$(REPLACE_PTHREAD_RWLOCKATTR_DESTROY)|g' \
1771               -e 's|@''REPLACE_PTHREAD_RWLOCK_RDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_RDLOCK)|g' \
1772               -e 's|@''REPLACE_PTHREAD_RWLOCK_WRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_WRLOCK)|g' \
1773               -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYRDLOCK)|g' \
1774               -e 's|@''REPLACE_PTHREAD_RWLOCK_TRYWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TRYWRLOCK)|g' \
1775               -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK)|g' \
1776               -e 's|@''REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK''@|$(REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK)|g' \
1777               -e 's|@''REPLACE_PTHREAD_RWLOCK_UNLOCK''@|$(REPLACE_PTHREAD_RWLOCK_UNLOCK)|g' \
1778               -e 's|@''REPLACE_PTHREAD_RWLOCK_DESTROY''@|$(REPLACE_PTHREAD_RWLOCK_DESTROY)|g' \
1779               -e 's|@''REPLACE_PTHREAD_COND_INIT''@|$(REPLACE_PTHREAD_COND_INIT)|g' \
1780               -e 's|@''REPLACE_PTHREAD_CONDATTR_INIT''@|$(REPLACE_PTHREAD_CONDATTR_INIT)|g' \
1781               -e 's|@''REPLACE_PTHREAD_CONDATTR_DESTROY''@|$(REPLACE_PTHREAD_CONDATTR_DESTROY)|g' \
1782               -e 's|@''REPLACE_PTHREAD_COND_WAIT''@|$(REPLACE_PTHREAD_COND_WAIT)|g' \
1783               -e 's|@''REPLACE_PTHREAD_COND_TIMEDWAIT''@|$(REPLACE_PTHREAD_COND_TIMEDWAIT)|g' \
1784               -e 's|@''REPLACE_PTHREAD_COND_SIGNAL''@|$(REPLACE_PTHREAD_COND_SIGNAL)|g' \
1785               -e 's|@''REPLACE_PTHREAD_COND_BROADCAST''@|$(REPLACE_PTHREAD_COND_BROADCAST)|g' \
1786               -e 's|@''REPLACE_PTHREAD_COND_DESTROY''@|$(REPLACE_PTHREAD_COND_DESTROY)|g' \
1787               -e 's|@''REPLACE_PTHREAD_KEY_CREATE''@|$(REPLACE_PTHREAD_KEY_CREATE)|g' \
1788               -e 's|@''REPLACE_PTHREAD_SETSPECIFIC''@|$(REPLACE_PTHREAD_SETSPECIFIC)|g' \
1789               -e 's|@''REPLACE_PTHREAD_GETSPECIFIC''@|$(REPLACE_PTHREAD_GETSPECIFIC)|g' \
1790               -e 's|@''REPLACE_PTHREAD_KEY_DELETE''@|$(REPLACE_PTHREAD_KEY_DELETE)|g' \
1791               -e 's|@''REPLACE_PTHREAD_SPIN_INIT''@|$(REPLACE_PTHREAD_SPIN_INIT)|g' \
1792               -e 's|@''REPLACE_PTHREAD_SPIN_LOCK''@|$(REPLACE_PTHREAD_SPIN_LOCK)|g' \
1793               -e 's|@''REPLACE_PTHREAD_SPIN_TRYLOCK''@|$(REPLACE_PTHREAD_SPIN_TRYLOCK)|g' \
1794               -e 's|@''REPLACE_PTHREAD_SPIN_UNLOCK''@|$(REPLACE_PTHREAD_SPIN_UNLOCK)|g' \
1795               -e 's|@''REPLACE_PTHREAD_SPIN_DESTROY''@|$(REPLACE_PTHREAD_SPIN_DESTROY)|g' \
1796               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1797               -e '/definition of _Noreturn/r $(_NORETURN_H)' \
1798               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1799               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
1800         } > $@-t && \
1801         mv $@-t $@
1802 MOSTLYCLEANFILES += pthread.h pthread.h-t
1803
1804 EXTRA_DIST += pthread.in.h
1805
1806 ## end   gnulib module pthread-h
1807
1808 ## begin gnulib module pthread-h-c++-tests
1809
1810 if ANSICXX
1811 TESTS += test-pthread-c++
1812 check_PROGRAMS += test-pthread-c++
1813 test_pthread_c___SOURCES = test-pthread-c++.cc
1814 test_pthread_c___LDADD = $(LDADD) $(LIBPMULTITHREAD)
1815 endif
1816 EXTRA_DIST += test-pthread-c++.cc signature.h
1817
1818 ## end   gnulib module pthread-h-c++-tests
1819
1820 ## begin gnulib module pthread-h-tests
1821
1822 TESTS += test-pthread
1823 check_PROGRAMS += test-pthread
1824 EXTRA_DIST += test-pthread.c
1825
1826 ## end   gnulib module pthread-h-tests
1827
1828 ## begin gnulib module pthread-thread
1829
1830
1831 EXTRA_DIST += pthread-thread.c
1832
1833 EXTRA_libtests_a_SOURCES += pthread-thread.c
1834
1835 ## end   gnulib module pthread-thread
1836
1837 ## begin gnulib module pthread-thread-tests
1838
1839 TESTS += test-pthread-thread
1840 check_PROGRAMS += test-pthread-thread
1841 test_pthread_thread_LDADD = $(LDADD) @LIBPMULTITHREAD@
1842 EXTRA_DIST += test-pthread-thread.c macros.h
1843
1844 ## end   gnulib module pthread-thread-tests
1845
1846 ## begin gnulib module pthread_sigmask
1847
1848
1849 EXTRA_DIST += pthread_sigmask.c
1850
1851 EXTRA_libtests_a_SOURCES += pthread_sigmask.c
1852
1853 ## end   gnulib module pthread_sigmask
1854
1855 ## begin gnulib module pthread_sigmask-tests
1856
1857 TESTS += test-pthread_sigmask1 test-pthread_sigmask2
1858 check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
1859 test_pthread_sigmask1_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@
1860 test_pthread_sigmask2_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@ @LIBMULTITHREAD@
1861 EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h macros.h
1862
1863 ## end   gnulib module pthread_sigmask-tests
1864
1865 ## begin gnulib module putenv
1866
1867
1868 EXTRA_DIST += putenv.c
1869
1870 EXTRA_libtests_a_SOURCES += putenv.c
1871
1872 ## end   gnulib module putenv
1873
1874 ## begin gnulib module quotearg-simple-tests
1875
1876 TESTS += test-quotearg-simple
1877 check_PROGRAMS += test-quotearg-simple
1878 test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ $(LIB_MBRTOWC)
1879 EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h zerosize-ptr.h
1880
1881 ## end   gnulib module quotearg-simple-tests
1882
1883 ## begin gnulib module raise-tests
1884
1885 TESTS += test-raise
1886 check_PROGRAMS += test-raise
1887 EXTRA_DIST += test-raise.c signature.h macros.h
1888
1889 ## end   gnulib module raise-tests
1890
1891 ## begin gnulib module rawmemchr-tests
1892
1893 TESTS += test-rawmemchr
1894 check_PROGRAMS += test-rawmemchr
1895 EXTRA_DIST += test-rawmemchr.c zerosize-ptr.h signature.h macros.h
1896
1897 ## end   gnulib module rawmemchr-tests
1898
1899 ## begin gnulib module read-file
1900
1901 libtests_a_SOURCES += read-file.c
1902
1903 EXTRA_DIST += read-file.h
1904
1905 ## end   gnulib module read-file
1906
1907 ## begin gnulib module read-file-tests
1908
1909 TESTS += test-read-file
1910 check_PROGRAMS += test-read-file
1911 EXTRA_DIST += test-read-file.c macros.h
1912
1913 ## end   gnulib module read-file-tests
1914
1915 ## begin gnulib module readlink-tests
1916
1917 TESTS += test-readlink
1918 check_PROGRAMS += test-readlink
1919 EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
1920
1921 ## end   gnulib module readlink-tests
1922
1923 ## begin gnulib module realloc-gnu-tests
1924
1925 TESTS += test-realloc-gnu
1926 check_PROGRAMS += test-realloc-gnu
1927 EXTRA_DIST += test-realloc-gnu.c macros.h
1928
1929 ## end   gnulib module realloc-gnu-tests
1930
1931 ## begin gnulib module reallocarray-tests
1932
1933 TESTS += test-reallocarray
1934 check_PROGRAMS += test-reallocarray
1935 EXTRA_DIST += test-reallocarray.c signature.h macros.h
1936
1937 ## end   gnulib module reallocarray-tests
1938
1939 ## begin gnulib module regex-tests
1940
1941 TESTS += test-regex
1942 check_PROGRAMS += test-regex
1943 test_regex_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC) @LIBINTL@ $(LIBTHREAD)
1944 EXTRA_DIST += test-regex.c macros.h
1945
1946 ## end   gnulib module regex-tests
1947
1948 ## begin gnulib module rename-tests
1949
1950 TESTS += test-rename
1951 check_PROGRAMS += test-rename
1952 EXTRA_DIST += test-rename.h test-rename.c signature.h macros.h
1953
1954 ## end   gnulib module rename-tests
1955
1956 ## begin gnulib module rmdir-tests
1957
1958 TESTS += test-rmdir
1959 check_PROGRAMS += test-rmdir
1960 EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
1961
1962 ## end   gnulib module rmdir-tests
1963
1964 ## begin gnulib module root-uid
1965
1966
1967 EXTRA_DIST += root-uid.h
1968
1969 ## end   gnulib module root-uid
1970
1971 ## begin gnulib module sched-tests
1972
1973 TESTS += test-sched
1974 check_PROGRAMS += test-sched
1975 EXTRA_DIST += test-sched.c
1976
1977 ## end   gnulib module sched-tests
1978
1979 ## begin gnulib module sched_yield
1980
1981
1982 EXTRA_DIST += sched_yield.c
1983
1984 EXTRA_libtests_a_SOURCES += sched_yield.c
1985
1986 ## end   gnulib module sched_yield
1987
1988 ## begin gnulib module scratch_buffer-tests
1989
1990 TESTS += test-scratch-buffer
1991 check_PROGRAMS += test-scratch-buffer
1992 test_scratch_buffer_SOURCES = test-scratch-buffer.c
1993 EXTRA_DIST += test-scratch-buffer.c macros.h
1994
1995 ## end   gnulib module scratch_buffer-tests
1996
1997 ## begin gnulib module select
1998
1999
2000 EXTRA_DIST += select.c
2001
2002 EXTRA_libtests_a_SOURCES += select.c
2003
2004 ## end   gnulib module select
2005
2006 ## begin gnulib module select-tests
2007
2008 TESTS += test-select test-select-in.sh test-select-out.sh
2009 # test-select-stdin has to be run by hand.
2010 check_PROGRAMS += test-select test-select-fd test-select-stdin
2011 test_select_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ $(INET_PTON_LIB)
2012 test_select_fd_LDADD = $(LDADD) @LIB_SELECT@
2013 test_select_stdin_LDADD = $(LDADD) @LIB_SELECT@
2014 EXTRA_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
2015
2016 ## end   gnulib module select-tests
2017
2018 ## begin gnulib module setenv
2019
2020
2021 EXTRA_DIST += setenv.c
2022
2023 EXTRA_libtests_a_SOURCES += setenv.c
2024
2025 ## end   gnulib module setenv
2026
2027 ## begin gnulib module setenv-tests
2028
2029 TESTS += test-setenv
2030 check_PROGRAMS += test-setenv
2031 EXTRA_DIST += test-setenv.c signature.h macros.h
2032
2033 ## end   gnulib module setenv-tests
2034
2035 ## begin gnulib module setlocale-null-tests
2036
2037 TESTS += \
2038   test-setlocale_null \
2039   test-setlocale_null-mt-one \
2040   test-setlocale_null-mt-all
2041 check_PROGRAMS += \
2042   test-setlocale_null \
2043   test-setlocale_null-mt-one \
2044   test-setlocale_null-mt-all
2045 test_setlocale_null_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@
2046 test_setlocale_null_mt_one_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
2047 test_setlocale_null_mt_all_LDADD = $(LDADD) @LIB_SETLOCALE_NULL@ $(LIBMULTITHREAD) $(LIB_NANOSLEEP)
2048 EXTRA_DIST += test-setlocale_null.c test-setlocale_null-mt-one.c test-setlocale_null-mt-all.c
2049
2050 ## end   gnulib module setlocale-null-tests
2051
2052 ## begin gnulib module setlocale-tests
2053
2054 TESTS += test-setlocale1.sh test-setlocale2.sh
2055 TESTS_ENVIRONMENT += \
2056   LOCALE_FR='@LOCALE_FR@' \
2057   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
2058   LOCALE_JA='@LOCALE_JA@' \
2059   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
2060 check_PROGRAMS += test-setlocale1 test-setlocale2
2061 test_setlocale1_LDADD = $(LDADD) @LIB_SETLOCALE@
2062 test_setlocale2_LDADD = $(LDADD) @LIB_SETLOCALE@
2063 EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
2064
2065 ## end   gnulib module setlocale-tests
2066
2067 ## begin gnulib module setsockopt
2068
2069
2070 EXTRA_DIST += setsockopt.c w32sock.h
2071
2072 EXTRA_libtests_a_SOURCES += setsockopt.c
2073
2074 ## end   gnulib module setsockopt
2075
2076 ## begin gnulib module setsockopt-tests
2077
2078 TESTS += test-setsockopt
2079 check_PROGRAMS += test-setsockopt
2080 test_setsockopt_LDADD = $(LDADD) @LIBSOCKET@
2081 EXTRA_DIST += test-setsockopt.c signature.h macros.h
2082
2083 ## end   gnulib module setsockopt-tests
2084
2085 ## begin gnulib module sigaction-tests
2086
2087 TESTS += test-sigaction
2088 check_PROGRAMS += test-sigaction
2089 EXTRA_DIST += test-sigaction.c signature.h macros.h
2090
2091 ## end   gnulib module sigaction-tests
2092
2093 ## begin gnulib module signal-h-c++-tests
2094
2095 if ANSICXX
2096 TESTS += test-signal-h-c++
2097 check_PROGRAMS += test-signal-h-c++
2098 test_signal_h_c___SOURCES = test-signal-h-c++.cc test-signal-h-c++2.cc
2099 test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK)
2100 endif
2101 EXTRA_DIST += test-signal-h-c++.cc test-signal-h-c++2.cc signature.h
2102
2103 ## end   gnulib module signal-h-c++-tests
2104
2105 ## begin gnulib module signal-h-tests
2106
2107 TESTS += test-signal-h
2108 check_PROGRAMS += test-signal-h
2109 EXTRA_DIST += test-signal-h.c
2110
2111 ## end   gnulib module signal-h-tests
2112
2113 ## begin gnulib module signbit-tests
2114
2115 TESTS += test-signbit
2116 check_PROGRAMS += test-signbit
2117
2118 EXTRA_DIST += test-signbit.c minus-zero.h infinity.h macros.h
2119
2120 ## end   gnulib module signbit-tests
2121
2122 ## begin gnulib module sigpipe-tests
2123
2124 TESTS += test-sigpipe.sh
2125 check_PROGRAMS += test-sigpipe
2126
2127 EXTRA_DIST += test-sigpipe.c test-sigpipe.sh macros.h
2128
2129 ## end   gnulib module sigpipe-tests
2130
2131 ## begin gnulib module sigprocmask-tests
2132
2133 TESTS += test-sigprocmask
2134 check_PROGRAMS += test-sigprocmask
2135 EXTRA_DIST += test-sigprocmask.c signature.h macros.h
2136
2137 ## end   gnulib module sigprocmask-tests
2138
2139 ## begin gnulib module sigsegv-tests
2140
2141 TESTS += \
2142   test-sigsegv-catch-segv1 \
2143   test-sigsegv-catch-segv2 \
2144   test-sigsegv-catch-stackoverflow1 \
2145   test-sigsegv-catch-stackoverflow2
2146 check_PROGRAMS += \
2147   test-sigsegv-catch-segv1 \
2148   test-sigsegv-catch-segv2 \
2149   test-sigsegv-catch-stackoverflow1 \
2150   test-sigsegv-catch-stackoverflow2
2151 test_sigsegv_catch_segv1_LDADD = $(LDADD) $(LIBSIGSEGV)
2152 test_sigsegv_catch_segv2_LDADD = $(LDADD) $(LIBSIGSEGV)
2153 test_sigsegv_catch_stackoverflow1_LDADD = $(LDADD) $(LIBSIGSEGV)
2154 test_sigsegv_catch_stackoverflow2_LDADD = $(LDADD) $(LIBSIGSEGV)
2155 EXTRA_DIST += test-sigsegv-catch-segv1.c test-sigsegv-catch-segv2.c test-sigsegv-catch-stackoverflow1.c test-sigsegv-catch-stackoverflow2.c altstack-util.h mmap-anon-util.h
2156
2157 ## end   gnulib module sigsegv-tests
2158
2159 ## begin gnulib module sleep
2160
2161
2162 EXTRA_DIST += sleep.c
2163
2164 EXTRA_libtests_a_SOURCES += sleep.c
2165
2166 ## end   gnulib module sleep
2167
2168 ## begin gnulib module sleep-tests
2169
2170 TESTS += test-sleep
2171 check_PROGRAMS += test-sleep
2172 EXTRA_DIST += test-sleep.c signature.h macros.h
2173
2174 ## end   gnulib module sleep-tests
2175
2176 ## begin gnulib module snippet/_Noreturn
2177
2178 # Because this Makefile snippet defines a variable used by other
2179 # gnulib Makefile snippets, it must be present in all makefiles that
2180 # need it. This is ensured by the applicability 'all' defined above.
2181
2182 _NORETURN_H=$(srcdir)/_Noreturn.h
2183
2184 EXTRA_DIST += _Noreturn.h
2185
2186 ## end   gnulib module snippet/_Noreturn
2187
2188 ## begin gnulib module snippet/arg-nonnull
2189
2190 # Because this Makefile snippet defines a variable used by other
2191 # gnulib Makefile snippets, it must be present in all makefiles that
2192 # need it. This is ensured by the applicability 'all' defined above.
2193
2194 ARG_NONNULL_H=$(srcdir)/arg-nonnull.h
2195
2196 EXTRA_DIST += arg-nonnull.h
2197
2198 ## end   gnulib module snippet/arg-nonnull
2199
2200 ## begin gnulib module snippet/c++defs
2201
2202 # Because this Makefile snippet defines a variable used by other
2203 # gnulib Makefile snippets, it must be present in all makefiles that
2204 # need it. This is ensured by the applicability 'all' defined above.
2205
2206 CXXDEFS_H=$(srcdir)/c++defs.h
2207
2208 EXTRA_DIST += c++defs.h
2209
2210 ## end   gnulib module snippet/c++defs
2211
2212 ## begin gnulib module snippet/unused-parameter
2213
2214 # Because this Makefile snippet defines a variable used by other
2215 # gnulib Makefile snippets, it must be present in all makefiles that
2216 # need it. This is ensured by the applicability 'all' defined above.
2217
2218 UNUSED_PARAMETER_H=$(srcdir)/unused-parameter.h
2219
2220 EXTRA_DIST += unused-parameter.h
2221
2222 ## end   gnulib module snippet/unused-parameter
2223
2224 ## begin gnulib module snippet/warn-on-use
2225
2226 # Because this Makefile snippet defines a variable used by other
2227 # gnulib Makefile snippets, it must be present in all makefiles that
2228 # need it. This is ensured by the applicability 'all' defined above.
2229
2230 WARN_ON_USE_H=$(srcdir)/warn-on-use.h
2231
2232 EXTRA_DIST += warn-on-use.h
2233
2234 ## end   gnulib module snippet/warn-on-use
2235
2236 ## begin gnulib module snprintf-tests
2237
2238 TESTS += test-snprintf
2239 check_PROGRAMS += test-snprintf
2240
2241 EXTRA_DIST += test-snprintf.c signature.h macros.h
2242
2243 ## end   gnulib module snprintf-tests
2244
2245 ## begin gnulib module socket
2246
2247
2248 EXTRA_DIST += socket.c w32sock.h
2249
2250 EXTRA_libtests_a_SOURCES += socket.c
2251
2252 ## end   gnulib module socket
2253
2254 ## begin gnulib module sockets
2255
2256 libtests_a_SOURCES += sockets.h sockets.c
2257
2258 EXTRA_DIST += w32sock.h
2259
2260 ## end   gnulib module sockets
2261
2262 ## begin gnulib module sockets-tests
2263
2264 TESTS += test-sockets
2265 check_PROGRAMS += test-sockets
2266 test_sockets_LDADD = $(LDADD) @LIBSOCKET@
2267 EXTRA_DIST += test-sockets.c
2268
2269 ## end   gnulib module sockets-tests
2270
2271 ## begin gnulib module spawn-c++-tests
2272
2273 if ANSICXX
2274 TESTS += test-spawn-c++
2275 check_PROGRAMS += test-spawn-c++
2276 test_spawn_c___SOURCES = test-spawn-c++.cc
2277 test_spawn_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
2278 endif
2279 EXTRA_DIST += test-spawn-c++.cc signature.h
2280
2281 ## end   gnulib module spawn-c++-tests
2282
2283 ## begin gnulib module spawn-pipe-tests
2284
2285 TESTS += test-spawn-pipe.sh
2286 check_PROGRAMS += test-spawn-pipe-main test-spawn-pipe-child
2287 test_spawn_pipe_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
2288 # The test-spawn-pipe-child program must be a real executable, not a libtool
2289 # wrapper script, and should link against as few libraries as possible.
2290 # Therefore don't link it against any libraries other than -lc.
2291 test_spawn_pipe_child_LDADD =
2292
2293 TESTS += test-spawn-pipe-script
2294 check_PROGRAMS += test-spawn-pipe-script
2295 test_spawn_pipe_script_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
2296 test_spawn_pipe_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"
2297 EXTRA_DIST += test-spawn-pipe.sh test-spawn-pipe-main.c test-spawn-pipe-child.c test-spawn-pipe-script.c executable-script executable-script.sh executable-shell-script macros.h
2298
2299 ## end   gnulib module spawn-pipe-tests
2300
2301 ## begin gnulib module spawn-tests
2302
2303 TESTS += test-spawn
2304 check_PROGRAMS += test-spawn
2305 EXTRA_DIST += test-spawn.c
2306
2307 ## end   gnulib module spawn-tests
2308
2309 ## begin gnulib module stat-tests
2310
2311 TESTS += test-stat
2312 check_PROGRAMS += test-stat
2313 test_stat_LDADD = $(LDADD) $(LIBINTL)
2314 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
2315
2316 ## end   gnulib module stat-tests
2317
2318 ## begin gnulib module stat-time-tests
2319
2320 TESTS += test-stat-time
2321 check_PROGRAMS += test-stat-time
2322 test_stat_time_LDADD = $(LDADD) $(LIB_NANOSLEEP)
2323 EXTRA_DIST += test-stat-time.c macros.h nap.h
2324
2325 ## end   gnulib module stat-time-tests
2326
2327 ## begin gnulib module stdalign-tests
2328
2329 TESTS += test-stdalign
2330 check_PROGRAMS += test-stdalign
2331 EXTRA_DIST += test-stdalign.c macros.h
2332
2333 ## end   gnulib module stdalign-tests
2334
2335 ## begin gnulib module stdbool-c++-tests
2336
2337 if ANSICXX
2338 TESTS += test-stdbool-c++
2339 check_PROGRAMS += test-stdbool-c++
2340 test_stdbool_c___SOURCES = test-stdbool-c++.cc test-stdbool-c++2.cc
2341 endif
2342 EXTRA_DIST += test-stdbool-c++.cc test-stdbool-c++2.cc
2343
2344 ## end   gnulib module stdbool-c++-tests
2345
2346 ## begin gnulib module stdbool-tests
2347
2348 TESTS += test-stdbool
2349 check_PROGRAMS += test-stdbool
2350 EXTRA_DIST += test-stdbool.c
2351
2352 ## end   gnulib module stdbool-tests
2353
2354 ## begin gnulib module stddef-c++-tests
2355
2356 if ANSICXX
2357 TESTS += test-stddef-c++
2358 check_PROGRAMS += test-stddef-c++
2359 test_stddef_c___SOURCES = test-stddef-c++.cc test-stddef-c++2.cc
2360 endif
2361 EXTRA_DIST += test-stddef-c++.cc test-stddef-c++2.cc
2362
2363 ## end   gnulib module stddef-c++-tests
2364
2365 ## begin gnulib module stddef-tests
2366
2367 TESTS += test-stddef
2368 check_PROGRAMS += test-stddef
2369 EXTRA_DIST += test-stddef.c
2370
2371 ## end   gnulib module stddef-tests
2372
2373 ## begin gnulib module stdint-c++-tests
2374
2375 if ANSICXX
2376 TESTS += test-stdint-c++
2377 check_PROGRAMS += test-stdint-c++
2378 test_stdint_c___SOURCES = test-stdint-c++.cc test-stdint-c++2.cc
2379 endif
2380 EXTRA_DIST += test-stdint-c++.cc test-stdint-c++2.cc
2381
2382 ## end   gnulib module stdint-c++-tests
2383
2384 ## begin gnulib module stdint-tests
2385
2386 TESTS += test-stdint
2387 check_PROGRAMS += test-stdint
2388 EXTRA_DIST += test-stdint.c
2389
2390 ## end   gnulib module stdint-tests
2391
2392 ## begin gnulib module stdio-c++-tests
2393
2394 if ANSICXX
2395 TESTS += test-stdio-c++
2396 check_PROGRAMS += test-stdio-c++
2397 test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc
2398 test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIB_GETRANDOM)
2399 endif
2400 EXTRA_DIST += test-stdio-c++.cc test-stdio-c++2.cc signature.h
2401
2402 ## end   gnulib module stdio-c++-tests
2403
2404 ## begin gnulib module stdio-tests
2405
2406 TESTS += test-stdio
2407 check_PROGRAMS += test-stdio
2408 EXTRA_DIST += test-stdio.c
2409
2410 ## end   gnulib module stdio-tests
2411
2412 ## begin gnulib module stdlib-c++-tests
2413
2414 if ANSICXX
2415 TESTS += test-stdlib-c++
2416 check_PROGRAMS += test-stdlib-c++
2417 test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
2418 test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIB_GETRANDOM)
2419 endif
2420 EXTRA_DIST += test-stdlib-c++.cc test-stdlib-c++2.cc signature.h
2421
2422 ## end   gnulib module stdlib-c++-tests
2423
2424 ## begin gnulib module stdlib-tests
2425
2426 TESTS += test-stdlib
2427 check_PROGRAMS += test-stdlib
2428 EXTRA_DIST += test-stdlib.c test-sys_wait.h
2429
2430 ## end   gnulib module stdlib-tests
2431
2432 ## begin gnulib module strchrnul-tests
2433
2434 TESTS += test-strchrnul
2435 check_PROGRAMS += test-strchrnul
2436 EXTRA_DIST += test-strchrnul.c signature.h macros.h
2437
2438 ## end   gnulib module strchrnul-tests
2439
2440 ## begin gnulib module strerror-tests
2441
2442 TESTS += test-strerror
2443 check_PROGRAMS += test-strerror
2444 EXTRA_DIST += test-strerror.c signature.h macros.h
2445
2446 ## end   gnulib module strerror-tests
2447
2448 ## begin gnulib module strerror_r-posix
2449
2450
2451 EXTRA_DIST += strerror_r.c
2452
2453 EXTRA_libtests_a_SOURCES += strerror_r.c
2454
2455 ## end   gnulib module strerror_r-posix
2456
2457 ## begin gnulib module strerror_r-posix-tests
2458
2459 TESTS += test-strerror_r
2460 check_PROGRAMS += test-strerror_r
2461 EXTRA_DIST += test-strerror_r.c signature.h macros.h
2462
2463 ## end   gnulib module strerror_r-posix-tests
2464
2465 ## begin gnulib module striconv-tests
2466
2467 TESTS += test-striconv
2468 check_PROGRAMS += test-striconv
2469 test_striconv_LDADD = $(LDADD) @LIBICONV@
2470
2471 EXTRA_DIST += test-striconv.c macros.h
2472
2473 ## end   gnulib module striconv-tests
2474
2475 ## begin gnulib module string-c++-tests
2476
2477 if ANSICXX
2478 TESTS += test-string-c++
2479 check_PROGRAMS += test-string-c++
2480 test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc
2481 test_string_c___LDADD = $(LDADD) $(LIBINTL) $(LIBTHREAD)
2482 endif
2483 EXTRA_DIST += test-string-c++.cc test-string-c++2.cc signature.h
2484
2485 ## end   gnulib module string-c++-tests
2486
2487 ## begin gnulib module string-tests
2488
2489 TESTS += test-string
2490 check_PROGRAMS += test-string
2491 EXTRA_DIST += test-string.c
2492
2493 ## end   gnulib module string-tests
2494
2495 ## begin gnulib module strnlen-tests
2496
2497 TESTS += test-strnlen
2498 check_PROGRAMS += test-strnlen
2499 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
2500
2501 ## end   gnulib module strnlen-tests
2502
2503 ## begin gnulib module strsignal-tests
2504
2505 TESTS += test-strsignal
2506 check_PROGRAMS += test-strsignal
2507 test_strsignal_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
2508 EXTRA_DIST += test-strsignal.c signature.h macros.h
2509
2510 ## end   gnulib module strsignal-tests
2511
2512 ## begin gnulib module strstr-tests
2513
2514 TESTS += test-strstr
2515 check_PROGRAMS += test-strstr
2516 EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
2517
2518 ## end   gnulib module strstr-tests
2519
2520 ## begin gnulib module strtod-tests
2521
2522 TESTS += test-strtod
2523 check_PROGRAMS += test-strtod
2524
2525 TESTS += test-strtod1.sh
2526 TESTS_ENVIRONMENT += \
2527   LOCALE_FR='@LOCALE_FR@' \
2528   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
2529 check_PROGRAMS += test-strtod1
2530 test_strtod1_LDADD = $(LDADD) $(LIB_SETLOCALE)
2531 EXTRA_DIST += test-strtod.c test-strtod1.sh test-strtod1.c signature.h minus-zero.h macros.h
2532
2533 ## end   gnulib module strtod-tests
2534
2535 ## begin gnulib module symlink
2536
2537
2538 EXTRA_DIST += symlink.c
2539
2540 EXTRA_libtests_a_SOURCES += symlink.c
2541
2542 ## end   gnulib module symlink
2543
2544 ## begin gnulib module symlink-tests
2545
2546 TESTS += test-symlink
2547 check_PROGRAMS += test-symlink
2548 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
2549
2550 ## end   gnulib module symlink-tests
2551
2552 ## begin gnulib module sys_ioctl
2553
2554 BUILT_SOURCES += sys/ioctl.h
2555
2556 # We need the following in order to create <sys/ioctl.h> when the system
2557 # does not have a complete one.
2558 sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
2559         $(AM_V_at)$(MKDIR_P) sys
2560         $(AM_V_GEN)rm -f $@-t $@ && \
2561         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2562           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
2563               -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
2564               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2565               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2566               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2567               -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \
2568               -e 's/@''GNULIB_IOCTL''@/$(GL_M4_GNULIB_IOCTL)/g' \
2569               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
2570               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
2571               -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
2572               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2573               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2574               < $(srcdir)/sys_ioctl.in.h; \
2575         } > $@-t && \
2576         mv $@-t $@
2577 MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
2578 MOSTLYCLEANDIRS += sys
2579
2580 EXTRA_DIST += sys_ioctl.in.h
2581
2582 ## end   gnulib module sys_ioctl
2583
2584 ## begin gnulib module sys_ioctl-c++-tests
2585
2586 if ANSICXX
2587 TESTS += test-sys_ioctl-c++
2588 check_PROGRAMS += test-sys_ioctl-c++
2589 test_sys_ioctl_c___SOURCES = test-sys_ioctl-c++.cc
2590 test_sys_ioctl_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
2591 endif
2592 EXTRA_DIST += test-sys_ioctl-c++.cc signature.h
2593
2594 ## end   gnulib module sys_ioctl-c++-tests
2595
2596 ## begin gnulib module sys_ioctl-tests
2597
2598 TESTS += test-sys_ioctl
2599 check_PROGRAMS += test-sys_ioctl
2600 EXTRA_DIST += test-sys_ioctl.c
2601
2602 ## end   gnulib module sys_ioctl-tests
2603
2604 ## begin gnulib module sys_random-c++-tests
2605
2606 if ANSICXX
2607 TESTS += test-sys_random-c++
2608 check_PROGRAMS += test-sys_random-c++
2609 test_sys_random_c___SOURCES = test-sys_random-c++.cc
2610 test_sys_random_c___LDADD = $(LDADD) $(LIB_GETRANDOM)
2611 endif
2612 EXTRA_DIST += test-sys_random-c++.cc signature.h
2613
2614 ## end   gnulib module sys_random-c++-tests
2615
2616 ## begin gnulib module sys_random-tests
2617
2618 TESTS += test-sys_random
2619 check_PROGRAMS += test-sys_random
2620 EXTRA_DIST += test-sys_random.c
2621
2622 ## end   gnulib module sys_random-tests
2623
2624 ## begin gnulib module sys_select
2625
2626 BUILT_SOURCES += sys/select.h
2627
2628 # We need the following in order to create <sys/select.h> when the system
2629 # doesn't have one that works with the given compiler.
2630 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
2631         $(AM_V_at)$(MKDIR_P) sys
2632         $(AM_V_GEN)rm -f $@-t $@ && \
2633         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2634           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
2635               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2636               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2637               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2638               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
2639               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
2640               -e 's/@''GNULIB_PSELECT''@/$(GL_M4_GNULIB_PSELECT)/g' \
2641               -e 's/@''GNULIB_SELECT''@/$(GL_M4_GNULIB_SELECT)/g' \
2642               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
2643               -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
2644               -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
2645               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
2646               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2647               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2648               < $(srcdir)/sys_select.in.h; \
2649         } > $@-t && \
2650         mv $@-t $@
2651 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
2652 MOSTLYCLEANDIRS += sys
2653
2654 EXTRA_DIST += sys_select.in.h
2655
2656 ## end   gnulib module sys_select
2657
2658 ## begin gnulib module sys_select-c++-tests
2659
2660 if ANSICXX
2661 TESTS += test-sys_select-c++
2662 check_PROGRAMS += test-sys_select-c++
2663 test_sys_select_c___SOURCES = test-sys_select-c++.cc
2664 test_sys_select_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_SELECT) $(LIB_NANOSLEEP)
2665 endif
2666 EXTRA_DIST += test-sys_select-c++.cc signature.h
2667
2668 ## end   gnulib module sys_select-c++-tests
2669
2670 ## begin gnulib module sys_select-tests
2671
2672 TESTS += test-sys_select
2673 check_PROGRAMS += test-sys_select
2674 EXTRA_DIST += test-sys_select.c signature.h
2675
2676 ## end   gnulib module sys_select-tests
2677
2678 ## begin gnulib module sys_socket
2679
2680 BUILT_SOURCES += sys/socket.h
2681 libtests_a_SOURCES += sys_socket.c
2682
2683 # We need the following in order to create <sys/socket.h> when the system
2684 # doesn't have one that works with the given compiler.
2685 sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
2686         $(AM_V_at)$(MKDIR_P) sys
2687         $(AM_V_GEN)rm -f $@-t $@ && \
2688         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2689           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
2690               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2691               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2692               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2693               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
2694               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
2695               -e 's/@''GNULIB_CLOSE''@/$(GL_M4_GNULIB_CLOSE)/g' \
2696               -e 's/@''GNULIB_SOCKET''@/$(GL_M4_GNULIB_SOCKET)/g' \
2697               -e 's/@''GNULIB_CONNECT''@/$(GL_M4_GNULIB_CONNECT)/g' \
2698               -e 's/@''GNULIB_ACCEPT''@/$(GL_M4_GNULIB_ACCEPT)/g' \
2699               -e 's/@''GNULIB_BIND''@/$(GL_M4_GNULIB_BIND)/g' \
2700               -e 's/@''GNULIB_GETPEERNAME''@/$(GL_M4_GNULIB_GETPEERNAME)/g' \
2701               -e 's/@''GNULIB_GETSOCKNAME''@/$(GL_M4_GNULIB_GETSOCKNAME)/g' \
2702               -e 's/@''GNULIB_GETSOCKOPT''@/$(GL_M4_GNULIB_GETSOCKOPT)/g' \
2703               -e 's/@''GNULIB_LISTEN''@/$(GL_M4_GNULIB_LISTEN)/g' \
2704               -e 's/@''GNULIB_RECV''@/$(GL_M4_GNULIB_RECV)/g' \
2705               -e 's/@''GNULIB_SEND''@/$(GL_M4_GNULIB_SEND)/g' \
2706               -e 's/@''GNULIB_RECVFROM''@/$(GL_M4_GNULIB_RECVFROM)/g' \
2707               -e 's/@''GNULIB_SENDTO''@/$(GL_M4_GNULIB_SENDTO)/g' \
2708               -e 's/@''GNULIB_SETSOCKOPT''@/$(GL_M4_GNULIB_SETSOCKOPT)/g' \
2709               -e 's/@''GNULIB_SHUTDOWN''@/$(GL_M4_GNULIB_SHUTDOWN)/g' \
2710               -e 's/@''GNULIB_ACCEPT4''@/$(GL_M4_GNULIB_ACCEPT4)/g' \
2711               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
2712               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
2713               -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
2714               -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
2715               -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
2716               -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
2717               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2718               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2719               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2720               < $(srcdir)/sys_socket.in.h; \
2721         } > $@-t && \
2722         mv -f $@-t $@
2723 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
2724 MOSTLYCLEANDIRS += sys
2725
2726 EXTRA_DIST += sys_socket.in.h
2727
2728 ## end   gnulib module sys_socket
2729
2730 ## begin gnulib module sys_socket-c++-tests
2731
2732 if ANSICXX
2733 TESTS += test-sys_socket-c++
2734 check_PROGRAMS += test-sys_socket-c++
2735 test_sys_socket_c___SOURCES = test-sys_socket-c++.cc
2736 test_sys_socket_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(LIB_NANOSLEEP)
2737 endif
2738 EXTRA_DIST += test-sys_socket-c++.cc signature.h
2739
2740 ## end   gnulib module sys_socket-c++-tests
2741
2742 ## begin gnulib module sys_socket-tests
2743
2744 TESTS += test-sys_socket
2745 check_PROGRAMS += test-sys_socket
2746 EXTRA_DIST += test-sys_socket.c
2747
2748 ## end   gnulib module sys_socket-tests
2749
2750 ## begin gnulib module sys_stat-c++-tests
2751
2752 if ANSICXX
2753 TESTS += test-sys_stat-c++
2754 check_PROGRAMS += test-sys_stat-c++
2755 test_sys_stat_c___SOURCES = test-sys_stat-c++.cc
2756 test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME)
2757 endif
2758 EXTRA_DIST += test-sys_stat-c++.cc signature.h
2759
2760 ## end   gnulib module sys_stat-c++-tests
2761
2762 ## begin gnulib module sys_stat-tests
2763
2764 TESTS += test-sys_stat
2765 check_PROGRAMS += test-sys_stat
2766 EXTRA_DIST += test-sys_stat.c
2767
2768 ## end   gnulib module sys_stat-tests
2769
2770 ## begin gnulib module sys_time
2771
2772 BUILT_SOURCES += sys/time.h
2773
2774 # We need the following in order to create <sys/time.h> when the system
2775 # doesn't have one that works with the given compiler.
2776 sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
2777         $(AM_V_at)$(MKDIR_P) sys
2778         $(AM_V_GEN)rm -f $@-t $@ && \
2779         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2780           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
2781               -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
2782               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2783               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2784               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2785               -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
2786               -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GL_M4_GNULIB_GETTIMEOFDAY)/g' \
2787               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
2788               -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
2789               -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
2790               -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \
2791               -e 's/@''REPLACE_STRUCT_TIMEVAL''@/$(REPLACE_STRUCT_TIMEVAL)/g' \
2792               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2793               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2794               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2795               < $(srcdir)/sys_time.in.h; \
2796         } > $@-t && \
2797         mv $@-t $@
2798 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
2799
2800 EXTRA_DIST += sys_time.in.h
2801
2802 ## end   gnulib module sys_time
2803
2804 ## begin gnulib module sys_time-c++-tests
2805
2806 if ANSICXX
2807 TESTS += test-sys_time-c++
2808 check_PROGRAMS += test-sys_time-c++
2809 test_sys_time_c___SOURCES = test-sys_time-c++.cc
2810 test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
2811 endif
2812 EXTRA_DIST += test-sys_time-c++.cc signature.h
2813
2814 ## end   gnulib module sys_time-c++-tests
2815
2816 ## begin gnulib module sys_time-tests
2817
2818 TESTS += test-sys_time
2819 check_PROGRAMS += test-sys_time
2820 EXTRA_DIST += test-sys_time.c
2821
2822 ## end   gnulib module sys_time-tests
2823
2824 ## begin gnulib module sys_types-c++-tests
2825
2826 if ANSICXX
2827 TESTS += test-sys_types-c++
2828 check_PROGRAMS += test-sys_types-c++
2829 test_sys_types_c___SOURCES = test-sys_types-c++.cc
2830 endif
2831 EXTRA_DIST += test-sys_types-c++.cc
2832
2833 ## end   gnulib module sys_types-c++-tests
2834
2835 ## begin gnulib module sys_types-tests
2836
2837 TESTS += test-sys_types
2838 check_PROGRAMS += test-sys_types
2839 EXTRA_DIST += test-sys_types.c
2840
2841 ## end   gnulib module sys_types-tests
2842
2843 ## begin gnulib module sys_uio
2844
2845 BUILT_SOURCES += sys/uio.h
2846
2847 # We need the following in order to create <sys/uio.h> when the system
2848 # doesn't have one that works with the given compiler.
2849 sys/uio.h: sys_uio.in.h $(top_builddir)/config.status
2850         $(AM_V_at)$(MKDIR_P) sys
2851         $(AM_V_GEN)rm -f $@-t $@ && \
2852         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2853           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
2854               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2855               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2856               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2857               -e 's|@''NEXT_SYS_UIO_H''@|$(NEXT_SYS_UIO_H)|g' \
2858               -e 's|@''HAVE_SYS_UIO_H''@|$(HAVE_SYS_UIO_H)|g' \
2859               < $(srcdir)/sys_uio.in.h; \
2860         } > $@-t && \
2861         mv -f $@-t $@
2862 MOSTLYCLEANFILES += sys/uio.h sys/uio.h-t
2863 MOSTLYCLEANDIRS += sys
2864
2865 EXTRA_DIST += sys_uio.in.h
2866
2867 ## end   gnulib module sys_uio
2868
2869 ## begin gnulib module sys_uio-tests
2870
2871 TESTS += test-sys_uio
2872 check_PROGRAMS += test-sys_uio
2873 EXTRA_DIST += test-sys_uio.c
2874
2875 ## end   gnulib module sys_uio-tests
2876
2877 ## begin gnulib module sys_wait-c++-tests
2878
2879 if ANSICXX
2880 TESTS += test-sys_wait-c++
2881 check_PROGRAMS += test-sys_wait-c++
2882 test_sys_wait_c___SOURCES = test-sys_wait-c++.cc
2883 endif
2884 EXTRA_DIST += test-sys_wait-c++.cc signature.h
2885
2886 ## end   gnulib module sys_wait-c++-tests
2887
2888 ## begin gnulib module sys_wait-tests
2889
2890 TESTS += test-sys_wait
2891 check_PROGRAMS += test-sys_wait
2892 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
2893
2894 ## end   gnulib module sys_wait-tests
2895
2896 ## begin gnulib module test-framework-sh-tests
2897
2898 TESTS += test-init.sh
2899 EXTRA_DIST += init.sh
2900 EXTRA_DIST += test-init.sh
2901
2902 ## end   gnulib module test-framework-sh-tests
2903
2904 ## begin gnulib module thread
2905
2906 libtests_a_SOURCES += glthread/thread.h glthread/thread.c
2907
2908 ## end   gnulib module thread
2909
2910 ## begin gnulib module thread-tests
2911
2912 TESTS += test-thread_self test-thread_create
2913 check_PROGRAMS += test-thread_self test-thread_create
2914 test_thread_self_LDADD = $(LDADD) @LIBTHREAD@
2915 test_thread_create_LDADD = $(LDADD) @LIBMULTITHREAD@
2916 EXTRA_DIST += test-thread_self.c test-thread_create.c macros.h
2917
2918 ## end   gnulib module thread-tests
2919
2920 ## begin gnulib module time-c++-tests
2921
2922 if ANSICXX
2923 TESTS += test-time-c++
2924 check_PROGRAMS += test-time-c++
2925 test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
2926 test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
2927 endif
2928 EXTRA_DIST += test-time-c++.cc test-time-c++2.cc signature.h
2929
2930 ## end   gnulib module time-c++-tests
2931
2932 ## begin gnulib module time-tests
2933
2934 TESTS += test-time
2935 check_PROGRAMS += test-time
2936 EXTRA_DIST += test-time.c
2937
2938 ## end   gnulib module time-tests
2939
2940 ## begin gnulib module unistd-c++-tests
2941
2942 if ANSICXX
2943 TESTS += test-unistd-c++
2944 check_PROGRAMS += test-unistd-c++
2945 test_unistd_c___SOURCES = test-unistd-c++.cc
2946 test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET) $(LIB_GETLOGIN)
2947 endif
2948 EXTRA_DIST += test-unistd-c++.cc signature.h
2949
2950 ## end   gnulib module unistd-c++-tests
2951
2952 ## begin gnulib module unistd-safer-tests
2953
2954 TESTS += test-dup-safer
2955 check_PROGRAMS += test-dup-safer
2956 EXTRA_DIST += test-dup-safer.c macros.h
2957
2958 ## end   gnulib module unistd-safer-tests
2959
2960 ## begin gnulib module unistd-tests
2961
2962 TESTS += test-unistd
2963 check_PROGRAMS += test-unistd
2964 EXTRA_DIST += test-unistd.c
2965
2966 ## end   gnulib module unistd-tests
2967
2968 ## begin gnulib module unistr/u8-mbtoucr-tests
2969
2970 TESTS += test-u8-mbtoucr
2971 check_PROGRAMS += test-u8-mbtoucr
2972 test_u8_mbtoucr_SOURCES = unistr/test-u8-mbtoucr.c
2973 test_u8_mbtoucr_LDADD = $(LDADD) $(LIBUNISTRING)
2974 EXTRA_DIST += unistr/test-u8-mbtoucr.c macros.h
2975
2976 ## end   gnulib module unistr/u8-mbtoucr-tests
2977
2978 ## begin gnulib module unistr/u8-uctomb-tests
2979
2980 TESTS += test-u8-uctomb
2981 check_PROGRAMS += test-u8-uctomb
2982 test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c
2983 test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING)
2984 EXTRA_DIST += unistr/test-u8-uctomb.c macros.h
2985
2986 ## end   gnulib module unistr/u8-uctomb-tests
2987
2988 ## begin gnulib module uniwidth/width-tests
2989
2990 TESTS += test-uc_width uniwidth/test-uc_width2.sh
2991 check_PROGRAMS += test-uc_width test-uc_width2
2992 test_uc_width_SOURCES = uniwidth/test-uc_width.c
2993 test_uc_width_LDADD = $(LDADD) $(LIBUNISTRING)
2994 test_uc_width2_SOURCES = uniwidth/test-uc_width2.c
2995 test_uc_width2_LDADD = $(LDADD) $(LIBUNISTRING)
2996 EXTRA_DIST += uniwidth/test-uc_width.c uniwidth/test-uc_width2.c uniwidth/test-uc_width2.sh macros.h
2997
2998 ## end   gnulib module uniwidth/width-tests
2999
3000 ## begin gnulib module unsetenv
3001
3002
3003 EXTRA_DIST += unsetenv.c
3004
3005 EXTRA_libtests_a_SOURCES += unsetenv.c
3006
3007 ## end   gnulib module unsetenv
3008
3009 ## begin gnulib module unsetenv-tests
3010
3011 TESTS += test-unsetenv
3012 check_PROGRAMS += test-unsetenv
3013 EXTRA_DIST += test-unsetenv.c signature.h macros.h
3014
3015 ## end   gnulib module unsetenv-tests
3016
3017 ## begin gnulib module update-copyright-tests
3018
3019 TESTS += test-update-copyright.sh
3020 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
3021 EXTRA_DIST += test-update-copyright.sh
3022
3023 ## end   gnulib module update-copyright-tests
3024
3025 ## begin gnulib module vasnprintf-tests
3026
3027 TESTS += test-vasnprintf
3028 check_PROGRAMS += test-vasnprintf
3029
3030 EXTRA_DIST += test-vasnprintf.c macros.h
3031
3032 ## end   gnulib module vasnprintf-tests
3033
3034 ## begin gnulib module vasprintf-posix-tests
3035
3036 TESTS += test-vasprintf-posix
3037 check_PROGRAMS += test-vasprintf-posix
3038
3039 EXTRA_DIST += test-vasprintf-posix.c minus-zero.h infinity.h nan.h macros.h
3040
3041 ## end   gnulib module vasprintf-posix-tests
3042
3043 ## begin gnulib module vasprintf-tests
3044
3045 TESTS += test-vasprintf
3046 check_PROGRAMS += test-vasprintf
3047
3048 EXTRA_DIST += test-vasprintf.c signature.h macros.h
3049
3050 ## end   gnulib module vasprintf-tests
3051
3052 ## begin gnulib module vc-list-files-tests
3053
3054 TESTS += test-vc-list-files-git.sh
3055 TESTS += test-vc-list-files-cvs.sh
3056 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
3057 EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh
3058
3059 ## end   gnulib module vc-list-files-tests
3060
3061 ## begin gnulib module verify-tests
3062
3063 TESTS_ENVIRONMENT += MAKE='$(MAKE)'
3064 TESTS += test-verify test-verify.sh
3065 check_PROGRAMS += test-verify
3066 # test-verify-try is never built, but test-verify.sh needs a rule to
3067 # build test-verify-try.o.
3068 EXTRA_PROGRAMS += test-verify-try
3069
3070 # This test expects compilation of test-verify-try.c to fail, and
3071 # each time it fails, the makefile rule does not perform the usual
3072 #  "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
3073 MOSTLYCLEANFILES += .deps/test-verify-try.Tpo
3074 EXTRA_DIST += test-verify.c test-verify-try.c test-verify.sh
3075
3076 ## end   gnulib module verify-tests
3077
3078 ## begin gnulib module version-etc-tests
3079
3080 TESTS += test-version-etc.sh
3081 check_PROGRAMS += test-version-etc
3082 test_version_etc_LDADD = $(LDADD) @LIBINTL@
3083 EXTRA_DIST += test-version-etc.c test-version-etc.sh
3084
3085 ## end   gnulib module version-etc-tests
3086
3087 ## begin gnulib module vma-iter
3088
3089 libtests_a_SOURCES += vma-iter.c
3090
3091 EXTRA_DIST += vma-iter.h
3092
3093 ## end   gnulib module vma-iter
3094
3095 ## begin gnulib module wchar-c++-tests
3096
3097 if ANSICXX
3098 TESTS += test-wchar-c++
3099 check_PROGRAMS += test-wchar-c++
3100 test_wchar_c___SOURCES = test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc
3101 test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS) $(LIBTHREAD)
3102 endif
3103 EXTRA_DIST += test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc signature.h
3104
3105 ## end   gnulib module wchar-c++-tests
3106
3107 ## begin gnulib module wchar-tests
3108
3109 TESTS += test-wchar
3110 check_PROGRAMS += test-wchar
3111 EXTRA_DIST += test-wchar.c
3112
3113 ## end   gnulib module wchar-tests
3114
3115 ## begin gnulib module wcrtomb-tests
3116
3117 TESTS += \
3118   test-wcrtomb.sh \
3119   test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
3120   test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh test-wcrtomb-w32-6.sh \
3121   test-wcrtomb-w32-7.sh
3122 TESTS_ENVIRONMENT += \
3123   LOCALE_FR='@LOCALE_FR@' \
3124   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
3125   LOCALE_JA='@LOCALE_JA@' \
3126   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
3127 check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
3128 test_wcrtomb_LDADD = $(LDADD) $(LIB_SETLOCALE)
3129 EXTRA_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
3130
3131 ## end   gnulib module wcrtomb-tests
3132
3133 ## begin gnulib module wctob
3134
3135
3136 EXTRA_DIST += wctob.c
3137
3138 EXTRA_libtests_a_SOURCES += wctob.c
3139
3140 ## end   gnulib module wctob
3141
3142 ## begin gnulib module wctomb
3143
3144
3145 EXTRA_DIST += wctomb-impl.h wctomb.c
3146
3147 EXTRA_libtests_a_SOURCES += wctomb.c
3148
3149 ## end   gnulib module wctomb
3150
3151 ## begin gnulib module wctype-h-c++-tests
3152
3153 if ANSICXX
3154 TESTS += test-wctype-h-c++
3155 check_PROGRAMS += test-wctype-h-c++
3156 test_wctype_h_c___SOURCES = test-wctype-h-c++.cc test-wctype-h-c++2.cc
3157 test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
3158 endif
3159 EXTRA_DIST += test-wctype-h-c++.cc test-wctype-h-c++2.cc signature.h
3160
3161 ## end   gnulib module wctype-h-c++-tests
3162
3163 ## begin gnulib module wctype-h-tests
3164
3165 TESTS += test-wctype-h
3166 check_PROGRAMS += test-wctype-h
3167 EXTRA_DIST += test-wctype-h.c macros.h
3168
3169 ## end   gnulib module wctype-h-tests
3170
3171 ## begin gnulib module wcwidth-tests
3172
3173 TESTS += test-wcwidth
3174 check_PROGRAMS += test-wcwidth
3175 test_wcwidth_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBUNISTRING)
3176 EXTRA_DIST += test-wcwidth.c signature.h macros.h
3177
3178 ## end   gnulib module wcwidth-tests
3179
3180 ## begin gnulib module windows-thread
3181
3182
3183 EXTRA_DIST += windows-thread.c windows-thread.h
3184
3185 EXTRA_libtests_a_SOURCES += windows-thread.c
3186
3187 ## end   gnulib module windows-thread
3188
3189 ## begin gnulib module write
3190
3191
3192 EXTRA_DIST += write.c
3193
3194 EXTRA_libtests_a_SOURCES += write.c
3195
3196 ## end   gnulib module write
3197
3198 ## begin gnulib module write-tests
3199
3200 TESTS += test-write
3201 check_PROGRAMS += test-write
3202 EXTRA_DIST += test-write.c signature.h macros.h
3203
3204 ## end   gnulib module write-tests
3205
3206 ## begin gnulib module xalloc-die-tests
3207
3208 TESTS += test-xalloc-die.sh
3209 check_PROGRAMS += test-xalloc-die
3210 test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
3211 EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh
3212
3213 ## end   gnulib module xalloc-die-tests
3214
3215 ## begin gnulib module xconcat-filename
3216
3217 libtests_a_SOURCES += xconcat-filename.c
3218
3219 EXTRA_DIST += concat-filename.h
3220
3221 ## end   gnulib module xconcat-filename
3222
3223 ## begin gnulib module xvasprintf-tests
3224
3225 TESTS += test-xvasprintf
3226 check_PROGRAMS += test-xvasprintf
3227 test_xvasprintf_LDADD = $(LDADD) @LIBINTL@
3228
3229 EXTRA_DIST += test-xvasprintf.c macros.h
3230
3231 ## end   gnulib module xvasprintf-tests
3232
3233 ## begin gnulib module yield
3234
3235 libtests_a_SOURCES += glthread/yield.h
3236
3237 ## end   gnulib module yield
3238
3239 # Clean up after Solaris cc.
3240 clean-local:
3241         rm -rf SunWS_cache
3242
3243 mostlyclean-local: mostlyclean-generic
3244         @for dir in '' $(MOSTLYCLEANDIRS); do \
3245           if test -n "$$dir" && test -d $$dir; then \
3246             echo "rmdir $$dir"; rmdir $$dir; \
3247           fi; \
3248         done; \
3249         :