X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flock-tests;h=d0e5010508dd528d738552fe586b7d0ef8fea844;hb=refs%2Ftags%2Fstable%2F20110609;hp=7c72c94734db4958f73b6d01b017f31b20a7b4df;hpb=026ecefff94703b5921b23ccaaa2a79c0a180c47;p=gnulib.git diff --git a/modules/lock-tests b/modules/lock-tests index 7c72c9473..d0e501050 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -2,20 +2,12 @@ Files: tests/test-lock.c Depends-on: +thread +yield configure.ac: -dnl Checks for special libraries for the tests/test-lock 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-lock check_PROGRAMS += test-lock -test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @LIBSCHED@ +test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@