xref: /netbsd-src/external/bsd/ntp/dist/sntp/m4/ntp_debug.m4 (revision 8585484ef87f5a04d32332313cdb799625f4faf8)
1*8585484eSchristosdnl ######################################################################
2*8585484eSchristosdnl Common m4sh code for debug
3*8585484eSchristosAC_DEFUN([NTP_DEBUG], [
4*8585484eSchristos
5*8585484eSchristosAC_MSG_CHECKING([if we're including debugging code])
6*8585484eSchristosAC_ARG_ENABLE(
7*8585484eSchristos    [debugging],
8*8585484eSchristos    [AS_HELP_STRING(
9*8585484eSchristos        [--enable-debugging],
10*8585484eSchristos        [+ include ntpd debugging code]
11*8585484eSchristos    )],
12*8585484eSchristos    [ntp_ok=$enableval],
13*8585484eSchristos    [ntp_ok=yes]
14*8585484eSchristos)
15*8585484eSchristoscase "$ntp_ok" in
16*8585484eSchristos yes)
17*8585484eSchristos    AC_DEFINE([DEBUG], [1], [Enable debugging code?])
18*8585484eSchristosesac
19*8585484eSchristosAC_MSG_RESULT([$ntp_ok])
20*8585484eSchristos
21*8585484eSchristos])dnl
22*8585484eSchristosdnl ======================================================================
23