Debian Codegraph @

gnulib-tests/gnulib.mk

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