]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1364] clock_gettime() not detected, need -lrt on Debian 5.0.3.
authorDave Hart <hart@ntp.org>
Mon, 2 Nov 2009 06:08:22 +0000 (06:08 +0000)
committerDave Hart <hart@ntp.org>
Mon, 2 Nov 2009 06:08:22 +0000 (06:08 +0000)
bk: 4aee77567TSM73Fvc2Khfi7icT4law

ChangeLog
configure.ac

index 09a24ce4bdcd88da6e929f8ed1eb556f0ab63286..b1889c7f46354e41f6590c599b7da10d7f2f6950 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 1364] clock_gettime() not detected, need -lrt on Debian 5.0.3.
 (4.2.5p239-RC) 2009/10/30 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 1357] bogus assert from refclock_shm.
 * [Bug 1359] Debug message cleanup.
index 04beef61f880682e033025d2e7350b83c975b569..7725c923d829e9013d59d4ea31fb521f6bcf5fcf 100644 (file)
@@ -26,7 +26,7 @@ AC_CONFIG_AUX_DIR([.])
 # the date YYYYMMDD optionally with -HHMM if there is more than one
 # bump in a day.
 
-ntp_configure_cache_version=20090503
+ntp_configure_cache_version=20091102
 
 # When the cache version of config.cache and configure do not
 # match, NTP_CACHEVERSION will flush the cache.
@@ -1198,7 +1198,9 @@ case "$host" in
        # this conditional will need to change.  Maybe use AC_TRY_RUN
        # instead to try to set the time to itself and check errno.
     ;;
- *) AC_CHECK_FUNCS(clock_gettime clock_settime)
+ *)
+    AC_SEARCH_LIBS([clock_gettime], [rt])
+    AC_CHECK_FUNCS([clock_gettime clock_settime])
     ;;
 esac
 AC_CHECK_FUNCS(daemon)