Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
[gnulib.git] / modules / posix_spawnp-tests
blob743c95f0ee69d828a0e2a7839b812013e91a9c30
1 Files:
2 tests/test-posix_spawn1.c
3 tests/test-posix_spawn1.in.sh
4 tests/test-posix_spawn2.c
5 tests/test-posix_spawn2.in.sh
6 tests/signature.h
8 Depends-on:
9 posix_spawn_file_actions_init
10 posix_spawn_file_actions_adddup2
11 posix_spawn_file_actions_addclose
12 posix_spawn_file_actions_addopen
13 posix_spawn_file_actions_destroy
14 posix_spawnattr_init
15 posix_spawnattr_setsigmask
16 posix_spawnattr_setflags
17 posix_spawnattr_destroy
18 stdbool
19 unistd
20 sys_wait
21 dup
22 environ
23 sh-filename
24 sigprocmask
26 configure.ac:
27 AC_EGREP_CPP([notposix], [[
28 #if defined _MSC_VER || defined __MINGW32__
29   notposix
30 #endif
31   ]],
32   [posix_spawn_ported=no],
33   [posix_spawn_ported=yes])
34 AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
36 Makefile.am:
37 if POSIX_SPAWN_PORTED
38 TESTS += test-posix_spawn1 test-posix_spawn2
39 check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
41 BUILT_SOURCES += test-posix_spawn1.sh
42 test-posix_spawn1.sh: test-posix_spawn1.in.sh
43         $(AM_V_GEN)rm -f $@-t $@ && \
44         cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \
45         mv $@-t $@
46 MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t
48 BUILT_SOURCES += test-posix_spawn2.sh
49 test-posix_spawn2.sh: test-posix_spawn2.in.sh
50         $(AM_V_GEN)rm -f $@-t $@ && \
51         cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \
52         mv $@-t $@
53 MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t
54 endif