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
4c0f59dd
Commit
4c0f59dd
authored
Sep 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for unw_step() instead of unw_getcontext().
unw_getcontext() can be inlined. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6033b3a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
configure
configure
+20
-20
configure.ac
configure.ac
+11
-11
No files found.
configure
View file @
4c0f59dd
...
...
@@ -14893,9 +14893,9 @@ $as_echo "$as_me:${as_lineno-$LINENO}: libunwind cflags: $UNWIND_CFLAGS" >&5
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: libunwind libs:
$UNWIND_LIBS
"
>
&5
ac_save_CPPFLAGS
=
$CPPFLAGS
CPPFLAGS
=
"
$CPPFLAGS
$UNWIND_CFLAGS
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for unw_
getcontext
"
>
&5
$as_echo_n
"checking for unw_
getcontext
... "
>
&6
;
}
if
${
wine_cv_have_unw_
getcontext
+
:
}
false
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for unw_
step
"
>
&5
$as_echo_n
"checking for unw_
step
... "
>
&6
;
}
if
${
wine_cv_have_unw_
step
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
...
...
@@ -14905,28 +14905,28 @@ else
int
main ()
{
unw_context_t context; unw_
getcontext
( &context );
unw_context_t context; unw_
step
( &context );
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
wine_cv_have_unw_
getcontext
=
"yes"
wine_cv_have_unw_
step
=
"yes"
else
wine_cv_have_unw_
getcontext
=
"no"
wine_cv_have_unw_
step
=
"no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_have_unw_
getcontext
"
>
&5
$as_echo
"
$wine_cv_have_unw_
getcontext
"
>
&6
;
}
if
test
"
$wine_cv_have_unw_
getcontext
"
=
no
-a
-n
"
$UNWIND_LIBS
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_have_unw_
step
"
>
&5
$as_echo
"
$wine_cv_have_unw_
step
"
>
&6
;
}
if
test
"
$wine_cv_have_unw_
step
"
=
no
-a
-n
"
$UNWIND_LIBS
"
then
save_libs
=
$LIBS
LIBS
=
"
$UNWIND_LIBS
$LIBS
"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for unw_
getcontext
in libunwind"
>
&5
$as_echo_n
"checking for unw_
getcontext
in libunwind... "
>
&6
;
}
if
${
wine_cv_have_libunwind_unw_
getcontext
+
:
}
false
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for unw_
step
in libunwind"
>
&5
$as_echo_n
"checking for unw_
step
in libunwind... "
>
&6
;
}
if
${
wine_cv_have_libunwind_unw_
step
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
...
...
@@ -14936,25 +14936,25 @@ else
int
main ()
{
unw_context_t context; unw_
getcontext
( &context );
unw_context_t context; unw_
step
( &context );
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
wine_cv_have_libunwind_unw_
getcontext
=
"yes"
wine_cv_have_libunwind_unw_
step
=
"yes"
else
wine_cv_have_libunwind_unw_
getcontext
=
"no"
wine_cv_have_libunwind_unw_
step
=
"no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_have_libunwind_unw_
getcontext
"
>
&5
$as_echo
"
$wine_cv_have_libunwind_unw_
getcontext
"
>
&6
;
}
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_have_libunwind_unw_
step
"
>
&5
$as_echo
"
$wine_cv_have_libunwind_unw_
step
"
>
&6
;
}
LIBS
=
$save_libs
fi
test
"
$wine_cv_have_libunwind_unw_
getcontext
"
=
yes
||
UNWIND_LIBS
=
""
if
test
"x
$wine_cv_have_unw_
getcontext$wine_cv_have_libunwind_unw_getcontext
"
!=
xnono
test
"
$wine_cv_have_libunwind_unw_
step
"
=
yes
||
UNWIND_LIBS
=
""
if
test
"x
$wine_cv_have_unw_
step$wine_cv_have_libunwind_unw_step
"
!=
xnono
then
$as_echo
"#define HAVE_LIBUNWIND 1"
>>
confdefs.h
...
...
@@ -14967,7 +14967,7 @@ test -z "$UNWIND_LIBS" || UNWIND_LIBS=`echo " $UNWIND_LIBS" | sed 's/ -L\([^/]\)
fi
case
$host
in
aarch64
*
|
*
-darwin
*
)
if
test
"x
$wine_cv_have_unw_
getcontext$wine_cv_have_libunwind_unw_getcontext
"
!=
xnono
;
then
:
if
test
"x
$wine_cv_have_unw_
step$wine_cv_have_libunwind_unw_step
"
!=
xnono
;
then
:
case
"x
$with_unwind
"
in
x
)
as_fn_append wine_notices
"|libunwind
${
notice_platform
}
development files not found, stack unwinding won't work."
;;
xno
)
;;
...
...
configure.ac
View file @
4c0f59dd
...
...
@@ -1694,32 +1694,32 @@ dnl **** Check for libuwind ****
if test "x$with_unwind" != xno
then
WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
[AC_CACHE_CHECK([for unw_
getcontext],wine_cv_have_unw_getcontext
,
[AC_CACHE_CHECK([for unw_
step],wine_cv_have_unw_step
,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
#include <libunwind.h>]],
[[unw_context_t context; unw_
getcontext
( &context );]])],
[wine_cv_have_unw_
getcontext="yes"],[wine_cv_have_unw_getcontext
="no"])])
if test "$wine_cv_have_unw_
getcontext
" = no -a -n "$UNWIND_LIBS"
[[unw_context_t context; unw_
step
( &context );]])],
[wine_cv_have_unw_
step="yes"],[wine_cv_have_unw_step
="no"])])
if test "$wine_cv_have_unw_
step
" = no -a -n "$UNWIND_LIBS"
then
save_libs=$LIBS
LIBS="$UNWIND_LIBS $LIBS"
AC_CACHE_CHECK([for unw_
getcontext in libunwind],wine_cv_have_libunwind_unw_getcontext
,
AC_CACHE_CHECK([for unw_
step in libunwind],wine_cv_have_libunwind_unw_step
,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
#include <libunwind.h>]],
[[unw_context_t context; unw_
getcontext
( &context );]])],
[wine_cv_have_libunwind_unw_
getcontext
="yes"],
[wine_cv_have_libunwind_unw_
getcontext
="no"])])
[[unw_context_t context; unw_
step
( &context );]])],
[wine_cv_have_libunwind_unw_
step
="yes"],
[wine_cv_have_libunwind_unw_
step
="no"])])
LIBS=$save_libs
fi
test "$wine_cv_have_libunwind_unw_
getcontext
" = yes || UNWIND_LIBS=""
if test "x$wine_cv_have_unw_
getcontext$wine_cv_have_libunwind_unw_getcontext
" != xnono
test "$wine_cv_have_libunwind_unw_
step
" = yes || UNWIND_LIBS=""
if test "x$wine_cv_have_unw_
step$wine_cv_have_libunwind_unw_step
" != xnono
then
AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
fi])
fi
case $host in
aarch64*|*-darwin*)
WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_
getcontext$wine_cv_have_libunwind_unw_getcontext
" != xnono],
WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_
step$wine_cv_have_libunwind_unw_step
" != xnono],
[libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
esac
...
...
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