From: Harlan Stenn Date: Wed, 16 Jul 2008 09:32:55 +0000 (-0400) Subject: configure.ac: cleanup, added wintime and bug 1028 options X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e19984fa7195f5d2cab757df03adf8dd02729cbd;p=thirdparty%2Fntp.git configure.ac: cleanup, added wintime and bug 1028 options bk: 487dc047qIZ7j3jqn18ik1ccKTptlg --- diff --git a/ChangeLog b/ChangeLog index 8f3b8f42ee..cd0c3a63a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +* configure.ac: cleanup, add option for wintime, and lay the groundwork + for the changes needed for bug 1028. * Fixes from Dave Mills: 'bias' and 'interleave' work. Separate phase and frequency discipline (for long poll intervals). Update TAI function to match current leapsecond processing. diff --git a/configure.ac b/configure.ac index f8dfdcf066..41048b2639 100644 --- a/configure.ac +++ b/configure.ac @@ -169,7 +169,46 @@ case "$host" in ;; esac -AC_CACHE_CHECK(if we should use /dev/clockctl, ac_clockctl, +AC_CACHE_CHECK(if we want the windows symmetric client hack, ac_cv_wintime, +[AC_ARG_ENABLE(wintime, + AC_HELP_STRING([--enable-wintime], [- Provide the windows symmetric client hack]), + [ans=$enableval], + [ans=no]) +ac_cv_wintime=$ans]) +# End of AC_CACHE_CHECK for wintime +case "$ac_cv_wintime" in + yes) + AC_DEFINE(WINTIME, ,[Do we want the windows symmetric client hack?]) + ;; +esac + +AC_CACHE_CHECK([if we want support for Samba's signing daemon], ac_cv_ntp_signd, +[AC_ARG_ENABLE(ntp-signd, + AC_HELP_STRING([--enable-ntp-signd], [- Provide support for Samba's signing daemon, =/var/run/ntp_signd]), + [ans=$enableval], + [ans=no]) +ac_cv_ntp_signd=$ans]) +# End of AC_CACHE_CHECK for ntp_signd + +case "$ac_cv_ntp_signd" in + no) + ;; + yes) + ntp_signd_path=/var/run/ntp_signd + ;; + *) + ntp_signd_path="$ac_cv_ntp_signd" + ;; +esac + +case "$ac_cv_ntp_signd" in + yes) + AC_DEFINE(HAVE_NTP_SIGND, ,[Do we want support for Samba's signing daemon?]) + AC_DEFINE_UNQUOTED(NTP_SIGND_PATH, "$ntp_signd_path", [Path to sign daemon rendezvous socket]) + ;; +esac + +AC_CACHE_CHECK(if we should use /dev/clockctl, ac_cv_clockctl, [AC_ARG_ENABLE(clockctl, AC_HELP_STRING([--enable-clockctl], [s Use /dev/clockctl for non-root clock control]), [ans=$enableval], @@ -181,25 +220,25 @@ AC_CACHE_CHECK(if we should use /dev/clockctl, ac_clockctl, ;; esac ]) -ac_clockctl=$ans]) +ac_cv_clockctl=$ans]) # End of AC_CACHE_CHECK for clockctl AC_CHECK_HEADERS(sys/clockctl.h) -case "$ac_clockctl$ac_cv_header_sys_clockctl_h" in +case "$ac_cv_clockctl$ac_cv_header_sys_clockctl_h" in yesyes) AC_DEFINE(HAVE_DROPROOT, ,[Can we drop root privileges?]) ;; esac -AC_CACHE_CHECK(if we have linux capabilities (libcap), ac_linuxcaps, +AC_CACHE_CHECK(if we have linux capabilities (libcap), ac_cv_linuxcaps, [AC_ARG_ENABLE(linuxcaps, AC_HELP_STRING([--enable-linuxcaps], [s Use Linux capabilities for non-root clock control]), [ans=$enableval], [ans=no]) -ac_linuxcaps=$ans]) +ac_cv_linuxcaps=$ans]) # End of AC_CACHE_CHECK for linuxcaps AC_CHECK_HEADERS(sys/capability.h) AC_CHECK_HEADERS(sys/prctl.h) -case "$ac_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in +case "$ac_cv_linuxcaps$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in yesyesyes) AC_DEFINE(HAVE_LINUX_CAPABILITIES, ,[Do we have Linux capabilities?]) AC_DEFINE(HAVE_DROPROOT, ,[Can we drop root privileges?]) @@ -3961,6 +4000,7 @@ AC_ARG_WITH(kame, AC_HELP_STRING([--with-kame], [- =/usr/local/v6]), use_kame="$withval", use_kame="no") + case "$use_kame" in no) ;;