Commit a03eb166 authored by Marek Kašík's avatar Marek Kašík

printers: Check for CUPS header files

Don't build Printers panel if there are not CUPS header files.
parent 7d7e2496
......@@ -107,10 +107,15 @@ PKG_CHECK_MODULES(PULSEAUDIO,
libpulse-mainloop-glib >= $PA_REQUIRED_VERSION)
AC_SUBST(PULSEAUDIO_CFLAGS)
AC_SUBST(PULSEAUDIO_LIBS)
# check for cups
AC_CHECK_HEADERS(cups/cups.h cups/http.h cups/ipp.h)
CUPS_LIBS=-lcups
AC_SUBST(CUPS_LIBS)
AC_CHECK_HEADERS([cups/cups.h cups/http.h cups/ipp.h], have_cups=yes, have_cups=no)
if test x$have_cups = xyes ; then
CUPS_LIBS=-lcups
AC_SUBST(CUPS_LIBS)
else
AC_MSG_WARN(*** Printers panel will not be built (CUPS header files not found) ***)
fi
AM_CONDITIONAL(BUILD_PRINTERS, [test x$have_cups = xyes])
gtk_lib_dir=`$PKG_CONFIG --variable libdir gtk+-3.0`
gtk_binary_version=`$PKG_CONFIG --variable gtk_binary_version gtk+-3.0`
......
......@@ -5,7 +5,6 @@ SUBDIRS= \
display \
media \
mouse \
printers \
region \
network \
info \
......@@ -15,4 +14,8 @@ SUBDIRS= \
user-accounts \
datetime
if BUILD_PRINTERS
SUBDIRS += printers
endif
-include $(top_srcdir)/git.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment