diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libwrap.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/libwrap.m4 b/m4/libwrap.m4 new file mode 100644 index 000000000..5ad3df19b --- /dev/null +++ b/m4/libwrap.m4 @@ -0,0 +1,14 @@ +dnl +dnl Usage: +dnl AC_CHECK_LIBWRAP([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +dnl + +AC_DEFUN([AC_CHECK_LIBWRAP],[ + AC_CHECK_HEADERS([tcpd.h], + AC_CHECK_LIB([wrap], [request_init], + [LIBWRAP_CFLAGS="" + LIBWRAP_LDFLAGS="-lwrap" + $1], + $2), + $2) +]) |