mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Check if -lrt needs to be used when using clock_gettime.
This commit is contained in:
parent
c159a45df1
commit
36c5be475e
@ -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
|
||||
|
8
aclocal.m4
vendored
8
aclocal.m4
vendored
@ -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.
|
||||
|
||||
|
@ -230,6 +230,7 @@ WGET_STRUCT_UTIMBUF
|
||||
WGET_SOCKLEN_T
|
||||
WGET_FNMATCH
|
||||
WGET_NANOSLEEP
|
||||
WGET_POSIX_CLOCK
|
||||
WGET_NSL_SOCKET
|
||||
|
||||
dnl
|
||||
|
Loading…
Reference in New Issue
Block a user