Wireshark-dev: Re: [Wireshark-dev] Configure bug in adns support

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Tue, 24 Oct 2006 19:04:50 +0200
On Tue, Oct 24, 2006 at 03:25:55PM +0200, Thomas Steffen wrote:
> I think I found a problem in the configure script.
...
> from blastwave.org (/opt/csw). I also an incompatible version of
> libiconv in /usr/local/lib, so I specify configure
> --without-usr-local.

Shouldn't that be --disable-usr-local?

> However, this does not have the desired effect, and -L /usr/local
> always makes it into LDFLAGS.
...
> Obviously I don't want /usr/local, if I specify --without-usr-local.

Please test the attached patch and report back.

Thanks for the detailed report!

 Ciao
    Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
Index: acinclude.m4
===================================================================
--- acinclude.m4	(revision 19670)
+++ acinclude.m4	(working copy)
@@ -1365,9 +1365,11 @@
 
 	if test "x$want_adns" = "xdefaultyes"; then
 		want_adns=yes
-		withval=/usr/local
-		if test -d "$withval"; then
-			AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+		if test "x$ac_cv_enable_usr_local" = "xyes" ; then
+			withval=/usr/local
+			if test -d "$withval"; then
+				AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+			fi
 		fi
 	fi