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 /epan/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 'epan/acinclude.m4')
-rw-r--r-- | epan/acinclude.m4 | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/epan/acinclude.m4 b/epan/acinclude.m4 index 0febc2f26f..f10c9aa048 100644 --- a/epan/acinclude.m4 +++ b/epan/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.1 2001/07/13 01:34:13 guy Exp $ +dnl $Id: acinclude.m4,v 1.2 2003/05/04 18:50:53 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 @@ -148,3 +148,34 @@ yes fi AC_MSG_RESULT(["$v6type, $v6lib"]) ]) + +# +# 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 + fi + ]) + + if test "x$want_adns" = "xdefaultyes"; then + want_adns=yes + fi + + if test "x$want_adns" = "xyes"; then + AC_CHECK_LIB(adns, adns_init, + AC_DEFINE(HAVE_GNU_ADNS, 1, [Define to use GNU ADNS library]),, + ) + else + AC_MSG_RESULT(not required) + fi +]) |