aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.ac
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-03-09 18:47:54 +0000
committerTom Tromey <tromey@gcc.gnu.org>2006-03-09 18:47:54 +0000
commite59a1e40f318e53c11a069140e4380ca05dd75cd (patch)
tree744b26f2524a58c1a0d12f1c85353fc349623374 /libjava/configure.ac
parentcbbb5b6da1a7ac6efd97d97cda4cbd4868c56eaf (diff)
downloadgcc-e59a1e40f318e53c11a069140e4380ca05dd75cd.zip
gcc-e59a1e40f318e53c11a069140e4380ca05dd75cd.tar.gz
gcc-e59a1e40f318e53c11a069140e4380ca05dd75cd.tar.bz2
win32.cc (_Jv_platform_nanotime): New function.
* win32.cc (_Jv_platform_nanotime): New function. * include/win32.h (_Jv_platform_nanotime): Declare. * posix.cc (_Jv_platform_nanotime): New function. * include/posix.h (_Jv_platform_nanotime): Declare. * java/lang/natSystem.cc (nanoTime): New method. * java/lang/System.java (nanoTime): Declare. * include/config.h.in, configure: Rebuilt. * configure.ac: Check for clock_gettime. From-SVN: r111869
Diffstat (limited to 'libjava/configure.ac')
-rw-r--r--libjava/configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 94a52813..5816efe 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -1016,6 +1016,14 @@ else
AC_DEFINE(HAVE_SCHED_YIELD)
THREADLIBS="$THREADLIBS -lposix4"
THREADSPEC="$THREADSPEC -lposix4"])])])
+
+ AC_CHECK_LIB(rt, clock_gettime, [
+ AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])
+ case "$THREADSPEC" in
+ *-lrt*) ;;
+ *) THREADSPEC="$THREADSPEC -lrt" ;;
+ esac])
+
LIBS="$save_LIBS"
# We can save a little space at runtime if the mutex has m_count