]> sjero.net Git - wget/commitdiff
[svn] Check if -lrt needs to be used when using clock_gettime.
authorhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:41:08 +0000 (16:41 -0700)
committerhniksic <devnull@localhost>
Thu, 7 Apr 2005 23:41:08 +0000 (16:41 -0700)
ChangeLog
aclocal.m4
configure.in

index 1e1f5fe0e8eb4f958e8437903094b168a443f195..ea435d140154811cc06356acd13e50aa885a0fa4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * configure.in: Use it.
+
+       * aclocal.m4 (WGET_POSIX_CLOCK): Check whether -lrt is needed to
+       use POSIX clock functions like clock_gettime.
+
 2005-04-08  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * Makefile.in ($(srcdir)/stamp-h.in): Don't attempt to run
index 805c4bbb552032b276a9bafc0ccefe28c52d0629..cf93b2bfaac31e6d3c4f183b22fd72034d64a2dc 100644 (file)
@@ -63,7 +63,7 @@ AC_DEFUN([WGET_FNMATCH], [
 ])
 
 dnl Check for nanosleep.  For nanosleep to work on Solaris, we must
-dnl link with -lt (recently) or with -lposix (older releases).
+dnl link with -lrt (recently) or with -lposix4 (older releases).
 
 AC_DEFUN([WGET_NANOSLEEP], [
   AC_CHECK_FUNCS(nanosleep, [], [
@@ -81,6 +81,12 @@ AC_DEFUN([WGET_NANOSLEEP], [
   ])
 ])
 
+AC_DEFUN([WGET_POSIX_CLOCK], [
+  AC_CHECK_FUNCS(clock_gettime, [], [
+    AC_CHECK_LIB(rt, clock_gettime)
+  ])
+])
+
 dnl Check whether we need to link with -lnsl and -lsocket, as is the
 dnl case on e.g. Solaris.
 
index 11f969eb5a2c3be363f42117d401b0ea3e246bb1..d0ec4b4b639dae4c5178edd8200851ef248365a5 100644 (file)
@@ -230,6 +230,7 @@ WGET_STRUCT_UTIMBUF
 WGET_SOCKLEN_T
 WGET_FNMATCH
 WGET_NANOSLEEP
+WGET_POSIX_CLOCK
 WGET_NSL_SOCKET
 
 dnl