Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4a9a3d7f
Commit
4a9a3d7f
authored
Dec 26, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Improve check for libresolv.
parent
424cb27e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
33 deletions
+17
-33
configure
configure
+13
-32
configure.ac
configure.ac
+4
-1
No files found.
configure
View file @
4a9a3d7f
...
...
@@ -14273,31 +14273,19 @@ RESOLVLIBS=""
if
test
"
$ac_cv_header_resolv_h
"
=
"yes"
then
{
$as_echo
"
$as_me
:
$LINENO
: checking for res_query in -lresolv"
>
&5
$as_echo_n
"checking for res_query in -lresolv... "
>
&6
;
}
if
test
"
${
ac_cv_lib_resolv_res_query
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
ac_check_lib_save_LIBS
=
$LIBS
LIBS
=
"-lresolv
$LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"
$LIBS
-lresolv"
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char res_query ();
#include <resolv.h>
int
main ()
{
re
turn res_query
();
re
s_init
();
;
return 0;
}
...
...
@@ -14323,30 +14311,23 @@ $as_echo "$ac_try_echo") >&5
test
"
$cross_compiling
"
=
yes
||
$as_test_x
conftest
$ac_exeext
}
;
then
ac_cv_lib_resolv_res_query
=
yes
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_RESOLV 1
_ACEOF
RESOLVLIBS
=
"-lresolv"
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_lib_resolv_res_query
=
no
fi
rm
-rf
conftest.dSYM
rm
-f
core conftest.err conftest.
$ac_objext
conftest_ipa8_conftest.oo
\
conftest
$ac_exeext
conftest.
$ac_ext
LIBS
=
$ac_check_lib_save_LIBS
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$ac_cv_lib_resolv_res_query
"
>
&5
$as_echo
"
$ac_cv_lib_resolv_res_query
"
>
&6
;
}
if
test
"x
$ac_cv_lib_resolv_res_query
"
=
x
""
yes
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_RESOLV 1
_ACEOF
RESOLVLIBS
=
"-lresolv"
fi
LIBS
=
"
$ac_save_LIBS
"
fi
LCMSLIBS
=
""
...
...
configure.ac
View file @
4a9a3d7f
...
...
@@ -1006,9 +1006,12 @@ dnl **** Check for resolver library ***
AC_SUBST(RESOLVLIBS,"")
if test "$ac_cv_header_resolv_h" = "yes"
then
AC_CHECK_LIB(resolv, res_query,
ac_save_LIBS="$LIBS"
LIBS="$LIBS -lresolv"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <resolv.h>]],[[res_init();]])],
[AC_DEFINE(HAVE_RESOLV, 1, [Define if you have the resolver library and header])
RESOLVLIBS="-lresolv"])
LIBS="$ac_save_LIBS"
fi
dnl **** Check for LittleCMS ***
...
...
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