From: Harlan Stenn Date: Mon, 22 Jun 2015 07:45:39 +0000 (+0000) Subject: Initial support for experimental leap smear code. Harlan Stenn. X-Git-Tag: NTP_4_3_44~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe39dfff5f587a64f198c7f43394375da0614f7;p=thirdparty%2Fntp.git Initial support for experimental leap smear code. Harlan Stenn. bk: 5587bd230JjCO_768Uy529os6O7hOw --- diff --git a/ChangeLog b/ChangeLog index 022f39664..6035eda17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ * [Bug 2845] Harden memory allocation in ntpd. * [Bug 2852] 'make check' can't find unity.h. Hal Murray. * [Bug 2854] Missing brace in libntp/strdup.c. Masanari Iida. +* Initial support for experimental leap smear code. Harlan Stenn. * Fixes to sntp/tests/fileHandlingTest.h.in. Harlan Stenn. * Report select() debug messages at debug level 3 now. * sntp/scripts/genLocInfo: treat raspbian as debian. diff --git a/configure.ac b/configure.ac index b647090f5..2cfbb729d 100644 --- a/configure.ac +++ b/configure.ac @@ -4343,6 +4343,27 @@ esac AM_CONDITIONAL([SAVECONFIG_ENABLED], [test x$ntp_saveconfig_enabled = x1]) AC_MSG_RESULT([$ntp_ok]) +### + +AC_MSG_CHECKING([if we want the experimental leap smear code]) +AC_ARG_ENABLE( + [leap-smear], + [AS_HELP_STRING( + [--enable-leap-smear], + [- experimental leap smear code] + )], + [ntp_ok=$enableval], + [ntp_ok=no] +) +ntp_leap_smear_enabled=0 +case "$ntp_ok" in + yes) + ntp_leap_smear_enabled=1 + AC_DEFINE([LEAP_SMEAR], [1], [leap smear mechanism]) + ;; +esac +AC_MSG_RESULT([$ntp_ok]) + NTP_UNITYBUILD dnl gtest is needed for our tests subdirs. It would be nice if we could