summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-12-17 21:54:45 +0100
committerWerner Koch <wk@gnupg.org>2016-12-17 21:57:10 +0100
commite77b924fec1082faae48cdd2ff8474874a22bdf7 (patch)
tree26a0f309e55f42ce1b748cce1047c5bd556b0db9 /configure.ac
parentpo: Fix Japanese translation. (diff)
downloadgnupg2-e77b924fec1082faae48cdd2ff8474874a22bdf7.tar.xz
gnupg2-e77b924fec1082faae48cdd2ff8474874a22bdf7.zip
dirmngr: Fix setup of libdns for W32.
* configure.ac (DNSLIB) {W32]: Add -liphlpapi. * dirmngr/dns-stuff.c [W32]: Include iphlpapi.h and define WIN32_LEAN_AND_MEAN. (libdns_init) [W32]: Use GetNetworkParams to get the nameserver. * dirmngr/t-dns-stuff.c (init_sockets): New. (main): Call it. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1c467bfff..663061031 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1088,6 +1088,12 @@ if test "$build_dirmngr" = "yes"; then
show_tor_support="${show_tor_support} (no system resolver)"
fi
+ if test "$have_w32_system" = yes; then
+ if test "$use_libdns" = yes; then
+ DNSLIBS="$DNSLIBS -liphlpapi"
+ fi
+ fi
+
LIBS=$_dns_save_libs
fi