+2007-04-13 Bruno Haible <bruno@clisp.org>
+
+ * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
+ * modules/tls-tests (configure.ac): Likewise.
+ Reported by Arto C. Nirkko <anirkko@insel.ch>.
+
2007-04-13 Bruno Haible <bruno@clisp.org>
* lib/tls.c (glthread_tls_get): Fix return type.
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
- AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
+ 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])
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
- AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
+ 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])