freebsd-dev/contrib/ntp/sntp/m4/ntp_sntp.m4
Cy Schubert 2b15cb3d09 MFV ntp 4.2.8p1 (r258945, r275970, r276091, r276092, r276093, r278284)
Thanks to roberto for providing pointers to wedge this into HEAD.

Approved by:	roberto
2015-03-30 13:30:15 +00:00

30 lines
643 B
Plaintext

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 ======================================================================