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@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a3bbf51377
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
493a7f4daa
commit
f776c46642
|
@ -14015,7 +14015,7 @@ else
|
||||||
int
|
int
|
||||||
main ()
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1482,7 +1482,7 @@ then
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#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"])
|
[ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
|
||||||
test "x$ac_cv_have_resolv" = "xnot found" || break
|
test "x$ac_cv_have_resolv" = "xnot found" || break
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue