1From 75db995dda74696123cde2869e4e9b3315b91abd Mon Sep 17 00:00:00 2001 2From: "Yann E. MORIN" <yann.morin.1998@free.fr> 3Date: Sun, 1 Aug 2021 13:40:28 +0200 4Subject: [PATCH] configure: accept non-system cups-config 5 6In cross-compilation setups, cups.config might not be installed, and 7might not be in the PATH. 8 9Allow a user to specify the full path to cups-config. 10 11Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> 12--- 13 configure.ac | 6 +++++- 14 1 file changed, 5 insertions(+), 1 deletion(-) 15 16diff --git a/configure.ac b/configure.ac 17index dd013b4a..9f033d18 100644 18--- a/configure.ac 19+++ b/configure.ac 20@@ -33,7 +33,11 @@ fi 21 AC_SUBST(DESKTOPVENDOR) 22 AC_SUBST(DESKTOPPREFIX) 23 24-cupsserverbindir="`cups-config --serverbin`" 25+AC_ARG_WITH([cups-config], 26+ [AC_HELP_STRING([--with-cups-config], [Specify the path of cups-config])],, 27+ [with_cups_config=cups-config]) 28+ 29+cupsserverbindir="`${with_cups_config} --serverbin`" 30 AC_SUBST(cupsserverbindir) 31 32 PKG_CHECK_MODULES(GLIB, glib-2.0, has_glib=yes, has_glib=no) 33-- 342.25.1 35 36