Undo unintentional commit.
[gnulib.git] / modules / lock-tests
1 Files:
2 tests/test-lock.c
3
4 Depends-on:
5
6 configure.ac:
7 dnl Checks for special libraries for the tests/test-lock test.
8 dnl On some systems, sched_yield is in librt, rather than in libpthread.
9 LIBSCHED=
10 if test $gl_threads_api = posix; then
11   dnl Solaris has sched_yield in librt, not in libpthread or libc.
12   AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt],
13     [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
14      AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])])
15 fi
16 AC_SUBST([LIBSCHED])
17
18 Makefile.am:
19 TESTS += test-lock
20 check_PROGRAMS += test-lock
21 test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@