]> git.pld-linux.org Git - packages/quota.git/blob - quota-libwrap.patch
fix libwrap detection
[packages/quota.git] / quota-libwrap.patch
1 diff -urN quota-tools.org/configure.in quota-tools/configure.in
2 --- quota-tools.org/configure.in        Sun May  6 19:36:16 2001
3 +++ quota-tools/configure.in    Sun May  6 19:49:12 2001
4 @@ -44,7 +44,19 @@
5  LIBS=""
6  
7  AC_CHECK_LIB(nsl, main)
8 -AC_CHECK_LIB(wrap, main)
9 +
10 +AC_CACHE_VAL(ac_cv_lib_wrap_main,
11 +       saved_LIBS="$LIBS"
12 +       LIBS="$LIBS -lwrap"
13 +       [AC_TRY_LINK([#include <stdio.h>
14 +       #include <sys/types.h>
15 +       #include <sys/socket.h>
16 +       #include <netinet/in.h>
17 +       #include <tcpd.h>
18 +       struct request_info request;
19 +       int deny_severity, allow_severity;],[hosts_access(&request);],
20 +       [ac_cv_lib_wrap_main=yes],[ac_cv_lib_wrap_main=no,LIBS="$saved_LIBS"])
21 +       ])
22  
23  if test ${ac_cv_lib_wrap_main} = yes; then
24         AC_CHECK_HEADER(tcpd.h,, [
This page took 0.116967 seconds and 4 git commands to generate.