xref: /freebsd/contrib/ntp/sntp/m4/ntp_debug.m4 (revision b740c88bfb6453416926271c089262e7164dace3)
1dnl ######################################################################
2dnl Common m4sh code for debug
3AC_DEFUN([NTP_DEBUG], [
4
5AC_MSG_CHECKING([if we're including debugging code])
6AC_ARG_ENABLE(
7    [debugging],
8    [AS_HELP_STRING(
9        [--enable-debugging],
10        [+ include ntpd debugging code]
11    )],
12    [ntp_ok=$enableval],
13    [ntp_ok=yes]
14)
15case "$ntp_ok" in
16 yes)
17    AC_DEFINE([DEBUG], [1], [Enable debugging code?])
18esac
19AC_MSG_RESULT([$ntp_ok])
20
21])dnl
22dnl ======================================================================
23