Fabian Maurer : configure: Improve resolv lib test for glibc 2.34.

Alexandre Julliard julliard at winehq.org
Fri Feb 25 07:30:24 CST 2022


Module: wine
Branch: oldstable
Commit: f776c46642b200313c124ab0011823044398aef9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f776c46642b200313c124ab0011823044398aef9

Author: Fabian Maurer <dark.shadow4 at web.de>
Date:   Thu Aug 19 00:53:56 2021 +0200

configure: Improve resolv lib test for glibc 2.34.

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit a3bbf5137707abb548ff642826992b7069bef1de)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 18abeb13cb8..0ac783d7479 100755
--- a/configure
+++ b/configure
@@ -14015,7 +14015,7 @@ else
 int
 main ()
 {
-if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
+if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)
   ;
   return 0;
 }
diff --git a/configure.ac b/configure.ac
index 5c689789c86..ed5116b17c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1482,7 +1482,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




More information about the wine-cvs mailing list