Commit 7339705d by Tom Tromey Committed by Tom Tromey

configure: Rebuilt.

	* configure: Rebuilt.
	* configure.in: Look for sched_yield in -lrt.

From-SVN: r28554
parent 76554ea3
1999-08-06 Tom Tromey <tromey@cygnus.com>
* configure: Rebuilt.
* configure.in: Look for sched_yield in -lrt.
1999-08-06 Mojo Jojo <mojojojo@pacbell.net>
* java/util/Locale.java, CHINESE, ENGLISH, FRENCH, GERMAN,
......
......@@ -368,12 +368,17 @@ else
# Look for these functions in the thread library.
save_LIBS="$LIBS"
LIBS="$LIBS $THREADLIBS"
AC_CHECK_FUNCS(pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield)
# Look for sched_yield. Sometimes it is in the posix4 library.
AC_CHECK_FUNCS(pthread_mutexattr_settype pthread_mutexattr_setkind_np)
# Look for sched_yield. Sometimes it is in the posix4 library
# (Solaris) and sometimes in -lrt (x86 Solaris).
AC_CHECK_FUNCS(sched_yield, , [
AC_CHECK_LIB(posix4, sched_yield, [
AC_DEFINE(HAVE_SCHED_YIELD)
THREADLIBS="$THREADLIBS -lposix4"])])
THREADLIBS="$THREADLIBS -lposix4"], [
AC_CHECK_LIB(rt, sched_yield, [
AC_DEFINE(HAVE_SCHED_YIELD)
THREADLIBS="$THREADLIBS -lrt"])])])
LIBS="$save_LIBS"
# We require a way to get the time.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment