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.
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.
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.
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/>.
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.
23 # Generated by gnulib-tool.
25 AUTOMAKE_OPTIONS = 1.11 foreign subdir-objects
36 check_LIBRARIES = libtests.a
40 MOSTLYCLEANFILES = core *.stackdump
44 MAINTAINERCLEANFILES =
47 -D@M4tests_WITNESS@=1 \
50 -I../lib -I$(srcdir)/../lib
52 LDADD = libtests.a ../lib/libm4.a libtests.a ../lib/libm4.a libtests.a $(LIBTESTS_LIBDEPS)
55 libtests_a_LIBADD = $(M4tests_LIBOBJS)
56 libtests_a_DEPENDENCIES = $(M4tests_LIBOBJS)
57 EXTRA_libtests_a_SOURCES =
58 AM_LIBTOOLFLAGS = --preserve-dup-deps
60 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
62 ## begin gnulib module accept
65 EXTRA_DIST += accept.c w32sock.h
67 EXTRA_libtests_a_SOURCES += accept.c
69 ## end gnulib module accept
71 ## begin gnulib module accept-tests
74 check_PROGRAMS += test-accept
75 test_accept_LDADD = $(LDADD) @LIBSOCKET@
76 EXTRA_DIST += test-accept.c signature.h macros.h
78 ## end gnulib module accept-tests
80 ## begin gnulib module access-tests
83 check_PROGRAMS += test-access
84 EXTRA_DIST += test-access.c signature.h macros.h
86 ## end gnulib module access-tests
88 ## begin gnulib module alignof-tests
91 check_PROGRAMS += test-alignof
93 EXTRA_DIST += test-alignof.c
95 ## end gnulib module alignof-tests
97 ## begin gnulib module alloca
100 libtests_a_LIBADD += @ALLOCA@
101 libtests_a_DEPENDENCIES += @ALLOCA@
102 EXTRA_DIST += alloca.c
104 EXTRA_libtests_a_SOURCES += alloca.c
106 ## end gnulib module alloca
108 ## begin gnulib module alloca-opt-tests
110 TESTS += test-alloca-opt
111 check_PROGRAMS += test-alloca-opt
113 EXTRA_DIST += test-alloca-opt.c
115 ## end gnulib module alloca-opt-tests
117 ## begin gnulib module arpa_inet
119 BUILT_SOURCES += arpa/inet.h
121 # We need the following in order to create <arpa/inet.h> when the system
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; \
147 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
148 MOSTLYCLEANDIRS += arpa
150 EXTRA_DIST += arpa_inet.in.h
152 ## end gnulib module arpa_inet
154 ## begin gnulib module arpa_inet-c++-tests
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)
162 EXTRA_DIST += test-arpa_inet-c++.cc signature.h
164 ## end gnulib module arpa_inet-c++-tests
166 ## begin gnulib module arpa_inet-tests
168 TESTS += test-arpa_inet
169 check_PROGRAMS += test-arpa_inet
170 EXTRA_DIST += test-arpa_inet.c
172 ## end gnulib module arpa_inet-tests
174 ## begin gnulib module array-list
176 libtests_a_SOURCES += gl_array_list.h gl_array_list.c
178 ## end gnulib module array-list
180 ## begin gnulib module array-list-tests
182 TESTS += test-array_list
183 check_PROGRAMS += test-array_list
185 EXTRA_DIST += test-array_list.c macros.h
187 ## end gnulib module array-list-tests
189 ## begin gnulib module array-oset
191 libtests_a_SOURCES += gl_array_oset.h gl_array_oset.c
193 ## end gnulib module array-oset
195 ## begin gnulib module array-oset-tests
197 TESTS += test-array_oset
198 check_PROGRAMS += test-array_oset
199 test_array_oset_LDADD = $(LDADD) @LIBINTL@
201 EXTRA_DIST += test-array_oset.c test-oset-update.h macros.h
203 ## end gnulib module array-oset-tests
205 ## begin gnulib module asyncsafe-spin-tests
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
212 ## end gnulib module asyncsafe-spin-tests
214 ## begin gnulib module avltree-oset-tests
216 TESTS += test-avltree_oset
217 check_PROGRAMS += test-avltree_oset
218 EXTRA_DIST += test-avltree_oset.c test-oset-update.h macros.h
220 ## end gnulib module avltree-oset-tests
222 ## begin gnulib module binary-io-tests
224 TESTS += test-binary-io.sh
225 check_PROGRAMS += test-binary-io
227 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
229 ## end gnulib module binary-io-tests
231 ## begin gnulib module bind
234 EXTRA_DIST += bind.c w32sock.h
236 EXTRA_libtests_a_SOURCES += bind.c
238 ## end gnulib module bind
240 ## begin gnulib module bind-tests
243 check_PROGRAMS += test-bind
244 test_bind_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
245 EXTRA_DIST += test-bind.c signature.h macros.h
247 ## end gnulib module bind-tests
249 ## begin gnulib module bitrotate-tests
251 TESTS += test-bitrotate
252 check_PROGRAMS += test-bitrotate
253 EXTRA_DIST += test-bitrotate.c macros.h
255 ## end gnulib module bitrotate-tests
257 ## begin gnulib module btowc-tests
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
265 ## end gnulib module btowc-tests
267 ## begin gnulib module c-ctype-tests
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
274 ## end gnulib module c-ctype-tests
276 ## begin gnulib module c-stack-tests
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
285 ## end gnulib module c-stack-tests
287 ## begin gnulib module c-strcase-tests
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
296 ## end gnulib module c-strcase-tests
298 ## begin gnulib module calloc-gnu-tests
300 TESTS += test-calloc-gnu
301 check_PROGRAMS += test-calloc-gnu
302 EXTRA_DIST += test-calloc-gnu.c macros.h
304 ## end gnulib module calloc-gnu-tests
306 ## begin gnulib module canonicalize-lgpl-tests
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
313 ## end gnulib module canonicalize-lgpl-tests
315 ## begin gnulib module canonicalize-tests
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
322 ## end gnulib module canonicalize-tests
324 ## begin gnulib module chdir-tests
327 check_PROGRAMS += test-chdir
328 EXTRA_DIST += test-chdir.c signature.h macros.h
330 ## end gnulib module chdir-tests
332 ## begin gnulib module cloexec-tests
334 TESTS += test-cloexec
335 check_PROGRAMS += test-cloexec
336 EXTRA_DIST += test-cloexec.c macros.h
338 ## end gnulib module cloexec-tests
340 ## begin gnulib module close-tests
343 check_PROGRAMS += test-close
344 EXTRA_DIST += test-close.c signature.h macros.h
346 ## end gnulib module close-tests
348 ## begin gnulib module closein-tests
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
355 ## end gnulib module closein-tests
357 ## begin gnulib module connect
360 EXTRA_DIST += connect.c w32sock.h
362 EXTRA_libtests_a_SOURCES += connect.c
364 ## end gnulib module connect
366 ## begin gnulib module connect-tests
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
373 ## end gnulib module connect-tests
375 ## begin gnulib module creat
378 EXTRA_DIST += creat.c
380 EXTRA_libtests_a_SOURCES += creat.c
382 ## end gnulib module creat
384 ## begin gnulib module creat-tests
387 check_PROGRAMS += test-creat
388 EXTRA_DIST += test-creat.c signature.h macros.h
390 ## end gnulib module creat-tests
392 ## begin gnulib module ctype
394 BUILT_SOURCES += ctype.h
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; \
413 MOSTLYCLEANFILES += ctype.h ctype.h-t
415 EXTRA_DIST += ctype.in.h
417 ## end gnulib module ctype
419 ## begin gnulib module ctype-c++-tests
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
426 EXTRA_DIST += test-ctype-c++.cc test-ctype-c++2.cc signature.h
428 ## end gnulib module ctype-c++-tests
430 ## begin gnulib module ctype-tests
433 check_PROGRAMS += test-ctype
434 EXTRA_DIST += test-ctype.c
436 ## end gnulib module ctype-tests
438 ## begin gnulib module dirent-c++-tests
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)
446 EXTRA_DIST += test-dirent-c++.cc signature.h
448 ## end gnulib module dirent-c++-tests
450 ## begin gnulib module dirent-tests
453 check_PROGRAMS += test-dirent
454 EXTRA_DIST += test-dirent.c
456 ## end gnulib module dirent-tests
458 ## begin gnulib module dirname-tests
460 TESTS += test-dirname
461 check_PROGRAMS += test-dirname
462 test_dirname_LDADD = $(LDADD) @LIBINTL@
463 EXTRA_DIST += test-dirname.c
465 ## end gnulib module dirname-tests
467 ## begin gnulib module dup-tests
470 check_PROGRAMS += test-dup
471 EXTRA_DIST += test-dup.c signature.h macros.h
473 ## end gnulib module dup-tests
475 ## begin gnulib module dup2-tests
478 check_PROGRAMS += test-dup2
479 EXTRA_DIST += test-dup2.c signature.h macros.h
481 ## end gnulib module dup2-tests
483 ## begin gnulib module dynarray-tests
485 TESTS += test-dynarray
486 check_PROGRAMS += test-dynarray
487 EXTRA_DIST += test-dynarray.c macros.h
489 ## end gnulib module dynarray-tests
491 ## begin gnulib module environ-tests
493 TESTS += test-environ
494 check_PROGRAMS += test-environ
496 EXTRA_DIST += test-environ.c
498 ## end gnulib module environ-tests
500 ## begin gnulib module errno-c++-tests
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
507 EXTRA_DIST += test-errno-c++.cc test-errno-c++2.cc
509 ## end gnulib module errno-c++-tests
511 ## begin gnulib module errno-tests
514 check_PROGRAMS += test-errno
516 EXTRA_DIST += test-errno.c
518 ## end gnulib module errno-tests
520 ## begin gnulib module execute-tests
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 =
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
536 ## end gnulib module execute-tests
538 ## begin gnulib module explicit_bzero
541 EXTRA_DIST += explicit_bzero.c
543 EXTRA_libtests_a_SOURCES += explicit_bzero.c
545 ## end gnulib module explicit_bzero
547 ## begin gnulib module explicit_bzero-tests
549 TESTS += test-explicit_bzero
550 check_PROGRAMS += test-explicit_bzero
551 EXTRA_DIST += test-explicit_bzero.c signature.h macros.h
553 ## end gnulib module explicit_bzero-tests
555 ## begin gnulib module fchdir-tests
558 check_PROGRAMS += test-fchdir
559 test_fchdir_LDADD = $(LDADD) $(LIBINTL)
560 EXTRA_DIST += test-fchdir.c signature.h macros.h
562 ## end gnulib module fchdir-tests
564 ## begin gnulib module fclose-tests
567 check_PROGRAMS += test-fclose
568 EXTRA_DIST += test-fclose.c
570 ## end gnulib module fclose-tests
572 ## begin gnulib module fcntl-h-c++-tests
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)
580 EXTRA_DIST += test-fcntl-h-c++.cc signature.h
582 ## end gnulib module fcntl-h-c++-tests
584 ## begin gnulib module fcntl-h-tests
586 TESTS += test-fcntl-h
587 check_PROGRAMS += test-fcntl-h
588 EXTRA_DIST += test-fcntl-h.c
590 ## end gnulib module fcntl-h-tests
592 ## begin gnulib module fcntl-tests
595 check_PROGRAMS += test-fcntl
596 EXTRA_DIST += test-fcntl.c signature.h macros.h
598 ## end gnulib module fcntl-tests
600 ## begin gnulib module fdopen
603 EXTRA_DIST += fdopen.c
605 EXTRA_libtests_a_SOURCES += fdopen.c
607 ## end gnulib module fdopen
609 ## begin gnulib module fdopen-tests
612 check_PROGRAMS += test-fdopen
613 EXTRA_DIST += test-fdopen.c signature.h macros.h
615 ## end gnulib module fdopen-tests
617 ## begin gnulib module fdopendir-tests
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
624 ## end gnulib module fdopendir-tests
626 ## begin gnulib module fflush-tests
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
633 ## end gnulib module fflush-tests
635 ## begin gnulib module fgetc-tests
638 check_PROGRAMS += test-fgetc
639 EXTRA_DIST += test-fgetc.c signature.h macros.h
641 ## end gnulib module fgetc-tests
643 ## begin gnulib module filenamecat-tests
645 TESTS += test-filenamecat
646 check_PROGRAMS += test-filenamecat
647 test_filenamecat_LDADD = $(LDADD) @LIBINTL@
648 EXTRA_DIST += test-filenamecat.c
650 ## end gnulib module filenamecat-tests
652 ## begin gnulib module findprog
654 libtests_a_SOURCES += findprog.h findprog.c
656 ## end gnulib module findprog
658 ## begin gnulib module float-c++-tests
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
665 EXTRA_DIST += test-float-c++.cc test-float-c++2.cc
667 ## end gnulib module float-c++-tests
669 ## begin gnulib module float-tests
672 check_PROGRAMS += test-float
673 EXTRA_DIST += test-float.c macros.h
675 ## end gnulib module float-tests
677 ## begin gnulib module fopen-gnu-tests
679 TESTS += test-fopen-gnu
680 check_PROGRAMS += test-fopen-gnu
681 EXTRA_DIST += test-fopen-gnu.c macros.h
683 ## end gnulib module fopen-gnu-tests
685 ## begin gnulib module fopen-safer-tests
687 TESTS += test-fopen-safer
688 check_PROGRAMS += test-fopen-safer
689 EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
691 ## end gnulib module fopen-safer-tests
693 ## begin gnulib module fopen-tests
696 check_PROGRAMS += test-fopen
698 EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
700 ## end gnulib module fopen-tests
702 ## begin gnulib module fpending-tests
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
709 ## end gnulib module fpending-tests
711 ## begin gnulib module fpurge-tests
714 check_PROGRAMS += test-fpurge
715 MOSTLYCLEANFILES += t-fpurge.tmp
716 EXTRA_DIST += test-fpurge.c macros.h
718 ## end gnulib module fpurge-tests
720 ## begin gnulib module fputc-tests
723 check_PROGRAMS += test-fputc
724 EXTRA_DIST += test-fputc.c signature.h macros.h
726 ## end gnulib module fputc-tests
728 ## begin gnulib module fread-tests
731 check_PROGRAMS += test-fread
732 EXTRA_DIST += test-fread.c signature.h macros.h
734 ## end gnulib module fread-tests
736 ## begin gnulib module freadahead-tests
738 TESTS += test-freadahead.sh
739 check_PROGRAMS += test-freadahead
740 EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
742 ## end gnulib module freadahead-tests
744 ## begin gnulib module freading-tests
746 TESTS += test-freading
747 check_PROGRAMS += test-freading
748 MOSTLYCLEANFILES += t-freading.tmp
749 EXTRA_DIST += test-freading.c macros.h
751 ## end gnulib module freading-tests
753 ## begin gnulib module free-posix-tests
756 check_PROGRAMS += test-free
757 EXTRA_DIST += test-free.c macros.h
759 ## end gnulib module free-posix-tests
761 ## begin gnulib module freopen
764 EXTRA_DIST += freopen.c
766 EXTRA_libtests_a_SOURCES += freopen.c
768 ## end gnulib module freopen
770 ## begin gnulib module freopen-tests
772 TESTS += test-freopen
773 check_PROGRAMS += test-freopen
775 EXTRA_DIST += test-freopen.c signature.h macros.h
777 ## end gnulib module freopen-tests
779 ## begin gnulib module frexp-nolibm-tests
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
786 ## end gnulib module frexp-nolibm-tests
788 ## begin gnulib module frexpl-nolibm-tests
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
795 ## end gnulib module frexpl-nolibm-tests
797 ## begin gnulib module fseek-tests
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
803 ## end gnulib module fseek-tests
805 ## begin gnulib module fseeko-tests
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
811 ## end gnulib module fseeko-tests
813 ## begin gnulib module fstat-tests
816 check_PROGRAMS += test-fstat
817 EXTRA_DIST += test-fstat.c signature.h macros.h
819 ## end gnulib module fstat-tests
821 ## begin gnulib module fstatat-tests
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
828 ## end gnulib module fstatat-tests
830 ## begin gnulib module ftell-tests
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
837 ## end gnulib module ftell-tests
839 ## begin gnulib module ftello-tests
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
846 ## end gnulib module ftello-tests
848 ## begin gnulib module ftruncate
851 EXTRA_DIST += ftruncate.c
853 EXTRA_libtests_a_SOURCES += ftruncate.c
855 ## end gnulib module ftruncate
857 ## begin gnulib module ftruncate-tests
859 TESTS += test-ftruncate.sh
860 check_PROGRAMS += test-ftruncate
861 EXTRA_DIST += test-ftruncate.c test-ftruncate.sh signature.h macros.h
863 ## end gnulib module ftruncate-tests
865 ## begin gnulib module fwrite-tests
868 check_PROGRAMS += test-fwrite
869 EXTRA_DIST += test-fwrite.c signature.h macros.h
871 ## end gnulib module fwrite-tests
873 ## begin gnulib module getcwd-lgpl-tests
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
880 ## end gnulib module getcwd-lgpl-tests
882 ## begin gnulib module getcwd-tests
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
889 ## end gnulib module getcwd-tests
891 ## begin gnulib module getdtablesize-tests
893 TESTS += test-getdtablesize
894 check_PROGRAMS += test-getdtablesize
895 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
897 ## end gnulib module getdtablesize-tests
899 ## begin gnulib module getopt-gnu-tests
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
906 ## end gnulib module getopt-gnu-tests
908 ## begin gnulib module getprogname-tests
910 DEFS += -DEXEEXT=\"@EXEEXT@\"
911 TESTS += test-getprogname
912 check_PROGRAMS += test-getprogname
913 test_getprogname_LDADD = $(LDADD)
914 EXTRA_DIST += test-getprogname.c
916 ## end gnulib module getprogname-tests
918 ## begin gnulib module getrandom-tests
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
925 ## end gnulib module getrandom-tests
927 ## begin gnulib module gettimeofday
930 EXTRA_DIST += gettimeofday.c
932 EXTRA_libtests_a_SOURCES += gettimeofday.c
934 ## end gnulib module gettimeofday
936 ## begin gnulib module gettimeofday-tests
938 TESTS += test-gettimeofday
939 check_PROGRAMS += test-gettimeofday
941 EXTRA_DIST += signature.h test-gettimeofday.c
943 ## end gnulib module gettimeofday-tests
945 ## begin gnulib module gperf
948 V_GPERF = $(V_GPERF_@AM_V@)
949 V_GPERF_ = $(V_GPERF_@AM_DEFAULT_V@)
950 V_GPERF_0 = @echo " GPERF " $@;
952 ## end gnulib module gperf
954 ## begin gnulib module hard-locale-tests
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
965 ## end gnulib module hard-locale-tests
967 ## begin gnulib module hash-tests
970 check_PROGRAMS += test-hash
971 EXTRA_DIST += test-hash.c macros.h
973 ## end gnulib module hash-tests
975 ## begin gnulib module iconv-h-c++-tests
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)
983 EXTRA_DIST += test-iconv-h-c++.cc signature.h
985 ## end gnulib module iconv-h-c++-tests
987 ## begin gnulib module iconv-h-tests
989 TESTS += test-iconv-h
990 check_PROGRAMS += test-iconv-h
991 EXTRA_DIST += test-iconv-h.c
993 ## end gnulib module iconv-h-tests
995 ## begin gnulib module iconv-tests
998 check_PROGRAMS += test-iconv
999 test_iconv_LDADD = $(LDADD) @LIBICONV@
1001 EXTRA_DIST += test-iconv.c signature.h macros.h
1003 ## end gnulib module iconv-tests
1005 ## begin gnulib module ignore-value-tests
1007 TESTS += test-ignore-value
1008 check_PROGRAMS += test-ignore-value
1009 EXTRA_DIST += test-ignore-value.c
1011 ## end gnulib module ignore-value-tests
1013 ## begin gnulib module inet_pton
1016 EXTRA_DIST += inet_pton.c
1018 EXTRA_libtests_a_SOURCES += inet_pton.c
1020 ## end gnulib module inet_pton
1022 ## begin gnulib module inet_pton-tests
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
1029 ## end gnulib module inet_pton-tests
1031 ## begin gnulib module intprops-tests
1033 TESTS += test-intprops
1034 check_PROGRAMS += test-intprops
1035 EXTRA_DIST += test-intprops.c macros.h
1037 ## end gnulib module intprops-tests
1039 ## begin gnulib module inttostr
1041 libtests_a_SOURCES += imaxtostr.c inttostr.c offtostr.c uinttostr.c umaxtostr.c
1043 EXTRA_DIST += anytostr.c inttostr.h
1045 EXTRA_libtests_a_SOURCES += anytostr.c
1047 ## end gnulib module inttostr
1049 ## begin gnulib module inttostr-tests
1051 TESTS += test-inttostr
1052 check_PROGRAMS += test-inttostr
1053 EXTRA_DIST += macros.h test-inttostr.c
1055 ## end gnulib module inttostr-tests
1057 ## begin gnulib module inttypes-c++-tests
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
1064 EXTRA_DIST += test-inttypes-c++.cc test-inttypes-c++2.cc signature.h
1066 ## end gnulib module inttypes-c++-tests
1068 ## begin gnulib module inttypes-tests
1070 TESTS += test-inttypes
1071 check_PROGRAMS += test-inttypes
1072 EXTRA_DIST += test-inttypes.c
1074 ## end gnulib module inttypes-tests
1076 ## begin gnulib module ioctl
1079 EXTRA_DIST += ioctl.c w32sock.h
1081 EXTRA_libtests_a_SOURCES += ioctl.c
1083 ## end gnulib module ioctl
1085 ## begin gnulib module ioctl-tests
1088 check_PROGRAMS += test-ioctl
1089 EXTRA_DIST += test-ioctl.c signature.h macros.h
1091 ## end gnulib module ioctl-tests
1093 ## begin gnulib module isblank
1096 EXTRA_DIST += isblank.c
1098 EXTRA_libtests_a_SOURCES += isblank.c
1100 ## end gnulib module isblank
1102 ## begin gnulib module isblank-tests
1104 TESTS += test-isblank
1105 check_PROGRAMS += test-isblank
1106 EXTRA_DIST += test-isblank.c signature.h macros.h
1108 ## end gnulib module isblank-tests
1110 ## begin gnulib module isnand-nolibm-tests
1112 TESTS += test-isnand-nolibm
1113 check_PROGRAMS += test-isnand-nolibm
1115 EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h infinity.h nan.h macros.h
1117 ## end gnulib module isnand-nolibm-tests
1119 ## begin gnulib module isnanf-nolibm-tests
1121 TESTS += test-isnanf-nolibm
1122 check_PROGRAMS += test-isnanf-nolibm
1124 EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h infinity.h nan.h macros.h
1126 ## end gnulib module isnanf-nolibm-tests
1128 ## begin gnulib module isnanl-nolibm-tests
1130 TESTS += test-isnanl-nolibm
1131 check_PROGRAMS += test-isnanl-nolibm
1133 EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h infinity.h nan.h macros.h
1135 ## end gnulib module isnanl-nolibm-tests
1137 ## begin gnulib module iswblank-tests
1139 TESTS += test-iswblank
1140 check_PROGRAMS += test-iswblank
1141 EXTRA_DIST += test-iswblank.c macros.h
1143 ## end gnulib module iswblank-tests
1145 ## begin gnulib module iswdigit-tests
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
1157 ## end gnulib module iswdigit-tests
1159 ## begin gnulib module iswxdigit-tests
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
1171 ## end gnulib module iswxdigit-tests
1173 ## begin gnulib module langinfo-c++-tests
1176 TESTS += test-langinfo-c++
1177 check_PROGRAMS += test-langinfo-c++
1178 test_langinfo_c___SOURCES = test-langinfo-c++.cc
1180 EXTRA_DIST += test-langinfo-c++.cc signature.h
1182 ## end gnulib module langinfo-c++-tests
1184 ## begin gnulib module langinfo-tests
1186 TESTS += test-langinfo
1187 check_PROGRAMS += test-langinfo
1188 EXTRA_DIST += test-langinfo.c
1190 ## end gnulib module langinfo-tests
1192 ## begin gnulib module limits-h-c++-tests
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
1199 EXTRA_DIST += test-limits-h-c++.cc test-limits-h-c++2.cc
1201 ## end gnulib module limits-h-c++-tests
1203 ## begin gnulib module limits-h-tests
1205 TESTS += test-limits-h
1206 check_PROGRAMS += test-limits-h
1207 EXTRA_DIST += test-limits-h.c
1209 ## end gnulib module limits-h-tests
1211 ## begin gnulib module link
1214 EXTRA_DIST += link.c
1216 EXTRA_libtests_a_SOURCES += link.c
1218 ## end gnulib module link
1220 ## begin gnulib module link-tests
1223 check_PROGRAMS += test-link
1224 EXTRA_DIST += test-link.h test-link.c signature.h macros.h
1226 ## end gnulib module link-tests
1228 ## begin gnulib module linked-list-tests
1230 TESTS += test-linked_list
1231 check_PROGRAMS += test-linked_list
1232 EXTRA_DIST += test-linked_list.c macros.h
1234 ## end gnulib module linked-list-tests
1236 ## begin gnulib module linkedhash-list-tests
1238 TESTS += test-linkedhash_list
1239 check_PROGRAMS += test-linkedhash_list
1240 EXTRA_DIST += test-linkedhash_list.c macros.h
1242 ## end gnulib module linkedhash-list-tests
1244 ## begin gnulib module listen
1247 EXTRA_DIST += listen.c w32sock.h
1249 EXTRA_libtests_a_SOURCES += listen.c
1251 ## end gnulib module listen
1253 ## begin gnulib module listen-tests
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
1260 ## end gnulib module listen-tests
1262 ## begin gnulib module localcharset-tests
1264 noinst_PROGRAMS += test-localcharset
1265 test_localcharset_LDADD = $(LDADD) $(LIB_SETLOCALE)
1266 EXTRA_DIST += test-localcharset.c
1268 ## end gnulib module localcharset-tests
1270 ## begin gnulib module locale-c++-tests
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)
1278 EXTRA_DIST += test-locale-c++.cc test-locale-c++2.cc signature.h
1280 ## end gnulib module locale-c++-tests
1282 ## begin gnulib module locale-tests
1284 TESTS += test-locale
1285 check_PROGRAMS += test-locale
1286 EXTRA_DIST += test-locale.c
1288 ## end gnulib module locale-tests
1290 ## begin gnulib module localeconv-tests
1292 TESTS += test-localeconv
1293 check_PROGRAMS += test-localeconv
1294 EXTRA_DIST += test-localeconv.c signature.h macros.h
1296 ## end gnulib module localeconv-tests
1298 ## begin gnulib module localename-tests
1300 TESTS += test-localename
1301 check_PROGRAMS += test-localename
1302 test_localename_LDADD = $(LDADD) $(LIB_SETLOCALE) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
1304 EXTRA_DIST += test-localename.c macros.h
1306 ## end gnulib module localename-tests
1308 ## begin gnulib module lseek-tests
1310 TESTS += test-lseek.sh
1311 check_PROGRAMS += test-lseek
1312 EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
1314 ## end gnulib module lseek-tests
1316 ## begin gnulib module lstat-tests
1319 check_PROGRAMS += test-lstat
1320 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
1322 ## end gnulib module lstat-tests
1324 ## begin gnulib module malloc-gnu-tests
1326 TESTS += test-malloc-gnu
1327 check_PROGRAMS += test-malloc-gnu
1328 EXTRA_DIST += test-malloc-gnu.c macros.h
1330 ## end gnulib module malloc-gnu-tests
1332 ## begin gnulib module malloca-tests
1334 TESTS += test-malloca
1335 check_PROGRAMS += test-malloca
1337 EXTRA_DIST += test-malloca.c
1339 ## end gnulib module malloca-tests
1341 ## begin gnulib module math-c++-tests
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)
1350 EXTRA_DIST += test-math-c++.cc test-math-c++2.cc signature.h
1352 ## end gnulib module math-c++-tests
1354 ## begin gnulib module math-tests
1357 check_PROGRAMS += test-math
1358 EXTRA_DIST += test-math.c macros.h
1360 ## end gnulib module math-tests
1362 ## begin gnulib module mbrtowc-tests
1365 test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.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
1379 ## end gnulib module mbrtowc-tests
1381 ## begin gnulib module mbsinit-tests
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
1389 ## end gnulib module mbsinit-tests
1391 ## begin gnulib module mbsstr-tests
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
1401 ## end gnulib module mbsstr-tests
1403 ## begin gnulib module memchr-tests
1405 TESTS += test-memchr
1406 check_PROGRAMS += test-memchr
1407 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
1409 ## end gnulib module memchr-tests
1411 ## begin gnulib module memchr2-tests
1413 TESTS += test-memchr2
1414 check_PROGRAMS += test-memchr2
1415 EXTRA_DIST += test-memchr2.c zerosize-ptr.h macros.h
1417 ## end gnulib module memchr2-tests
1419 ## begin gnulib module memrchr-tests
1421 TESTS += test-memrchr
1422 check_PROGRAMS += test-memrchr
1423 EXTRA_DIST += test-memrchr.c zerosize-ptr.h signature.h macros.h
1425 ## end gnulib module memrchr-tests
1427 ## begin gnulib module mkdir-tests
1430 check_PROGRAMS += test-mkdir
1431 EXTRA_DIST += test-mkdir.h test-mkdir.c signature.h macros.h
1433 ## end gnulib module mkdir-tests
1435 ## begin gnulib module nanosleep
1438 EXTRA_DIST += nanosleep.c
1440 EXTRA_libtests_a_SOURCES += nanosleep.c
1442 ## end gnulib module nanosleep
1444 ## begin gnulib module nanosleep-tests
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
1451 ## end gnulib module nanosleep-tests
1453 ## begin gnulib module netinet_in
1455 BUILT_SOURCES += $(NETINET_IN_H)
1457 # We need the following in order to create <netinet/in.h> when the system
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; \
1474 netinet/in.h: $(top_builddir)/config.status
1477 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
1478 MOSTLYCLEANDIRS += netinet
1480 EXTRA_DIST += netinet_in.in.h
1482 ## end gnulib module netinet_in
1484 ## begin gnulib module netinet_in-tests
1486 TESTS += test-netinet_in
1487 check_PROGRAMS += test-netinet_in
1488 EXTRA_DIST += test-netinet_in.c
1490 ## end gnulib module netinet_in-tests
1492 ## begin gnulib module nl_langinfo-tests
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
1501 ## end gnulib module nl_langinfo-tests
1503 ## begin gnulib module open-tests
1506 check_PROGRAMS += test-open
1507 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
1509 ## end gnulib module open-tests
1511 ## begin gnulib module openat-tests
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
1518 ## end gnulib module openat-tests
1520 ## begin gnulib module pathmax-tests
1522 TESTS += test-pathmax
1523 check_PROGRAMS += test-pathmax
1524 EXTRA_DIST += test-pathmax.c
1526 ## end gnulib module pathmax-tests
1528 ## begin gnulib module perror
1531 EXTRA_DIST += perror.c
1533 EXTRA_libtests_a_SOURCES += perror.c
1535 ## end gnulib module perror
1537 ## begin gnulib module perror-tests
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
1543 ## end gnulib module perror-tests
1545 ## begin gnulib module pipe-posix-tests
1548 check_PROGRAMS += test-pipe
1549 EXTRA_DIST += test-pipe.c signature.h macros.h
1551 ## end gnulib module pipe-posix-tests
1553 ## begin gnulib module pipe2-tests
1556 check_PROGRAMS += test-pipe2
1557 test_pipe2_LDADD = $(LDADD) $(LIBSOCKET)
1558 EXTRA_DIST += test-pipe2.c signature.h macros.h
1560 ## end gnulib module pipe2-tests
1562 ## begin gnulib module posix_spawn-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
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
1579 ## end gnulib module posix_spawn-tests
1581 ## begin gnulib module posix_spawn_file_actions_addchdir-tests
1584 test-posix_spawn_file_actions_addchdir \
1585 test-posix_spawn-chdir
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
1592 ## end gnulib module posix_spawn_file_actions_addchdir-tests
1594 ## begin gnulib module posix_spawn_file_actions_addclose-tests
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
1600 ## end gnulib module posix_spawn_file_actions_addclose-tests
1602 ## begin gnulib module posix_spawn_file_actions_adddup2-tests
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
1608 ## end gnulib module posix_spawn_file_actions_adddup2-tests
1610 ## begin gnulib module posix_spawn_file_actions_addopen-tests
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
1616 ## end gnulib module posix_spawn_file_actions_addopen-tests
1618 ## begin gnulib module posix_spawnp-tests
1621 test-posix_spawn-dup2-stdout \
1622 test-posix_spawn-dup2-stdin \
1623 test-posix_spawnp-script
1625 test-posix_spawn-dup2-stdout \
1626 test-posix_spawn-dup2-stdin \
1627 test-posix_spawnp-script
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 && \
1634 MOSTLYCLEANFILES += test-posix_spawn-dup2-stdout.sh test-posix_spawn-dup2-stdout.sh-t
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 && \
1641 MOSTLYCLEANFILES += test-posix_spawn-dup2-stdin.sh test-posix_spawn-dup2-stdin.sh-t
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
1646 ## end gnulib module posix_spawnp-tests
1648 ## begin gnulib module printf-frexp-tests
1650 TESTS += test-printf-frexp
1651 check_PROGRAMS += test-printf-frexp
1652 EXTRA_DIST += test-printf-frexp.c macros.h
1654 ## end gnulib module printf-frexp-tests
1656 ## begin gnulib module printf-frexpl-tests
1658 TESTS += test-printf-frexpl
1659 check_PROGRAMS += test-printf-frexpl
1660 EXTRA_DIST += test-printf-frexpl.c macros.h
1662 ## end gnulib module printf-frexpl-tests
1664 ## begin gnulib module pthread-h
1666 BUILT_SOURCES += pthread.h
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)'; \
1802 MOSTLYCLEANFILES += pthread.h pthread.h-t
1804 EXTRA_DIST += pthread.in.h
1806 ## end gnulib module pthread-h
1808 ## begin gnulib module pthread-h-c++-tests
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)
1816 EXTRA_DIST += test-pthread-c++.cc signature.h
1818 ## end gnulib module pthread-h-c++-tests
1820 ## begin gnulib module pthread-h-tests
1822 TESTS += test-pthread
1823 check_PROGRAMS += test-pthread
1824 EXTRA_DIST += test-pthread.c
1826 ## end gnulib module pthread-h-tests
1828 ## begin gnulib module pthread-thread
1831 EXTRA_DIST += pthread-thread.c
1833 EXTRA_libtests_a_SOURCES += pthread-thread.c
1835 ## end gnulib module pthread-thread
1837 ## begin gnulib module pthread-thread-tests
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
1844 ## end gnulib module pthread-thread-tests
1846 ## begin gnulib module pthread_sigmask
1849 EXTRA_DIST += pthread_sigmask.c
1851 EXTRA_libtests_a_SOURCES += pthread_sigmask.c
1853 ## end gnulib module pthread_sigmask
1855 ## begin gnulib module pthread_sigmask-tests
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
1863 ## end gnulib module pthread_sigmask-tests
1865 ## begin gnulib module putenv
1868 EXTRA_DIST += putenv.c
1870 EXTRA_libtests_a_SOURCES += putenv.c
1872 ## end gnulib module putenv
1874 ## begin gnulib module quotearg-simple-tests
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
1881 ## end gnulib module quotearg-simple-tests
1883 ## begin gnulib module raise-tests
1886 check_PROGRAMS += test-raise
1887 EXTRA_DIST += test-raise.c signature.h macros.h
1889 ## end gnulib module raise-tests
1891 ## begin gnulib module rawmemchr-tests
1893 TESTS += test-rawmemchr
1894 check_PROGRAMS += test-rawmemchr
1895 EXTRA_DIST += test-rawmemchr.c zerosize-ptr.h signature.h macros.h
1897 ## end gnulib module rawmemchr-tests
1899 ## begin gnulib module read-file
1901 libtests_a_SOURCES += read-file.c
1903 EXTRA_DIST += read-file.h
1905 ## end gnulib module read-file
1907 ## begin gnulib module read-file-tests
1909 TESTS += test-read-file
1910 check_PROGRAMS += test-read-file
1911 EXTRA_DIST += test-read-file.c macros.h
1913 ## end gnulib module read-file-tests
1915 ## begin gnulib module readlink-tests
1917 TESTS += test-readlink
1918 check_PROGRAMS += test-readlink
1919 EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
1921 ## end gnulib module readlink-tests
1923 ## begin gnulib module realloc-gnu-tests
1925 TESTS += test-realloc-gnu
1926 check_PROGRAMS += test-realloc-gnu
1927 EXTRA_DIST += test-realloc-gnu.c macros.h
1929 ## end gnulib module realloc-gnu-tests
1931 ## begin gnulib module reallocarray-tests
1933 TESTS += test-reallocarray
1934 check_PROGRAMS += test-reallocarray
1935 EXTRA_DIST += test-reallocarray.c signature.h macros.h
1937 ## end gnulib module reallocarray-tests
1939 ## begin gnulib module regex-tests
1942 check_PROGRAMS += test-regex
1943 test_regex_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIB_MBRTOWC) @LIBINTL@ $(LIBTHREAD)
1944 EXTRA_DIST += test-regex.c macros.h
1946 ## end gnulib module regex-tests
1948 ## begin gnulib module rename-tests
1950 TESTS += test-rename
1951 check_PROGRAMS += test-rename
1952 EXTRA_DIST += test-rename.h test-rename.c signature.h macros.h
1954 ## end gnulib module rename-tests
1956 ## begin gnulib module rmdir-tests
1959 check_PROGRAMS += test-rmdir
1960 EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
1962 ## end gnulib module rmdir-tests
1964 ## begin gnulib module root-uid
1967 EXTRA_DIST += root-uid.h
1969 ## end gnulib module root-uid
1971 ## begin gnulib module sched-tests
1974 check_PROGRAMS += test-sched
1975 EXTRA_DIST += test-sched.c
1977 ## end gnulib module sched-tests
1979 ## begin gnulib module sched_yield
1982 EXTRA_DIST += sched_yield.c
1984 EXTRA_libtests_a_SOURCES += sched_yield.c
1986 ## end gnulib module sched_yield
1988 ## begin gnulib module scratch_buffer-tests
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
1995 ## end gnulib module scratch_buffer-tests
1997 ## begin gnulib module select
2000 EXTRA_DIST += select.c
2002 EXTRA_libtests_a_SOURCES += select.c
2004 ## end gnulib module select
2006 ## begin gnulib module select-tests
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
2016 ## end gnulib module select-tests
2018 ## begin gnulib module setenv
2021 EXTRA_DIST += setenv.c
2023 EXTRA_libtests_a_SOURCES += setenv.c
2025 ## end gnulib module setenv
2027 ## begin gnulib module setenv-tests
2029 TESTS += test-setenv
2030 check_PROGRAMS += test-setenv
2031 EXTRA_DIST += test-setenv.c signature.h macros.h
2033 ## end gnulib module setenv-tests
2035 ## begin gnulib module setlocale-null-tests
2038 test-setlocale_null \
2039 test-setlocale_null-mt-one \
2040 test-setlocale_null-mt-all
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
2050 ## end gnulib module setlocale-null-tests
2052 ## begin gnulib module setlocale-tests
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
2065 ## end gnulib module setlocale-tests
2067 ## begin gnulib module setsockopt
2070 EXTRA_DIST += setsockopt.c w32sock.h
2072 EXTRA_libtests_a_SOURCES += setsockopt.c
2074 ## end gnulib module setsockopt
2076 ## begin gnulib module setsockopt-tests
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
2083 ## end gnulib module setsockopt-tests
2085 ## begin gnulib module sigaction-tests
2087 TESTS += test-sigaction
2088 check_PROGRAMS += test-sigaction
2089 EXTRA_DIST += test-sigaction.c signature.h macros.h
2091 ## end gnulib module sigaction-tests
2093 ## begin gnulib module signal-h-c++-tests
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)
2101 EXTRA_DIST += test-signal-h-c++.cc test-signal-h-c++2.cc signature.h
2103 ## end gnulib module signal-h-c++-tests
2105 ## begin gnulib module signal-h-tests
2107 TESTS += test-signal-h
2108 check_PROGRAMS += test-signal-h
2109 EXTRA_DIST += test-signal-h.c
2111 ## end gnulib module signal-h-tests
2113 ## begin gnulib module signbit-tests
2115 TESTS += test-signbit
2116 check_PROGRAMS += test-signbit
2118 EXTRA_DIST += test-signbit.c minus-zero.h infinity.h macros.h
2120 ## end gnulib module signbit-tests
2122 ## begin gnulib module sigpipe-tests
2124 TESTS += test-sigpipe.sh
2125 check_PROGRAMS += test-sigpipe
2127 EXTRA_DIST += test-sigpipe.c test-sigpipe.sh macros.h
2129 ## end gnulib module sigpipe-tests
2131 ## begin gnulib module sigprocmask-tests
2133 TESTS += test-sigprocmask
2134 check_PROGRAMS += test-sigprocmask
2135 EXTRA_DIST += test-sigprocmask.c signature.h macros.h
2137 ## end gnulib module sigprocmask-tests
2139 ## begin gnulib module sigsegv-tests
2142 test-sigsegv-catch-segv1 \
2143 test-sigsegv-catch-segv2 \
2144 test-sigsegv-catch-stackoverflow1 \
2145 test-sigsegv-catch-stackoverflow2
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
2157 ## end gnulib module sigsegv-tests
2159 ## begin gnulib module sleep
2162 EXTRA_DIST += sleep.c
2164 EXTRA_libtests_a_SOURCES += sleep.c
2166 ## end gnulib module sleep
2168 ## begin gnulib module sleep-tests
2171 check_PROGRAMS += test-sleep
2172 EXTRA_DIST += test-sleep.c signature.h macros.h
2174 ## end gnulib module sleep-tests
2176 ## begin gnulib module snippet/_Noreturn
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.
2182 _NORETURN_H=$(srcdir)/_Noreturn.h
2184 EXTRA_DIST += _Noreturn.h
2186 ## end gnulib module snippet/_Noreturn
2188 ## begin gnulib module snippet/arg-nonnull
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.
2194 ARG_NONNULL_H=$(srcdir)/arg-nonnull.h
2196 EXTRA_DIST += arg-nonnull.h
2198 ## end gnulib module snippet/arg-nonnull
2200 ## begin gnulib module snippet/c++defs
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.
2206 CXXDEFS_H=$(srcdir)/c++defs.h
2208 EXTRA_DIST += c++defs.h
2210 ## end gnulib module snippet/c++defs
2212 ## begin gnulib module snippet/unused-parameter
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.
2218 UNUSED_PARAMETER_H=$(srcdir)/unused-parameter.h
2220 EXTRA_DIST += unused-parameter.h
2222 ## end gnulib module snippet/unused-parameter
2224 ## begin gnulib module snippet/warn-on-use
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.
2230 WARN_ON_USE_H=$(srcdir)/warn-on-use.h
2232 EXTRA_DIST += warn-on-use.h
2234 ## end gnulib module snippet/warn-on-use
2236 ## begin gnulib module snprintf-tests
2238 TESTS += test-snprintf
2239 check_PROGRAMS += test-snprintf
2241 EXTRA_DIST += test-snprintf.c signature.h macros.h
2243 ## end gnulib module snprintf-tests
2245 ## begin gnulib module socket
2248 EXTRA_DIST += socket.c w32sock.h
2250 EXTRA_libtests_a_SOURCES += socket.c
2252 ## end gnulib module socket
2254 ## begin gnulib module sockets
2256 libtests_a_SOURCES += sockets.h sockets.c
2258 EXTRA_DIST += w32sock.h
2260 ## end gnulib module sockets
2262 ## begin gnulib module sockets-tests
2264 TESTS += test-sockets
2265 check_PROGRAMS += test-sockets
2266 test_sockets_LDADD = $(LDADD) @LIBSOCKET@
2267 EXTRA_DIST += test-sockets.c
2269 ## end gnulib module sockets-tests
2271 ## begin gnulib module spawn-c++-tests
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)
2279 EXTRA_DIST += test-spawn-c++.cc signature.h
2281 ## end gnulib module spawn-c++-tests
2283 ## begin gnulib module spawn-pipe-tests
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 =
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
2299 ## end gnulib module spawn-pipe-tests
2301 ## begin gnulib module spawn-tests
2304 check_PROGRAMS += test-spawn
2305 EXTRA_DIST += test-spawn.c
2307 ## end gnulib module spawn-tests
2309 ## begin gnulib module stat-tests
2312 check_PROGRAMS += test-stat
2313 test_stat_LDADD = $(LDADD) $(LIBINTL)
2314 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
2316 ## end gnulib module stat-tests
2318 ## begin gnulib module stat-time-tests
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
2325 ## end gnulib module stat-time-tests
2327 ## begin gnulib module stdalign-tests
2329 TESTS += test-stdalign
2330 check_PROGRAMS += test-stdalign
2331 EXTRA_DIST += test-stdalign.c macros.h
2333 ## end gnulib module stdalign-tests
2335 ## begin gnulib module stdbool-c++-tests
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
2342 EXTRA_DIST += test-stdbool-c++.cc test-stdbool-c++2.cc
2344 ## end gnulib module stdbool-c++-tests
2346 ## begin gnulib module stdbool-tests
2348 TESTS += test-stdbool
2349 check_PROGRAMS += test-stdbool
2350 EXTRA_DIST += test-stdbool.c
2352 ## end gnulib module stdbool-tests
2354 ## begin gnulib module stddef-c++-tests
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
2361 EXTRA_DIST += test-stddef-c++.cc test-stddef-c++2.cc
2363 ## end gnulib module stddef-c++-tests
2365 ## begin gnulib module stddef-tests
2367 TESTS += test-stddef
2368 check_PROGRAMS += test-stddef
2369 EXTRA_DIST += test-stddef.c
2371 ## end gnulib module stddef-tests
2373 ## begin gnulib module stdint-c++-tests
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
2380 EXTRA_DIST += test-stdint-c++.cc test-stdint-c++2.cc
2382 ## end gnulib module stdint-c++-tests
2384 ## begin gnulib module stdint-tests
2386 TESTS += test-stdint
2387 check_PROGRAMS += test-stdint
2388 EXTRA_DIST += test-stdint.c
2390 ## end gnulib module stdint-tests
2392 ## begin gnulib module stdio-c++-tests
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)
2400 EXTRA_DIST += test-stdio-c++.cc test-stdio-c++2.cc signature.h
2402 ## end gnulib module stdio-c++-tests
2404 ## begin gnulib module stdio-tests
2407 check_PROGRAMS += test-stdio
2408 EXTRA_DIST += test-stdio.c
2410 ## end gnulib module stdio-tests
2412 ## begin gnulib module stdlib-c++-tests
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)
2420 EXTRA_DIST += test-stdlib-c++.cc test-stdlib-c++2.cc signature.h
2422 ## end gnulib module stdlib-c++-tests
2424 ## begin gnulib module stdlib-tests
2426 TESTS += test-stdlib
2427 check_PROGRAMS += test-stdlib
2428 EXTRA_DIST += test-stdlib.c test-sys_wait.h
2430 ## end gnulib module stdlib-tests
2432 ## begin gnulib module strchrnul-tests
2434 TESTS += test-strchrnul
2435 check_PROGRAMS += test-strchrnul
2436 EXTRA_DIST += test-strchrnul.c signature.h macros.h
2438 ## end gnulib module strchrnul-tests
2440 ## begin gnulib module strerror-tests
2442 TESTS += test-strerror
2443 check_PROGRAMS += test-strerror
2444 EXTRA_DIST += test-strerror.c signature.h macros.h
2446 ## end gnulib module strerror-tests
2448 ## begin gnulib module strerror_r-posix
2451 EXTRA_DIST += strerror_r.c
2453 EXTRA_libtests_a_SOURCES += strerror_r.c
2455 ## end gnulib module strerror_r-posix
2457 ## begin gnulib module strerror_r-posix-tests
2459 TESTS += test-strerror_r
2460 check_PROGRAMS += test-strerror_r
2461 EXTRA_DIST += test-strerror_r.c signature.h macros.h
2463 ## end gnulib module strerror_r-posix-tests
2465 ## begin gnulib module striconv-tests
2467 TESTS += test-striconv
2468 check_PROGRAMS += test-striconv
2469 test_striconv_LDADD = $(LDADD) @LIBICONV@
2471 EXTRA_DIST += test-striconv.c macros.h
2473 ## end gnulib module striconv-tests
2475 ## begin gnulib module string-c++-tests
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)
2483 EXTRA_DIST += test-string-c++.cc test-string-c++2.cc signature.h
2485 ## end gnulib module string-c++-tests
2487 ## begin gnulib module string-tests
2489 TESTS += test-string
2490 check_PROGRAMS += test-string
2491 EXTRA_DIST += test-string.c
2493 ## end gnulib module string-tests
2495 ## begin gnulib module strnlen-tests
2497 TESTS += test-strnlen
2498 check_PROGRAMS += test-strnlen
2499 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
2501 ## end gnulib module strnlen-tests
2503 ## begin gnulib module strsignal-tests
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
2510 ## end gnulib module strsignal-tests
2512 ## begin gnulib module strstr-tests
2514 TESTS += test-strstr
2515 check_PROGRAMS += test-strstr
2516 EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
2518 ## end gnulib module strstr-tests
2520 ## begin gnulib module strtod-tests
2522 TESTS += test-strtod
2523 check_PROGRAMS += test-strtod
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
2533 ## end gnulib module strtod-tests
2535 ## begin gnulib module symlink
2538 EXTRA_DIST += symlink.c
2540 EXTRA_libtests_a_SOURCES += symlink.c
2542 ## end gnulib module symlink
2544 ## begin gnulib module symlink-tests
2546 TESTS += test-symlink
2547 check_PROGRAMS += test-symlink
2548 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
2550 ## end gnulib module symlink-tests
2552 ## begin gnulib module sys_ioctl
2554 BUILT_SOURCES += sys/ioctl.h
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; \
2577 MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
2578 MOSTLYCLEANDIRS += sys
2580 EXTRA_DIST += sys_ioctl.in.h
2582 ## end gnulib module sys_ioctl
2584 ## begin gnulib module sys_ioctl-c++-tests
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)
2592 EXTRA_DIST += test-sys_ioctl-c++.cc signature.h
2594 ## end gnulib module sys_ioctl-c++-tests
2596 ## begin gnulib module sys_ioctl-tests
2598 TESTS += test-sys_ioctl
2599 check_PROGRAMS += test-sys_ioctl
2600 EXTRA_DIST += test-sys_ioctl.c
2602 ## end gnulib module sys_ioctl-tests
2604 ## begin gnulib module sys_random-c++-tests
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)
2612 EXTRA_DIST += test-sys_random-c++.cc signature.h
2614 ## end gnulib module sys_random-c++-tests
2616 ## begin gnulib module sys_random-tests
2618 TESTS += test-sys_random
2619 check_PROGRAMS += test-sys_random
2620 EXTRA_DIST += test-sys_random.c
2622 ## end gnulib module sys_random-tests
2624 ## begin gnulib module sys_select
2626 BUILT_SOURCES += sys/select.h
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; \
2651 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
2652 MOSTLYCLEANDIRS += sys
2654 EXTRA_DIST += sys_select.in.h
2656 ## end gnulib module sys_select
2658 ## begin gnulib module sys_select-c++-tests
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)
2666 EXTRA_DIST += test-sys_select-c++.cc signature.h
2668 ## end gnulib module sys_select-c++-tests
2670 ## begin gnulib module sys_select-tests
2672 TESTS += test-sys_select
2673 check_PROGRAMS += test-sys_select
2674 EXTRA_DIST += test-sys_select.c signature.h
2676 ## end gnulib module sys_select-tests
2678 ## begin gnulib module sys_socket
2680 BUILT_SOURCES += sys/socket.h
2681 libtests_a_SOURCES += sys_socket.c
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; \
2723 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
2724 MOSTLYCLEANDIRS += sys
2726 EXTRA_DIST += sys_socket.in.h
2728 ## end gnulib module sys_socket
2730 ## begin gnulib module sys_socket-c++-tests
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)
2738 EXTRA_DIST += test-sys_socket-c++.cc signature.h
2740 ## end gnulib module sys_socket-c++-tests
2742 ## begin gnulib module sys_socket-tests
2744 TESTS += test-sys_socket
2745 check_PROGRAMS += test-sys_socket
2746 EXTRA_DIST += test-sys_socket.c
2748 ## end gnulib module sys_socket-tests
2750 ## begin gnulib module sys_stat-c++-tests
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)
2758 EXTRA_DIST += test-sys_stat-c++.cc signature.h
2760 ## end gnulib module sys_stat-c++-tests
2762 ## begin gnulib module sys_stat-tests
2764 TESTS += test-sys_stat
2765 check_PROGRAMS += test-sys_stat
2766 EXTRA_DIST += test-sys_stat.c
2768 ## end gnulib module sys_stat-tests
2770 ## begin gnulib module sys_time
2772 BUILT_SOURCES += sys/time.h
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; \
2798 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
2800 EXTRA_DIST += sys_time.in.h
2802 ## end gnulib module sys_time
2804 ## begin gnulib module sys_time-c++-tests
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)
2812 EXTRA_DIST += test-sys_time-c++.cc signature.h
2814 ## end gnulib module sys_time-c++-tests
2816 ## begin gnulib module sys_time-tests
2818 TESTS += test-sys_time
2819 check_PROGRAMS += test-sys_time
2820 EXTRA_DIST += test-sys_time.c
2822 ## end gnulib module sys_time-tests
2824 ## begin gnulib module sys_types-c++-tests
2827 TESTS += test-sys_types-c++
2828 check_PROGRAMS += test-sys_types-c++
2829 test_sys_types_c___SOURCES = test-sys_types-c++.cc
2831 EXTRA_DIST += test-sys_types-c++.cc
2833 ## end gnulib module sys_types-c++-tests
2835 ## begin gnulib module sys_types-tests
2837 TESTS += test-sys_types
2838 check_PROGRAMS += test-sys_types
2839 EXTRA_DIST += test-sys_types.c
2841 ## end gnulib module sys_types-tests
2843 ## begin gnulib module sys_uio
2845 BUILT_SOURCES += sys/uio.h
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; \
2862 MOSTLYCLEANFILES += sys/uio.h sys/uio.h-t
2863 MOSTLYCLEANDIRS += sys
2865 EXTRA_DIST += sys_uio.in.h
2867 ## end gnulib module sys_uio
2869 ## begin gnulib module sys_uio-tests
2871 TESTS += test-sys_uio
2872 check_PROGRAMS += test-sys_uio
2873 EXTRA_DIST += test-sys_uio.c
2875 ## end gnulib module sys_uio-tests
2877 ## begin gnulib module sys_wait-c++-tests
2880 TESTS += test-sys_wait-c++
2881 check_PROGRAMS += test-sys_wait-c++
2882 test_sys_wait_c___SOURCES = test-sys_wait-c++.cc
2884 EXTRA_DIST += test-sys_wait-c++.cc signature.h
2886 ## end gnulib module sys_wait-c++-tests
2888 ## begin gnulib module sys_wait-tests
2890 TESTS += test-sys_wait
2891 check_PROGRAMS += test-sys_wait
2892 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
2894 ## end gnulib module sys_wait-tests
2896 ## begin gnulib module test-framework-sh-tests
2898 TESTS += test-init.sh
2899 EXTRA_DIST += init.sh
2900 EXTRA_DIST += test-init.sh
2902 ## end gnulib module test-framework-sh-tests
2904 ## begin gnulib module thread
2906 libtests_a_SOURCES += glthread/thread.h glthread/thread.c
2908 ## end gnulib module thread
2910 ## begin gnulib module thread-tests
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
2918 ## end gnulib module thread-tests
2920 ## begin gnulib module time-c++-tests
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)
2928 EXTRA_DIST += test-time-c++.cc test-time-c++2.cc signature.h
2930 ## end gnulib module time-c++-tests
2932 ## begin gnulib module time-tests
2935 check_PROGRAMS += test-time
2936 EXTRA_DIST += test-time.c
2938 ## end gnulib module time-tests
2940 ## begin gnulib module unistd-c++-tests
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)
2948 EXTRA_DIST += test-unistd-c++.cc signature.h
2950 ## end gnulib module unistd-c++-tests
2952 ## begin gnulib module unistd-safer-tests
2954 TESTS += test-dup-safer
2955 check_PROGRAMS += test-dup-safer
2956 EXTRA_DIST += test-dup-safer.c macros.h
2958 ## end gnulib module unistd-safer-tests
2960 ## begin gnulib module unistd-tests
2962 TESTS += test-unistd
2963 check_PROGRAMS += test-unistd
2964 EXTRA_DIST += test-unistd.c
2966 ## end gnulib module unistd-tests
2968 ## begin gnulib module unistr/u8-mbtoucr-tests
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
2976 ## end gnulib module unistr/u8-mbtoucr-tests
2978 ## begin gnulib module unistr/u8-uctomb-tests
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
2986 ## end gnulib module unistr/u8-uctomb-tests
2988 ## begin gnulib module uniwidth/width-tests
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
2998 ## end gnulib module uniwidth/width-tests
3000 ## begin gnulib module unsetenv
3003 EXTRA_DIST += unsetenv.c
3005 EXTRA_libtests_a_SOURCES += unsetenv.c
3007 ## end gnulib module unsetenv
3009 ## begin gnulib module unsetenv-tests
3011 TESTS += test-unsetenv
3012 check_PROGRAMS += test-unsetenv
3013 EXTRA_DIST += test-unsetenv.c signature.h macros.h
3015 ## end gnulib module unsetenv-tests
3017 ## begin gnulib module update-copyright-tests
3019 TESTS += test-update-copyright.sh
3020 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
3021 EXTRA_DIST += test-update-copyright.sh
3023 ## end gnulib module update-copyright-tests
3025 ## begin gnulib module vasnprintf-tests
3027 TESTS += test-vasnprintf
3028 check_PROGRAMS += test-vasnprintf
3030 EXTRA_DIST += test-vasnprintf.c macros.h
3032 ## end gnulib module vasnprintf-tests
3034 ## begin gnulib module vasprintf-posix-tests
3036 TESTS += test-vasprintf-posix
3037 check_PROGRAMS += test-vasprintf-posix
3039 EXTRA_DIST += test-vasprintf-posix.c minus-zero.h infinity.h nan.h macros.h
3041 ## end gnulib module vasprintf-posix-tests
3043 ## begin gnulib module vasprintf-tests
3045 TESTS += test-vasprintf
3046 check_PROGRAMS += test-vasprintf
3048 EXTRA_DIST += test-vasprintf.c signature.h macros.h
3050 ## end gnulib module vasprintf-tests
3052 ## begin gnulib module vc-list-files-tests
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
3059 ## end gnulib module vc-list-files-tests
3061 ## begin gnulib module verify-tests
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
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
3076 ## end gnulib module verify-tests
3078 ## begin gnulib module version-etc-tests
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
3085 ## end gnulib module version-etc-tests
3087 ## begin gnulib module vma-iter
3089 libtests_a_SOURCES += vma-iter.c
3091 EXTRA_DIST += vma-iter.h
3093 ## end gnulib module vma-iter
3095 ## begin gnulib module wchar-c++-tests
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)
3103 EXTRA_DIST += test-wchar-c++.cc test-wchar-c++2.cc test-wchar-c++3.cc signature.h
3105 ## end gnulib module wchar-c++-tests
3107 ## begin gnulib module wchar-tests
3110 check_PROGRAMS += test-wchar
3111 EXTRA_DIST += test-wchar.c
3113 ## end gnulib module wchar-tests
3115 ## begin gnulib module wcrtomb-tests
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
3131 ## end gnulib module wcrtomb-tests
3133 ## begin gnulib module wctob
3136 EXTRA_DIST += wctob.c
3138 EXTRA_libtests_a_SOURCES += wctob.c
3140 ## end gnulib module wctob
3142 ## begin gnulib module wctomb
3145 EXTRA_DIST += wctomb-impl.h wctomb.c
3147 EXTRA_libtests_a_SOURCES += wctomb.c
3149 ## end gnulib module wctomb
3151 ## begin gnulib module wctype-h-c++-tests
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)
3159 EXTRA_DIST += test-wctype-h-c++.cc test-wctype-h-c++2.cc signature.h
3161 ## end gnulib module wctype-h-c++-tests
3163 ## begin gnulib module wctype-h-tests
3165 TESTS += test-wctype-h
3166 check_PROGRAMS += test-wctype-h
3167 EXTRA_DIST += test-wctype-h.c macros.h
3169 ## end gnulib module wctype-h-tests
3171 ## begin gnulib module wcwidth-tests
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
3178 ## end gnulib module wcwidth-tests
3180 ## begin gnulib module windows-thread
3183 EXTRA_DIST += windows-thread.c windows-thread.h
3185 EXTRA_libtests_a_SOURCES += windows-thread.c
3187 ## end gnulib module windows-thread
3189 ## begin gnulib module write
3192 EXTRA_DIST += write.c
3194 EXTRA_libtests_a_SOURCES += write.c
3196 ## end gnulib module write
3198 ## begin gnulib module write-tests
3201 check_PROGRAMS += test-write
3202 EXTRA_DIST += test-write.c signature.h macros.h
3204 ## end gnulib module write-tests
3206 ## begin gnulib module xalloc-die-tests
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
3213 ## end gnulib module xalloc-die-tests
3215 ## begin gnulib module xconcat-filename
3217 libtests_a_SOURCES += xconcat-filename.c
3219 EXTRA_DIST += concat-filename.h
3221 ## end gnulib module xconcat-filename
3223 ## begin gnulib module xvasprintf-tests
3225 TESTS += test-xvasprintf
3226 check_PROGRAMS += test-xvasprintf
3227 test_xvasprintf_LDADD = $(LDADD) @LIBINTL@
3229 EXTRA_DIST += test-xvasprintf.c macros.h
3231 ## end gnulib module xvasprintf-tests
3233 ## begin gnulib module yield
3235 libtests_a_SOURCES += glthread/yield.h
3237 ## end gnulib module yield
3239 # Clean up after Solaris cc.
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; \