[PATCH] configure: Improve resolv lib test for glibc 2.34
Fabian Maurer
dark.shadow4 at web.de
Wed Aug 18 17:53:56 CDT 2021
res_init and res_query don't need lresolv on glibc 2.34.
Added another test for ns_initparse and friends.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51635
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index a143f6d3d2a..b4e66435f92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1499,7 +1499,7 @@ then
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
-#include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)]])],
+#include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)]])],
[ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
test "x$ac_cv_have_resolv" = "xnot found" || break
done
--
2.33.0
More information about the wine-devel
mailing list