Ticket #421: patch-configure

File patch-configure, 664 bytes (added by wah.java@…, at 2008-06-20T16:02:57Z)

diff to patch the configure script

Line 
1
2$FreeBSD$
3
4--- configure.orig
5+++ configure
6@@ -322,13 +322,19 @@
7 
8 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings
9 
10-for i in /lib /usr/lib /usr/local/lib; do
11-       if [ -f $i/libresolv.a ]; then
12+if [ $arch = FreeBSD ]; then
13+       if [ `strings /lib/libc.so.7 |grep res_query |wc -l` -gt 0 ]; then
14                echo '#define HAVE_RESOLV_A' >> config.h
15-               echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
16-               break
17-       fi
18-done
19+       fi;
20+else
21+       for i in /lib /usr/lib /usr/local/lib; do
22+               if [ -f $i/libresolv.a ]; then
23+                       echo '#define HAVE_RESOLV_A' >> config.h
24+                       echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings
25+                       break
26+               fi
27+       done
28+fi;
29 
30 STORAGES="text xml"
31