Skip to content

Commit

Permalink
cups: Use pkg-config to find cups backend dir
Browse files Browse the repository at this point in the history
Some distributions(Gentoo) patch cups backend path to
something else than libdir. Use pkg-config to find backend
path for cups.
  • Loading branch information
joakim-tjernlund authored and Vudentz committed Feb 27, 2024
1 parent c01c404 commit 1503231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.tools
Expand Up @@ -538,7 +538,8 @@ endif
endif

if CUPS
cupsdir = $(libdir)/cups/backend

cupsdir = $(CUPSDIR)

cups_PROGRAMS = profiles/cups/bluetooth

Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -246,6 +246,9 @@ AC_SUBST(UDEV_DIR, [${path_udevdir}])
AC_ARG_ENABLE(cups, AS_HELP_STRING([--disable-cups],
[disable CUPS printer support]), [enable_cups=${enableval}])
AM_CONDITIONAL(CUPS, test "${enable_cups}" != "no")
if (test "${enable_cups}" != "no"); then
AC_SUBST(CUPSDIR, `$PKG_CONFIG cups --variable=cups_serverbin`/backend)
fi

AC_ARG_ENABLE(mesh, AS_HELP_STRING([--enable-mesh],
[enable Mesh profile support]), [enable_mesh=${enableval}])
Expand Down

0 comments on commit 1503231

Please sign in to comment.