mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-06 18:05:39 +00:00
configure.ac: add explicit enable/disable for lcms
This is useful for reproducable builds. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
2ec5f2a633
commit
3375ccaa27
22
configure.ac
22
configure.ac
|
@ -577,12 +577,24 @@ AC_ARG_ENABLE(demo-clients-install,
|
|||
enable_demo_clients_install=no)
|
||||
AM_CONDITIONAL(INSTALL_DEMO_CLIENTS, [test "x$enable_demo_clients_install" = "xyes"])
|
||||
|
||||
PKG_CHECK_MODULES(LCMS, lcms2,
|
||||
[have_lcms=yes], [have_lcms=no])
|
||||
if test "x$have_lcms" = xyes; then
|
||||
AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
|
||||
AC_ARG_ENABLE(lcms,
|
||||
AS_HELP_STRING([--disable-lcms],
|
||||
[Disable lcms support]),,
|
||||
enable_lcms=auto)
|
||||
if test "x$enable_lcms" != "xno"; then
|
||||
PKG_CHECK_MODULES(LCMS,
|
||||
lcms2,
|
||||
have_lcms=yes,
|
||||
have_lcms=no)
|
||||
if test "x$have_lcms" = "xno" -a "x$enable_lcms" = "xyes"; then
|
||||
AC_MSG_ERROR([lcms support explicitly requested, but lcms couldn't be found])
|
||||
fi
|
||||
if test "x$have_lcms" = "xyes"; then
|
||||
enable_lcms=yes
|
||||
AC_DEFINE(HAVE_LCMS, 1, [Have lcms support])
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_LCMS, [test "x$have_lcms" = xyes])
|
||||
AM_CONDITIONAL(HAVE_LCMS, [test "x$enable_lcms" = xyes])
|
||||
|
||||
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
|
||||
if test x$wayland_scanner = x; then
|
||||
|
|
Loading…
Reference in a new issue