]> git.proxmox.com Git - mirror_frr.git/commitdiff
[configure] Detect support for monotonic clock
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Thu, 28 May 2009 22:29:10 +0000 (15:29 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:31 +0000 (20:18 +0100)
Quagga has code to support monotonic clock to avoid issues where
time of day changes. The support was incomplete since it was not being
detected by autoconf.

configure.ac

index 7cf30a80c62b9ef6623f862d7135d5b823188799..c1f618248b5c0e15a19c83c7cac34db580512073 100755 (executable)
@@ -1321,6 +1321,16 @@ AC_TRY_COMPILE([#include <sys/resource.h>
  AC_DEFINE(HAVE_RUSAGE,,rusage)],
  AC_MSG_RESULT(no))
 
+dnl --------------------------------------
+dnl checking for clock_time monotonic struct and call
+dnl --------------------------------------
+AC_CHECK_LIB(rt, clock_gettime,
+[AC_DEFINE(HAVE_MONOTONIC_CLOCK,, Have monotonic clock)
+ LIBS="$LIBS -lrt"]
+)
+
+
+
 dnl -------------------
 dnl capabilities checks
 dnl -------------------