summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-05 15:03:31 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-06 11:16:11 +1000
commitf453117569e04087ae461677717b14cdd65a4cd4 (patch)
tree65fcd1816e2edb947fa736752ed237e04b65af34 /lib
parente00ac55994ad7d067f7f628ae4157f0d23f819c4 (diff)
downloadsamba-f453117569e04087ae461677717b14cdd65a4cd4.tar.gz
samba-f453117569e04087ae461677717b14cdd65a4cd4.tar.bz2
samba-f453117569e04087ae461677717b14cdd65a4cd4.zip
s3-printing: Restrict printing=cups to systems with cups development headers at build time
This means that instead of failing due to the default commandline values not being quite correct that we clearly fail at loadparm and testparm time when parsing the printing= line. Andrew Bartlett
Diffstat (limited to 'lib')
-rw-r--r--lib/param/param_table.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index 4126d89c65..2aa392a683 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -186,8 +186,12 @@ static const struct enum_list enum_printing[] = {
{PRINT_QNX, "qnx"},
{PRINT_PLP, "plp"},
{PRINT_LPRNG, "lprng"},
+#ifdef HAVE_CUPS
{PRINT_CUPS, "cups"},
+#endif
+#ifdef HAVE_IPRINT
{PRINT_IPRINT, "iprint"},
+#endif
{PRINT_LPRNT, "nt"},
{PRINT_LPROS2, "os2"},
#if defined(DEVELOPER) || defined(ENABLE_SELFTEST)