diff options
author | defanor <defanor@uberspace.net> | 2021-09-21 21:39:52 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-09-21 21:39:52 +0300 |
commit | 18f1f8f8d12131402ca13b53488870f2ab21d3d1 (patch) | |
tree | 33b885ef6495d3745265d17e598fdf21268a2553 /configure.ac | |
parent | bec43cf7a9d33cd0ad393c86ffdd005c45f0f419 (diff) |
Make libunbound optional
Just use gethostbyname when it's disabled. Possibly will add c-ares,
getaddrinfo_a, and other options in the future.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index d9453ed..9e8e080 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,7 @@ PKG_CHECK_MODULES([GSASL], [libgsasl]) PKG_CHECK_MODULES([NETTLE], [nettle]) -# DNS: libunbound +# DNS: libunbound, optional AC_ARG_VAR([DNSSEC_TRUST_ANCHOR_FILE], [A DNSSEC trust anchor, containing DNSKEY in zone file format]) @@ -34,7 +34,12 @@ AC_DEFINE_UNQUOTED([DNSSEC_TRUST_ANCHOR_FILE], "$DNSSEC_TRUST_ANCHOR_FILE", [A DNSSEC trust anchor, containing DNSKEY in zone file format]) -PKG_CHECK_MODULES([UNBOUND], [libunbound]) +AC_ARG_WITH([unbound], + AS_HELP_STRING([--without-unbound], [don't use libunbound])) + +AS_IF([test "x$with_unbound" != "xno"], + [PKG_CHECK_MODULES([UNBOUND], [libunbound], + [AC_DEFINE([USE_UNBOUND], [1], [Use libunbound])])]) # GPGME, optional |