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.
10 if test $gl_threads_api = posix; then
11 AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
16 TESTS += test-lock$(EXEEXT)
17 check_PROGRAMS += test-lock
18 test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)