Don't include /usr/local if usage of /usr/local has been disabled via

configure option.

svn path=/trunk/; revision=19706
This commit is contained in:
Jörg Mayer 2006-10-26 14:50:03 +00:00
parent f7aa75ba22
commit 6cd3bd1202
1 changed files with 5 additions and 3 deletions

View File

@ -1365,9 +1365,11 @@ AC_DEFUN([AC_WIRESHARK_ADNS_CHECK],
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