chiark / gitweb /
journalctl: allow both "-n 55" and "-n55" on the command line, as equivalent syntaxes
[elogind.git] / m4 / acx_libwrap.m4
1 AC_DEFUN([ACX_LIBWRAP], [
2 LIBWRAP_LIBS=
3 saved_LIBS="$LIBS"
4 LIBS="$LIBS -lwrap"
5 AC_MSG_CHECKING([for tcpwrap library and headers])
6 AC_LINK_IFELSE(
7 [AC_LANG_PROGRAM(
8 [#include <tcpd.h>
9 #include <syslog.h>
10 int allow_severity = LOG_INFO;
11 int deny_severity = LOG_WARNING;],
12 [struct request_info *req;
13 return hosts_access (req);])],
14 [AC_DEFINE(HAVE_LIBWRAP, [], [Have tcpwrap?])
15 LIBWRAP_LIBS="-lwrap"
16 AC_MSG_RESULT(yes)],
17 [AC_MSG_RESULT(no)])
18 LIBS="$saved_LIBS"
19 ])