diff options
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3105efa2..77c02c89 100644 --- a/configure.ac +++ b/configure.ac @@ -150,6 +150,23 @@ AC_CHECK_HEADERS( sys/resource.h \ unistd.h ]) +AC_MSG_CHECKING([whether syslog names are available]) +AC_TRY_COMPILE([ +#define SYSLOG_NAMES 1 +#include <stdio.h> +#include <syslog.h> +], +[ + (void) facilitynames +], +[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SYSLOG_NAMES, , [Define if syslog names are defined]) +], +[ + AC_MSG_RESULT(no) +]) + AC_CHECK_HEADERS([linux/raw.h], [AM_CONDITIONAL([HAVE_RAW], [true])], [AM_CONDITIONAL([HAVE_RAW], [false])]) |