diff options
author | Werner Koch <[email protected]> | 2014-11-07 17:17:52 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-11-07 17:17:52 +0000 |
commit | f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0 (patch) | |
tree | bd5894c76814b9e9c32ab54702cf2ee6c85fc2a3 /configure.ac | |
parent | doc: Add announce text for 2.1 (diff) | |
download | gnupg-f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0.tar.gz gnupg-f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0.zip |
build: Improve test for ADNS
* configure.ac <adns>: Use adns_free as probe function for libadns.
(HAVE_ADNS_FREE): Remove bogus tests to set this and remove the macro.
(ADNSLIBS): Do not ac_subst - it is only used within configure.
--
adns_free is required on Windows anyway (for robustness reasons) and
it has been around for so long now that we do not need a separate
test. An upstream adns 1.5 has meanwhile been release but I doubt that
this has the required Windows code - and it is not libtool based
anyway.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 9afcd3b64..320ee27a7 100644 --- a/configure.ac +++ b/configure.ac @@ -904,18 +904,14 @@ AC_ARG_WITH(adns, fi]) if test "$with_adns" != "no"; then AC_CHECK_HEADERS(adns.h, - AC_CHECK_LIB(adns, adns_init, + AC_CHECK_LIB(adns, adns_free, [have_adns=yes], [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]), - [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]) + [CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}]) fi if test "$have_adns" = "yes"; then ADNSLIBS="-ladns" fi -AC_SUBST(ADNSLIBS) -# Newer adns versions feature a free function to be used under W32. -AC_CHECK_FUNCS(adns_free) - # |