]> git.pld-linux.org Git - packages/squid.git/blob - squid-libnsl_fixes.patch
- HEAD fixed
[packages/squid.git] / squid-libnsl_fixes.patch
1 --- ./configure.in.org  2006-12-03 22:02:15.000000000 +0000
2 +++ ./configure.in      2006-12-03 22:04:56.000000000 +0000
3 @@ -29,6 +29,7 @@
4  
5  
6  CRYPTLIB=''
7 +NSLLIB=''
8  REGEXLIB=''    # -lregex
9  LIBREGEX=''    # libregex.a
10  
11 @@ -2011,8 +2012,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 +AC_SEARCH_LIBS(socket, socket)
21  AC_MSG_CHECKING(for winsock)
22  save_LIBS="$LIBS"
23  for curlib in ws2_32 wsock32; do
24 --- ./helpers/basic_auth/YP/Makefile.am.org     2005-05-17 16:56:26.000000000 +0000
25 +++ ./helpers/basic_auth/YP/Makefile.am 2006-12-03 22:06:20.000000000 +0000
26 @@ -7,5 +7,5 @@
27  
28  libexec_PROGRAMS = yp_auth
29  yp_auth_SOURCES        = yp_auth.c nis_support.h nis_support.c
30 -LDADD  = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(XTRA_LIBS)
31 +LDADD  = -L$(top_builddir)/lib -lmiscutil $(CRYPTLIB) $(NSLLIB) $(XTRA_LIBS)
32  INCLUDES       = -I$(top_srcdir)/include
This page took 0.064291 seconds and 3 git commands to generate.