]> git.ipfire.org Git - thirdparty/openvpn.git/commit
assume res_init() is always there.
authorGert Doering <gert@greenie.muc.de>
Mon, 27 Apr 2015 19:27:21 +0000 (21:27 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 23 May 2015 19:35:59 +0000 (21:35 +0200)
commit403dc434d245e5df5ae262935aa2e7364547e260
tree0bea3d5d8c7ff554c22e8e2364369cfbd454ea56
parentac1cb5bfbb9e09e79fd737bc57999d968d77c5ad
assume res_init() is always there.

Previously, the code tried to find res_init(), and on some systems
got it wrong in configure, silently not-using res_init(), leading
to unexpected failures to re-init the resolver.

We know that all supported OSes (except Windows) have res_init(), so
change the call to "#ifndef WIN32", and adjust configure.ac to just
find the library to link (if any).  With that, failures to find
res_init() are no longer "hidden" but clearly visible at link time.

AC_SEARCH_LIBS() bits inspired by CUPS' cups_network.m4 (GPLv2)

Fix (part of) trac #523

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Lazy-ACK-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1430162841-5840-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9614
configure.ac
src/openvpn/socket.c