autotools: Add a libunwind configure switch

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2013-04-03 20:19:45 +02:00 committed by Kristian Høgsberg
parent 91ae483ab9
commit 5daccc373e

View File

@ -299,12 +299,14 @@ if test "x$GCC" = "xyes"; then
fi fi
AC_SUBST(GCC_CFLAGS) AC_SUBST(GCC_CFLAGS)
PKG_CHECK_MODULES(LIBUNWIND, libunwind, AC_ARG_ENABLE(libunwind, AS_HELP_STRING([ --disable-libunwind],
[have_libunwind=yes], [have_libunwind=no]) [Disable libunwind usage for backtraces]),,
if test "x$have_libunwind" = xyes; then enable_libunwind=yes)
AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support]) if test "x$enable_libunwind" = xyes; then
PKG_CHECK_MODULES(LIBUNWIND, libunwind)
AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
fi fi
AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$have_libunwind" = xyes]) AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
if test "x$WESTON_NATIVE_BACKEND" = "x"; then if test "x$WESTON_NATIVE_BACKEND" = "x"; then
WESTON_NATIVE_BACKEND="drm-backend.so" WESTON_NATIVE_BACKEND="drm-backend.so"