aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2018-06-24 23:31:07 +0200
committerlurchi <lurchi@strangeplace.net>2018-06-24 23:31:07 +0200
commitc38455c65f9968ccf7e870c3cce30fa19f319376 (patch)
tree523075af0d81a9f460d60b90b51557ad83bd5b42 /configure.ac
parent92e03f9117f5dc29909d73707897d28d8e27e048 (diff)
downloadgnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.tar.gz
gnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.zip
use the asynchronous DNS resolution API (getaddrinfo_a) in the resolver module
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 99eeeba8a..fc44dcf5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,7 @@ fi
58# Use Linux interface name unless the OS has a different preference 58# Use Linux interface name unless the OS has a different preference
59DEFAULT_INTERFACE="\"eth0\"" 59DEFAULT_INTERFACE="\"eth0\""
60 60
61funcstocheck="getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo" 61funcstocheck="getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo getaddrinfo_a"
62 62
63# Srcdir in a form that native compiler understands (i.e. DOS path on W32) 63# Srcdir in a form that native compiler understands (i.e. DOS path on W32)
64native_srcdir=$srcdir 64native_srcdir=$srcdir
@@ -230,6 +230,10 @@ AC_CHECK_DECLS([_stati64])
230# will be more selective! 230# will be more selective!
231SAVE_LIBS=$LIBS 231SAVE_LIBS=$LIBS
232 232
233have_addrinfo_a=0
234AC_CHECK_LIB(anl, getaddrinfo_a, [have_addrinfo_a=1 AC_DEFINE(HAVE_GETADDRINFO_A,1,[getaddrinfo_a supported])])
235AM_CONDITIONAL(HAVE_GETADDRINFO_A, [test "$have_addrinfo_a" = 1])
236
233# tests only run on Windows 237# tests only run on Windows
234if test "x$build_target" = "xmingw" 238if test "x$build_target" = "xmingw"
235then 239then
@@ -1537,7 +1541,7 @@ AC_LINK_IFELSE(
1537 ],[ 1541 ],[
1538 AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) 1542 AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available])
1539 ],[ 1543 ],[
1540 AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) 1544 AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],0,[Define this if getaddrinfo() is available])
1541 ]) 1545 ])
1542 1546
1543else 1547else