blob: f58f8943890d9eb9824b6d7f4f817d57e2476c51 (
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
|
dnl ######################################################################
dnl Check syslog.h for 'facilitynames' table
AC_DEFUN([NTP_FACILITYNAMES], [
AC_CACHE_CHECK([for facilitynames in syslog.h],ac_cv_HAVE_SYSLOG_FACILITYNAMES,[
AC_TRY_COMPILE([
#define SYSLOG_NAMES
#include <stdlib.h>
#include <syslog.h>
],
[ void *fnames; fnames = facilitynames; ],
ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes,ac_cv_HAVE_SYSLOG_FACILITYNAMES=no,ac_cv_HAVE_SYSLOG_FACILITYNAMES=cross)])
case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
yes)
AC_DEFINE(HAVE_SYSLOG_FACILITYNAMES,1,[ ])
;;
no)
AC_MSG_WARN([No facilitynames in <syslog.h>])
;;
cross)
AC_MSG_WARN([facilitynames in <syslog.h> - cross-compiling])
;;
esac
])
dnl ======================================================================
|