summaryrefslogtreecommitdiff
path: root/sntp/m4/ntp_sntp.m4
blob: a9d405eae38ee0976fdc9f0ce37dec038a296dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 ======================================================================