]> git.pld-linux.org Git - packages/squid.git/blame - squid-libnsl_fixes.patch
- fixed %%pre (changed to apache-like), added %%postun
[packages/squid.git] / squid-libnsl_fixes.patch
CommitLineData
e9cfa3c3 1--- squid-2.4.STABLE2/configure.in~ Fri Oct 12 18:34:14 2001
2+++ squid-2.4.STABLE2/configure.in Fri Oct 12 19:17:42 2001
3@@ -16,6 +16,7 @@
4 AC_CANONICAL_HOST
5
6 CRYPTLIB=''
7+NSLLIB=''
8 REGEXLIB='' # -lregex
9 LIBREGEX='' # libregex.a
10
11@@ -1006,8 +1007,10 @@
12 fi
13
14 dnl Check for needed libraries
15-AC_CHECK_LIB(nsl, main)
16 AC_CHECK_LIB(socket, main)
17+AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname))
18+AC_CHECK_LIB(nsl, yp_match, NSLLIB="-lnsl")
19+AC_SUBST(NSLLIB)
20
21 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
22 echo "skipping libmalloc check (--enable-dlmalloc specified)"
23--- squid-2.4.STABLE2/auth_modules/YP/Makefile.in~ Tue Jan 16 22:12:28 2001
24+++ squid-2.4.STABLE2/auth_modules/YP/Makefile.in Fri Oct 12 19:35:32 2001
25@@ -35,6 +35,7 @@
26 PERL = @PERL@
27 CRYPTLIB = @CRYPTLIB@
28 REGEXLIB = @REGEXLIB@
29+NSLLIB = @NSLLIB@
30 PTHREADLIB = @PTHREADLIB@
31 SNMPLIB = @SNMPLIB@
32 MALLOCLIB = @LIB_MALLOC@
33@@ -49,7 +49,7 @@
34
35 INCLUDE = -I. -I../../include -I$(top_srcdir)/include
36 CFLAGS = $(AC_CFLAGS) $(INCLUDE) $(DEFINES)
37-AUTH_LIBS = -L../../lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
38+AUTH_LIBS = -L../../lib -lmiscutil $(CRYPTLIB) $(NSLLIB) $(XTRA_LIBS)
39
40 PROGS = $(YP_AUTH_EXE)
41 OBJS = yp_auth.o nis_support.o
This page took 0.028322 seconds and 4 git commands to generate.