mirror of
https://github.com/mirror/wget.git
synced 2025-02-10 03:40:49 +08: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>
|
2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* Makefile.in ($(srcdir)/stamp-h.in): Don't attempt to run
|
* 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 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_DEFUN([WGET_NANOSLEEP], [
|
||||||
AC_CHECK_FUNCS(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 Check whether we need to link with -lnsl and -lsocket, as is the
|
||||||
dnl case on e.g. Solaris.
|
dnl case on e.g. Solaris.
|
||||||
|
|
||||||
|
@ -230,6 +230,7 @@ WGET_STRUCT_UTIMBUF
|
|||||||
WGET_SOCKLEN_T
|
WGET_SOCKLEN_T
|
||||||
WGET_FNMATCH
|
WGET_FNMATCH
|
||||||
WGET_NANOSLEEP
|
WGET_NANOSLEEP
|
||||||
|
WGET_POSIX_CLOCK
|
||||||
WGET_NSL_SOCKET
|
WGET_NSL_SOCKET
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
Loading…
Reference in New Issue
Block a user