Skip to contentSkip to conversation

Use cups-config instead of hardcoded location

PATCH In review Tiziano Müller 2 participants 2 messages Apr 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use cups-config instead of hardcoded location

Hi there

This patch has been sitting in our cvs repo for ages:
Use cups-config instead of hardcoded cups-location.

Thanks,
Tiziano

? cups/.deps
? cups/Makefile
? cups/Makefile.in
Index: cups/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/utils/cups/Makefile.am,v
retrieving revision 1.9

Makefile.am +1 -1
diff -u -r1.9 Makefile.am
@@ -1,6 +1,6 @@
 
 if CUPS
-cupsdir = $(libdir)/cups/backend
+cupsdir = `cups-config --serverbin`/backend
 
 cups_PROGRAMS = bluetooth
 else
#1 lore raw
Quoted 4 lines · Tiziano Müller

Hi there

This patch has been sitting in our cvs repo for ages:
Use cups-config instead of hardcoded cups-location.

This check should be done in configure.ac, along with a default if cups-config isn't available. Otherwise we'll end up with stuff in /backend and warnings during the build.