Commit 05ca950a by Rainer Orth Committed by Tom Tromey

configure.in (sched_yield): Try librt first, then libposix4.

Mon Aug  9 18:33:38 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* configure.in (sched_yield): Try librt first, then libposix4.
	Add -lrt, -lposix4 to THREADSPEC.

From-SVN: r28629
parent ad171e80
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* configure.in (sched_yield): Try librt first, then libposix4.
Add -lrt, -lposix4 to THREADSPEC.
1999-08-08 Anthony Green <green@cygnus.com> 1999-08-08 Anthony Green <green@cygnus.com>
* gnu/gcj/util/path/SearchPath.java: Comment out verbose output. * gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
......
...@@ -381,15 +381,17 @@ else ...@@ -381,15 +381,17 @@ else
LIBS="$LIBS $THREADLIBS" LIBS="$LIBS $THREADLIBS"
AC_CHECK_FUNCS(pthread_mutexattr_settype pthread_mutexattr_setkind_np) AC_CHECK_FUNCS(pthread_mutexattr_settype pthread_mutexattr_setkind_np)
# Look for sched_yield. Sometimes it is in the posix4 library # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
# (Solaris) and sometimes in -lrt (x86 Solaris). # Solaris 7 the name librt is preferred.
AC_CHECK_FUNCS(sched_yield, , [ AC_CHECK_FUNCS(sched_yield, , [
AC_CHECK_LIB(posix4, sched_yield, [ AC_CHECK_LIB(rt, sched_yield, [
AC_DEFINE(HAVE_SCHED_YIELD) AC_DEFINE(HAVE_SCHED_YIELD)
THREADLIBS="$THREADLIBS -lposix4"], [ THREADLIBS="$THREADLIBS -lrt"
AC_CHECK_LIB(rt, sched_yield, [ THREADSPECS="$THREADSPECS -lrt"], [
AC_CHECK_LIB(posix4, sched_yield, [
AC_DEFINE(HAVE_SCHED_YIELD) AC_DEFINE(HAVE_SCHED_YIELD)
THREADLIBS="$THREADLIBS -lrt"])])]) THREADLIBS="$THREADLIBS -lposix4"
THREADSPECS="$THREADSPECS -lposix4"])])])
LIBS="$save_LIBS" LIBS="$save_LIBS"
# We require a way to get the time. # 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