aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-05-12 16:22:58 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-05-12 16:22:58 +0000
commit4b7f154fb2513ba35ffbd1dd317ec14e5718e508 (patch)
treeeb1044f92a38c61cff6cd486f53ec9bd00606acd /libjava/configure.in
parent9615f239753d1c6151d5459b7f552f43c4bd21c9 (diff)
downloadgcc-4b7f154fb2513ba35ffbd1dd317ec14e5718e508.zip
gcc-4b7f154fb2513ba35ffbd1dd317ec14e5718e508.tar.gz
gcc-4b7f154fb2513ba35ffbd1dd317ec14e5718e508.tar.bz2
configure: Rebuilt.
* configure: Rebuilt. * configure.in: Look for -ldl when using the Boehm collector. Look for sched_yield in -lposix4. From-SVN: r26905
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index e210535..9dccaa2 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -325,6 +325,11 @@ else
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(sched_yield, , [
+ AC_CHECK_LIB(posix4, sched_yield, [
+ AC_DEFINE(HAVE_SCHED_YIELD)
+ THREADLIBS="$THREADLIBS -lposix4"])])
LIBS="$save_LIBS"
# We require a way to get the time.
@@ -404,6 +409,12 @@ else
ZLIBSPEC=-lzgcj
fi
+ # On Solaris, and maybe other architectures, the Boehm collector
+ # requires -ldl.
+ if test "$GC" = boehm; then
+ AC_CHECK_LIB(dl, main, SYSTEMSPEC="$SYSTEMSPEC -ldl")
+ fi
+
if test -d "$libgcj_basedir/../gcc/java"; then
GCJ=
else