Commit 976e715b authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Only check for libunwind on x86-64.

parent 4e9838fb
...@@ -6322,7 +6322,6 @@ printf "%s\n" "$wine_cv_cc_m32" >&6; } ...@@ -6322,7 +6322,6 @@ printf "%s\n" "$wine_cv_cc_m32" >&6; }
TARGETFLAGS="$TARGETFLAGS -m32" TARGETFLAGS="$TARGETFLAGS -m32"
PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig} PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
export PKG_CONFIG_LIBDIR export PKG_CONFIG_LIBDIR
with_unwind=${with_unwind:-no}
else else
CC="$CC -m64" CC="$CC -m64"
CXX="$CXX -m64" CXX="$CXX -m64"
...@@ -6419,9 +6418,6 @@ printf "%s\n" "$wine_cv_float_abi" >&6; } ...@@ -6419,9 +6418,6 @@ printf "%s\n" "$wine_cv_float_abi" >&6; }
CFLAGS="$CFLAGS -mfloat-abi=$float_abi" CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi" TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
;; ;;
i[3456789]86*)
with_unwind=${with_unwind:-no}
;;
esac esac
enable_win16=${enable_win16:-i386} enable_win16=${enable_win16:-i386}
...@@ -17862,8 +17858,10 @@ esac ...@@ -17862,8 +17858,10 @@ esac
fi fi
if test "x$with_unwind" != xno if test $HOST_ARCH = x86_64
then then
if test "x$with_unwind" != xno
then
rm -f conftest.err rm -f conftest.err
if ${UNWIND_CFLAGS:+false} : if ${UNWIND_CFLAGS:+false} :
then : then :
...@@ -17965,9 +17963,9 @@ printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h ...@@ -17965,9 +17963,9 @@ printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h
fi fi
CPPFLAGS=$ac_save_CPPFLAGS CPPFLAGS=$ac_save_CPPFLAGS
fi fi
case $host in case $host in
aarch64*|*-darwin*) *-darwin*)
if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono
then : then :
case "x$with_unwind" in case "x$with_unwind" in
...@@ -17978,7 +17976,8 @@ This is an error since --with-unwind was requested." "$LINENO" 5 ;; ...@@ -17978,7 +17976,8 @@ This is an error since --with-unwind was requested." "$LINENO" 5 ;;
esac esac
fi ;; fi ;;
esac esac
fi
if test "x$with_sdl" != "xno" if test "x$with_sdl" != "xno"
then then
......
...@@ -131,7 +131,6 @@ case $host in ...@@ -131,7 +131,6 @@ case $host in
TARGETFLAGS="$TARGETFLAGS -m32" TARGETFLAGS="$TARGETFLAGS -m32"
PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig} PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
export PKG_CONFIG_LIBDIR export PKG_CONFIG_LIBDIR
with_unwind=${with_unwind:-no}
else else
CC="$CC -m64" CC="$CC -m64"
CXX="$CXX -m64" CXX="$CXX -m64"
...@@ -177,9 +176,6 @@ case $host in ...@@ -177,9 +176,6 @@ case $host in
CFLAGS="$CFLAGS -mfloat-abi=$float_abi" CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi" TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
;; ;;
i[[3456789]]86*)
with_unwind=${with_unwind:-no}
;;
esac esac
enable_win16=${enable_win16:-i386} enable_win16=${enable_win16:-i386}
...@@ -1698,8 +1694,10 @@ WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"], ...@@ -1698,8 +1694,10 @@ WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"],
[libudev ${notice_platform}development files not found, plug and play won't be supported.]) [libudev ${notice_platform}development files not found, plug and play won't be supported.])
dnl **** Check for libunwind **** dnl **** Check for libunwind ****
if test "x$with_unwind" != xno if test $HOST_ARCH = x86_64
then then
if test "x$with_unwind" != xno
then
WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,, WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
[AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step, [AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
...@@ -1725,12 +1723,13 @@ then ...@@ -1725,12 +1723,13 @@ then
then then
AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).]) AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
fi]) fi])
fi fi
case $host in case $host in
aarch64*|*-darwin*) *-darwin*)
WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = 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.]) ;; [libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
esac esac
fi
dnl **** Check for libSDL2 **** dnl **** Check for libSDL2 ****
if test "x$with_sdl" != "xno" if test "x$with_sdl" != "xno"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment