From e11e16e2842b3861c763f0d7714717ba1ba44f66 Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Mon, 5 May 2014 21:50:25 -0400 Subject: [PATCH] Make colord and wacom support optional and non-automagic --- /a/configure.ac +++ /b/configure.ac @@ -260,15 +260,28 @@ dnl --------------------------------------------------------------------------- dnl - color dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(color, + AS_HELP_STRING([--disable-color], [disable Colord support (default: enabled)]),, + enable_color=yes) +build_color=false +if test x"$enable_color" != x"no" ; then + PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 cinnamon-desktop >= $CINNAMON_DESKTOP_REQUIRED_VERSION libcanberra-gtk3]) + build_color=true +fi -PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 cinnamon-desktop >= $CINNAMON_DESKTOP_REQUIRED_VERSION libcanberra-gtk3]) +AM_CONDITIONAL(BUILD_COLOR, [test "x$build_color" = "xtrue"]) dnl --------------------------------------------------------------------------- dnl - wacom dnl --------------------------------------------------------------------------- +AC_ARG_ENABLE(wacom, + AS_HELP_STRING([--disable-wacom], [disable Wacom support (default: auto)]),, + enable_wacom=auto) build_wacom=false -PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst gudev-1.0 cinnamon-desktop xorg-wacom librsvg-2.0 >= $LIBRSVG_REQUIRED_VERSION gtk+-3.0 >= 3.8.0], - [build_wacom="true" AC_DEFINE(HAVE_WACOM, 1, [Define if wacom is being build])], [build_wacom="false"]) +if test x"$enable_wacom" != x"no" ; then + PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst gudev-1.0 cinnamon-desktop xorg-wacom librsvg-2.0 >= $LIBRSVG_REQUIRED_VERSION gtk+-3.0 >= 3.8.0], + [build_wacom="true" AC_DEFINE(HAVE_WACOM, 1, [Define if wacom is being build])], [build_wacom="false"]) +fi AM_CONDITIONAL(BUILD_WACOM, test "x$build_wacom" = "xtrue") @@ -604,6 +617,7 @@ LCMS DICT support: ${have_new_lcms} Libnotify support: ${have_libnotify} + Colord support: ${build_color} Wacom support: ${build_wacom} Smartcard support: ${have_smartcard_support} --- /a/plugins/Makefile.am +++ /b/plugins/Makefile.am @@ -6,7 +6,6 @@ automount \ background \ clipboard \ - color \ cursor \ dummy \ datetime \ @@ -23,6 +22,12 @@ disabled_plugins = $(NULL) +if BUILD_COLOR +enabled_plugins += color +else +disabled_plugins += color +endif + if BUILD_WACOM enabled_plugins += wacom else