diff --git a/common/dns-cert.c b/common/dns-cert.c index 179bb1524..4e297bf92 100644 --- a/common/dns-cert.c +++ b/common/dns-cert.c @@ -44,9 +44,6 @@ #endif #ifdef USE_ADNS # include -# ifndef HAVE_ADNS_FREE -# define adns_free free -# endif #endif #include "util.h" diff --git a/common/pka.c b/common/pka.c index 3c45e8bbf..d47216298 100644 --- a/common/pka.c +++ b/common/pka.c @@ -48,9 +48,6 @@ #endif /* USE_DNS_PKA */ #ifdef USE_ADNS # include -# ifndef HAVE_ADNS_FREE -# define adns_free free -# endif #endif #include "util.h" diff --git a/common/srv.c b/common/srv.c index 380e356bd..7a0c42d4f 100644 --- a/common/srv.c +++ b/common/srv.c @@ -45,9 +45,6 @@ #include #ifdef USE_ADNS # include -# ifndef HAVE_ADNS_FREE -# define adns_free free -# endif #endif #include "util.h" 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) - #