xref: /freebsd/contrib/ntp/sntp/m4/ntp_sntp.m4 (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1dnl ######################################################################
2dnl Common m4sh code SNTP
3AC_DEFUN([NTP_WITHSNTP], [
4
5dnl preset withsntp=no in env to change default to --without-sntp
6AC_MSG_CHECKING([if sntp will be built])
7AC_ARG_WITH(
8    [sntp],
9    [AS_HELP_STRING(
10	[--without-sntp],
11	[- disable building sntp and sntp/tests]
12    )],
13    [],
14    [with_sntp="${withsntp=yes}"]
15)
16case "$with_sntp" in
17 no)
18    SNTP=
19    ;;
20 *)
21    SNTP=sntp
22    ;;
23esac
24AC_SUBST([SNTP])
25AM_CONDITIONAL([BUILD_SNTP], [test -n "$SNTP"])
26AC_MSG_RESULT([$with_sntp])
27
28])dnl
29dnl ======================================================================
30