Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e7ec1645
Commit
e7ec1645
authored
Sep 23, 2010
by
Tijl Coosemans
Committed by
Alexandre Julliard
Sep 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Detect resolver functionality on FreeBSD.
On FreeBSD this is part of libc.
parent
07898fe2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
configure
configure
+11
-6
configure.ac
configure.ac
+10
-5
No files found.
configure
View file @
e7ec1645
...
...
@@ -9977,13 +9977,13 @@ esac
fi
RESOLVLIBS
=
""
if
test
"
$ac_cv_header_resolv_h
"
=
"yes"
then
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"
$LIBS
-lresolv"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
for
lib
in
''
-lresolv
do
LIBS
=
"
$lib
$ac_save_LIBS
"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
...
...
@@ -9992,7 +9992,7 @@ then
int
main ()
{
res_
init(
);
res_
query("foo",ns_c_in,0,0,0
);
;
return 0;
}
...
...
@@ -10001,10 +10001,15 @@ if ac_fn_c_try_link "$LINENO"; then :
$as_echo
"#define HAVE_RESOLV 1"
>>
confdefs.h
RESOLVLIBS
=
"-lresolv"
RESOLVLIBS
=
"
$lib
"
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
if
test
"
${
RESOLVLIBS
+set
}
"
=
set
;
then
break
fi
done
LIBS
=
"
$ac_save_LIBS
"
fi
...
...
configure.ac
View file @
e7ec1645
...
...
@@ -1266,17 +1266,22 @@ WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"],
dnl **** Check for resolver library ***
AC_SUBST(RESOLVLIBS,"")
if test "$ac_cv_header_resolv_h" = "yes"
then
ac_save_LIBS="$LIBS"
LIBS="$LIBS -lresolv"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
for lib in '' -lresolv
do
LIBS="$lib $ac_save_LIBS"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include <resolv.h>]],[[res_
init(
);]])],
#include <resolv.h>]],[[res_
query("foo",ns_c_in,0,0,0
);]])],
[AC_DEFINE(HAVE_RESOLV, 1, [Define if you have the resolver library and header])
RESOLVLIBS="-lresolv"])
AC_SUBST(RESOLVLIBS,"$lib")])
if test "${RESOLVLIBS+set}" = set; then
break
fi
done
LIBS="$ac_save_LIBS"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment