diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 15:29:10 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 15:29:10 -0700 |
commit | cfeafa07d5be0cf22b273be34c8e17d3a4be5725 (patch) | |
tree | 4a96fb2c6ef5a640f9292dc16ee3b7c1d6118b8c | |
parent | 720bbeac0426d265223aec059750276f7213af24 (diff) | |
download | quagga-cfeafa07d5be0cf22b273be34c8e17d3a4be5725.tar.bz2 quagga-cfeafa07d5be0cf22b273be34c8e17d3a4be5725.tar.xz |
Detect support for monotonic clock
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.
-rwxr-xr-x | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9e591c41..b32aa801 100755 --- a/configure.ac +++ b/configure.ac @@ -1320,6 +1320,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 ------------------- |