]> git.pld-linux.org Git - packages/yaz.git/blob - yaz-libwrap-fix.patch
- allow it to compile on both rpms
[packages/yaz.git] / yaz-libwrap-fix.patch
1 --- yaz-1.8.6/configure.in.orig Sun Mar 24 11:14:54 2002
2 +++ yaz-1.8.6/configure.in      Fri May  3 17:51:54 2002
3 @@ -144,6 +144,7 @@
4  dnl
5  dnl ------ tcpd
6  AC_ARG_ENABLE(tcpd,[  --enable-tcpd[=PREFIX]  enable TCP wrapper for server if available])
7 +WRAPLIBS=
8  if test "$enable_tcpd" != ""; then
9         oldLibs=$LIBS
10         oldCPPFLAGS=$CPPFLAGS
11 @@ -152,7 +153,7 @@
12                 CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
13         fi
14         AC_MSG_CHECKING(for working tcpd.h)
15 -       LIBS="$LIBS -lwrap -lnsl"
16 +       LIBS="$LIBS -lwrap"
17         AC_TRY_LINK([#include <syslog.h>
18  #include <tcpd.h>
19         int allow_severity = LOG_INFO;
20 @@ -162,13 +163,15 @@
21         tcpd_ok=1, tcpd_ok=0)
22         if test "$tcpd_ok" = "0"; then
23                 AC_MSG_RESULT(no)
24 -               LIBS=$oldLibs
25                 CPPFLAGS=$oldCPPFLAGS
26         else
27                 AC_MSG_RESULT(yes)
28                 AC_DEFINE(HAVE_TCPD_H)
29 +               WRAPLIBS="-lwrap"
30         fi
31 +       LIBS=$oldLibs
32  fi
33 +AC_SUBST(WRAPLIBS)
34  dnl
35  dnl ------ Headers
36  AC_CHECK_HEADERS(fnmatch.h)
37 --- yaz-1.8.6/server/Makefile.am.orig   Fri May  3 17:52:47 2002
38 +++ yaz-1.8.6/server/Makefile.am        Fri May  3 17:52:36 2002
39 @@ -7,6 +7,6 @@
40  
41  EXTRA_DIST=service.c
42  
43 -LIBS =
44 +LIBS = $(WRAPLIBS)
45  
46  INCLUDES=-I$(top_srcdir)/include 
This page took 0.076671 seconds and 3 git commands to generate.