diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-05-04 18:50:56 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-05-04 18:50:56 +0000 |
commit | 1d9b54fc072952758813d6cbce25bbe1ef8c2ac3 (patch) | |
tree | 1fc6bf8e2065199f49398fdfb4c3ef23ac1ab398 /acinclude.m4 | |
parent | 5cc92eeb86806e56d7524c4887716b688fbdd0ca (diff) |
Add support for asynchronous DNS updates using the GNU ADNS library.
Support can be enabled at configure time by using "--with-adns=DIR".
If support is enabled, async queries happen whenever host name resolution
is enabled. Do we need a separate preference for async queries?
Currently, only IPv4 reverse queries are supported. I can add IPv4 forward
lookup support, but I don't have any way to test IPv6 queries.
svn path=/trunk/; revision=7640
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 6e948fb2c6..e842228ce3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2,7 +2,7 @@ dnl Macros that test for specific features. dnl This file is part of the Autoconf packaging for Ethereal. dnl Copyright (C) 1998-2000 by Gerald Combs. dnl -dnl $Id: acinclude.m4,v 1.53 2003/02/28 06:04:30 guy Exp $ +dnl $Id: acinclude.m4,v 1.54 2003/05/04 18:50:51 gerald Exp $ dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -679,3 +679,42 @@ AC_DEFUN([AC_ETHEREAL_GNU_SED_CHECK], HAVE_GNU_SED=no fi ]) + +# +# AC_ETHEREAL_ADNS_CHECK +# +AC_DEFUN(AC_ETHEREAL_ADNS_CHECK, +[ + want_adns=defaultyes + + AC_ARG_WITH(adns, + [ --with-adns=DIR use GNU ADNS, located in directory DIR.], [ + if test "x$withval" = "xno"; then + want_adns=no + elif test "x$withval" = "xyes"; then + want_adns=yes + elif test -d "$withval"; then + want_adns=yes + AC_ETHEREAL_ADD_DASH_L(LDFLAGS, ${withval}/lib) + fi + ]) + + if test "x$want_adns" = "xdefaultyes"; then + want_adns=yes + withval=/usr/local + if test -d "$withval"; then + AC_ETHEREAL_ADD_DASH_L(LDFLAGS, ${withval}/lib) + fi + fi + + if test "x$want_adns" = "xyes"; then + AC_CHECK_LIB(adns, adns_init, + [ + ADNS_LIBS=-ladns + AC_DEFINE(HAVE_GNU_ADNS, 1, [Define to use GNU ADNS library]) + ],, + ) + else + AC_MSG_RESULT(not required) + fi +]) |