diff options
author | Yang Tse <yangsita@gmail.com> | 2008-05-12 02:04:21 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-05-12 02:04:21 +0000 |
commit | ed80eb5b0f11d70db37e8a3b0406fa906842a962 (patch) | |
tree | 1be50fd602da20c0ba422ba1ef86a45a7cdc4f39 /configure.ac | |
parent | 60dd765b3dd73bd957bff42a990ba391c843a9ff (diff) | |
download | curl-ed80eb5b0f11d70db37e8a3b0406fa906842a962.tar.gz |
configure script will now define HAVE_CLOCK_GETTIME_MONOTONIC symbol only
when function clock_gettime() is available and the monotonic timer is
also available. Otherwise, in some cases, librt or libposix4 could be used
for linking even when finally not using the clock_gettime() function due
to lack of the monotonic clock.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 0ef6a3942..3e54496c2 100644 --- a/configure.ac +++ b/configure.ac @@ -568,9 +568,10 @@ dnl socket lib? AC_CHECK_FUNC(connect, , [ AC_CHECK_LIB(socket, connect) ]) dnl ********************************************************************** -dnl Check for libraries needed for function clock_gettime +dnl In case that function clock_gettime with monotonic timer is available, +dnl check for additional required libraries. dnl ********************************************************************** -CURL_CHECK_LIBS_CLOCK_GETTIME +CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC dnl ********************************************************************** dnl The preceding library checks are all potentially useful for test |