aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-08-06 20:36:46 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-08-06 20:36:46 +0000
commit7339705d94d4dff3231c143da318e9cf5f8a04ca (patch)
treeac488591614f95b1a45fd3094c14cc401619b3a8 /libjava/configure.in
parent76554ea3ab76d9251f935d929835e94d933ef2fb (diff)
downloadgcc-7339705d94d4dff3231c143da318e9cf5f8a04ca.zip
gcc-7339705d94d4dff3231c143da318e9cf5f8a04ca.tar.gz
gcc-7339705d94d4dff3231c143da318e9cf5f8a04ca.tar.bz2
configure: Rebuilt.
* configure: Rebuilt. * configure.in: Look for sched_yield in -lrt. From-SVN: r28554
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index 4efd83f..4549889 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -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.