diff options
author | Tom Tromey <tromey@redhat.com> | 2006-03-09 18:47:54 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2006-03-09 18:47:54 +0000 |
commit | e59a1e40f318e53c11a069140e4380ca05dd75cd (patch) | |
tree | 744b26f2524a58c1a0d12f1c85353fc349623374 /libjava/configure.ac | |
parent | cbbb5b6da1a7ac6efd97d97cda4cbd4868c56eaf (diff) | |
download | gcc-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.ac | 8 |
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 |