0002-configure-accept-non-system-cups-config.patch 1.0 KB

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