diff options
Diffstat (limited to 'sntp/m4/ntp_sntp.m4')
-rw-r--r-- | sntp/m4/ntp_sntp.m4 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sntp/m4/ntp_sntp.m4 b/sntp/m4/ntp_sntp.m4 new file mode 100644 index 000000000000..a9d405eae38e --- /dev/null +++ b/sntp/m4/ntp_sntp.m4 @@ -0,0 +1,29 @@ +dnl ###################################################################### +dnl Common m4sh code SNTP +AC_DEFUN([NTP_WITHSNTP], [ + +dnl preset withsntp=no in env to change default to --without-sntp +AC_MSG_CHECKING([if sntp will be built]) +AC_ARG_WITH( + [sntp], + [AS_HELP_STRING( + [--without-sntp], + [- disable building sntp and sntp/tests] + )], + [], + [with_sntp="${withsntp=yes}"] +) +case "$with_sntp" in + no) + SNTP= + ;; + *) + SNTP=sntp + ;; +esac +AC_SUBST([SNTP]) +AM_CONDITIONAL([BUILD_SNTP], [test -n "$SNTP"]) +AC_MSG_RESULT([$with_sntp]) + +])dnl +dnl ====================================================================== |