1290001Sglebiusdnl ######################################################################
2290001Sglebiusdnl Check syslog.h for 'facilitynames' table
3290001SglebiusAC_DEFUN([NTP_FACILITYNAMES], [
4290001SglebiusAC_CACHE_CHECK([for facilitynames in syslog.h],ac_cv_HAVE_SYSLOG_FACILITYNAMES,[
5290001SglebiusAC_TRY_COMPILE([
6290001Sglebius#define SYSLOG_NAMES
7290001Sglebius#include <stdlib.h>
8290001Sglebius#include <syslog.h>
9290001Sglebius],
10290001Sglebius[ void *fnames; fnames = facilitynames; ],
11290001Sglebiusac_cv_HAVE_SYSLOG_FACILITYNAMES=yes,ac_cv_HAVE_SYSLOG_FACILITYNAMES=no,ac_cv_HAVE_SYSLOG_FACILITYNAMES=cross)])
12290001Sglebiuscase "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
13290001Sglebius yes)
14290001Sglebius    AC_DEFINE(HAVE_SYSLOG_FACILITYNAMES,1,[ ])
15290001Sglebius    ;;
16290001Sglebius no)
17290001Sglebius    AC_MSG_WARN([No facilitynames in <syslog.h>])
18290001Sglebius    ;;
19290001Sglebius cross)
20290001Sglebius    AC_MSG_WARN([facilitynames in <syslog.h> - cross-compiling])
21290001Sglebius    ;;
22290001Sglebiusesac
23290001Sglebius])
24290001Sglebiusdnl ======================================================================
25