Don't fail if colord or libunwind are not present
This patch adds auto detection for presence of the colord and libunwind packages.
This commit is contained in:
committed by
Kristian Høgsberg
parent
4b2c236845
commit
49c36c6804
+31
-12
@@ -291,11 +291,19 @@ AM_CONDITIONAL(ENABLE_TABLET_SHELL,
|
|||||||
AC_ARG_ENABLE(colord,
|
AC_ARG_ENABLE(colord,
|
||||||
AS_HELP_STRING([--disable-colord],
|
AS_HELP_STRING([--disable-colord],
|
||||||
[do not build colord CMS support]),,
|
[do not build colord CMS support]),,
|
||||||
enable_colord=yes)
|
enable_colord=auto)
|
||||||
AM_CONDITIONAL(ENABLE_COLORD,
|
AM_CONDITIONAL(ENABLE_COLORD, test "x$enable_colord" = "xyes")
|
||||||
test "x$enable_colord" = "xyes")
|
if test "x$enable_colord" != "xno"; then
|
||||||
if test x$enable_colord = xyes; then
|
PKG_CHECK_MODULES(COLORD,
|
||||||
PKG_CHECK_MODULES(COLORD, colord >= 0.1.27)
|
colord >= 0.1.27,
|
||||||
|
have_colord=yes,
|
||||||
|
have_colord=no)
|
||||||
|
if test "x$have_colord" = "xno" -a "x$enable_colord" = "xyes"; then
|
||||||
|
AC_MSG_ERROR([colord support explicitly requested, but colord couldn't be found])
|
||||||
|
fi
|
||||||
|
if test "x$have_colord" = "xyes"; then
|
||||||
|
enable_colord=yes
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes)
|
AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes)
|
||||||
@@ -319,14 +327,25 @@ if test "x$GCC" = "xyes"; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(GCC_CFLAGS)
|
AC_SUBST(GCC_CFLAGS)
|
||||||
|
|
||||||
AC_ARG_ENABLE(libunwind, AS_HELP_STRING([ --disable-libunwind],
|
AC_ARG_ENABLE(libunwind,
|
||||||
[Disable libunwind usage for backtraces]),,
|
AS_HELP_STRING([--disable-libunwind],
|
||||||
enable_libunwind=yes)
|
[Disable libunwind usage for backtraces]),,
|
||||||
if test "x$enable_libunwind" = xyes; then
|
enable_libunwind=auto)
|
||||||
PKG_CHECK_MODULES(LIBUNWIND, libunwind)
|
|
||||||
AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
|
AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$enable_libunwind" = xyes])
|
||||||
|
if test "x$enable_libunwind" != "xno"; then
|
||||||
|
PKG_CHECK_MODULES(LIBUNWIND,
|
||||||
|
libunwind,
|
||||||
|
have_libunwind=yes,
|
||||||
|
have_libunwind=no)
|
||||||
|
if test "x$have_libunwind" = "xno" -a "x$enable_libunwind" = "xyes"; then
|
||||||
|
AC_MSG_ERROR([libunwind support explicitly requested, but libunwind couldn't be found])
|
||||||
|
fi
|
||||||
|
if test "x$have_libunwind" = "xyes"; then
|
||||||
|
enable_libunwind=yes
|
||||||
|
AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user