summaryrefslogtreecommitdiff
path: root/source4/printing/config.m4
blob: ad5e4844e5e4057443b24b903cd18645900f0933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
############################################
# for cups support we need libcups, and a handful of header files

AC_ARG_ENABLE(cups,
[  --enable-cups           Turn on CUPS support (default=auto)])

if test x$enable_cups != xno; then
	AC_PATH_PROG(CUPS_CONFIG, cups-config)

        if test "x$CUPS_CONFIG" != x; then
                        AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
		CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
		LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
		PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
        fi
fi