diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-09 18:47:54 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-09 18:47:54 +0000 |
| commit | c44de8ab02bf815fb920a2e6f1e6e16aadf05b07 (patch) | |
| tree | 744b26f2524a58c1a0d12f1c85353fc349623374 /libjava/configure.ac | |
| parent | 595e90415cd831dfd3680ccdb134f5f71392a88e (diff) | |
| download | ppe42-gcc-c44de8ab02bf815fb920a2e6f1e6e16aadf05b07.tar.gz ppe42-gcc-c44de8ab02bf815fb920a2e6f1e6e16aadf05b07.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111869 138bc75d-0d04-0410-961f-82ee72b054a4
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 94a528133aa..5816efec28d 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 |

