X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Ftls-tests;h=107cfe45f65e73106072a080bc12920f441dc74d;hb=43593319b31e6b0175b8eec4433bac744959822d;hp=b9f5a2313153ad84a2294800cb1fb69c8e80a63c;hpb=026ecefff94703b5921b23ccaaa2a79c0a180c47;p=gnulib.git diff --git a/modules/tls-tests b/modules/tls-tests index b9f5a2313..107cfe45f 100644 --- a/modules/tls-tests +++ b/modules/tls-tests @@ -2,21 +2,13 @@ Files: tests/test-tls.c Depends-on: +thread +yield configure.ac: -dnl Checks for special libraries for the tests/test-tls test. -dnl On some systems, sched_yield is in librt, rather than in libpthread. -LIBSCHED= -if test $gl_threads_api = posix; then - dnl Solaris has sched_yield in librt, not in libpthread or libc. - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], - [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. - AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) -fi -AC_SUBST([LIBSCHED]) Makefile.am: TESTS += test-tls check_PROGRAMS += test-tls -test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_tls_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@