]> git.pld-linux.org Git - packages/yaz.git/blobdiff - yaz-libwrap-fix.patch
- updated for 2.1.22
[packages/yaz.git] / yaz-libwrap-fix.patch
index 17012de40f20b508026bed2e05a00530e0c7c210..3670eb215df7143d429e618f3b10810591fd76aa 100644 (file)
@@ -1,39 +1,34 @@
---- yaz-2.0/configure.in.orig  Sun Feb 23 21:18:04 2003
-+++ yaz-2.0/configure.in       Tue Mar 11 11:51:10 2003
-@@ -232,6 +232,7 @@
+--- yaz-2.1.22/configure.ac.orig       2006-06-15 15:38:05.000000000 +0200
++++ yaz-2.1.22/configure.ac    2006-07-22 15:39:52.050565250 +0200
+@@ -231,6 +231,7 @@
  dnl
  dnl ------ tcpd
  AC_ARG_ENABLE(tcpd,[  --enable-tcpd[=PREFIX]  enable TCP wrapper for server if available])
 +WRAPLIBS=""
- if test "$enable_tcpd" != ""; then
-       oldLibs=$LIBS
-       oldCPPFLAGS=$CPPFLAGS
-@@ -240,7 +241,7 @@
-               CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
-       fi
-       AC_MSG_CHECKING(for working tcpd.h)
--      LIBS="$LIBS -lwrap -lnsl"
-+      LIBS="$LIBS -lwrap"
-       AC_TRY_LINK([#include <syslog.h>
+ if test "$enable_tcpd" -a "$enable_tcpd" != "no"; then
+     oldLibs=$LIBS
+     oldCPPFLAGS=$CPPFLAGS
+@@ -239,7 +240,7 @@
+       CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include"
+     fi
+     AC_MSG_CHECKING(for working tcpd.h)
+-    LIBS="$LIBS -lwrap -lnsl"
++    LIBS="$LIBS -lwrap"
+     AC_TRY_LINK([#include <syslog.h>
  #include <tcpd.h>
-       int allow_severity = LOG_INFO;
-@@ -250,13 +251,15 @@
-       tcpd_ok=1, tcpd_ok=0)
-       if test "$tcpd_ok" = "0"; then
-               AC_MSG_RESULT(no)
--              LIBS=$oldLibs
-               CPPFLAGS=$oldCPPFLAGS
-       else
-               AC_MSG_RESULT(yes)
-               AC_DEFINE(HAVE_TCPD_H)
-+              WRAPLIBS="-lwrap"
-       fi
-+      LIBS=$oldLibs
+           int allow_severity = LOG_INFO;
+@@ -255,8 +256,11 @@
+     else
+       AC_MSG_RESULT(yes)
+       AC_DEFINE(HAVE_TCPD_H)
++      WRAPLIBS="-lwrap"
+     fi
++    LIBS=$oldLibs
  fi
 +AC_SUBST(WRAPLIBS)
  dnl
- dnl ------ Headers
- AC_CHECK_HEADERS(fnmatch.h wchar.h locale.h langinfo.h)
+ AC_SUBST(THREAD_CFLAGS)
+ HAVETHREADS=0
 --- yaz-2.0.6/src/Makefile.am.orig     2003-10-27 13:21:30.000000000 +0100
 +++ yaz-2.0.6/src/Makefile.am  2003-12-07 11:14:22.779872136 +0100
 @@ -64,6 +64,7 @@
This page took 0.029455 seconds and 4 git commands to generate.