From: Bruno Haible Date: Fri, 13 Apr 2007 12:15:26 +0000 (+0000) Subject: Try harder to find sched_yield on Solaris. X-Git-Tag: v0.17~420 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25183cf3fcce929ffcd46187e08263928e5e4727;p=thirdparty%2Fgettext.git Try harder to find sched_yield on Solaris. --- diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog index 4a319b183..4a5fb27ed 100644 --- a/gettext-runtime/ChangeLog +++ b/gettext-runtime/ChangeLog @@ -1,3 +1,8 @@ +2007-04-13 Bruno Haible + + * configure.ac: For LIBSCHED, try also -lposix4. + Reported by Arto C. Nirkko . + 2006-10-27 Bruno Haible Work around automake-1.10 annoyance. diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index 2d14004e8..99f7149e7 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -1,5 +1,5 @@ dnl Configuration for the gettext-runtime directory of GNU gettext -dnl Copyright (C) 1995-1999, 2000-2006 Free Software Foundation, Inc. +dnl Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -108,7 +108,10 @@ 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 - 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])