1 From b5e8dc446572c1198a24eff105a394d0f307951e Mon Sep 17 00:00:00 2001
2 From: Solomon Peachy <pizza@shaftnet.org>
3 Date: Fri, 15 Apr 2016 23:05:43 -0400
4 Subject: [PATCH] build: Don't allow USB backends to be built if CUPS is not
7 [Waldemar: backport from upstream commit
8 fc1713589fed645f2c8002c3f66dfb69af314716.]
9 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
11 configure.ac | 14 ++++++++------
12 1 file changed, 8 insertions(+), 6 deletions(-)
14 diff --git a/configure.ac b/configure.ac
15 index 800794b..ba30019 100644
18 @@ -442,12 +442,14 @@ dnl if test -z "${[EXTRA_LIBREADLINE_DEPS]}" ; then
19 dnl [EXTRA_LIBREADLINE_DEPS]=""
22 -# libusb-1.0 (For CUPS backends)
23 -PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],
25 - BUILD_LIBUSB_BACKENDS=yes],
27 - BUILD_LIBUSB_BACKENDS=no])
28 +# libusb-1.0 (For CUPS backends, but only bother if CUPS is enabled)
29 +if test "x$BUILD_CUPS" = "xyes" ; then
30 + PKG_CHECK_MODULES([LIBUSB], [libusb-1.0],
32 + BUILD_LIBUSB_BACKENDS=yes],
34 + BUILD_LIBUSB_BACKENDS=no])
37 AC_PATH_PROGS([GIMPTOOL2_CHECK], [gimptool-2.0 gimptool])
38 if test -z "${GIMPTOOL2_CHECK}" ; then