From d1f53e404496dff10df7dc5e5b58ed676982c955 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 23 Aug 2001 19:06:20 +0000 Subject: Fixed detection of CUPS. We need to check for the presence of the cups header files as well as libcups. (This used to be commit 2dbb41a7b88e7fad63579111aaab4a1cd28c54d5) --- source3/printing/pcap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/printing/pcap.c') diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 313e17fb1c..cbafe27728 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -270,10 +270,10 @@ BOOL pcap_printername_ok(char *pszPrintername, char *pszPrintcapname) return(False); } -#ifdef HAVE_LIBCUPS +#ifdef HAVE_CUPS if (strequal(psz, "cups")) return (cups_printername_ok(pszPrintername)); -#endif /* HAVE_LIBCUPS */ +#endif /* HAVE_CUPS */ #ifdef SYSV if (strequal(psz, "lpstat")) @@ -344,12 +344,12 @@ void pcap_printer_fn(void (*fn)(char *, char *)) return; } -#ifdef HAVE_LIBCUPS +#ifdef HAVE_CUPS if (strequal(psz, "cups")) { cups_printer_fn(fn); return; } -#endif /* HAVE_LIBCUPS */ +#endif /* HAVE_CUPS */ #ifdef SYSV if (strequal(psz, "lpstat")) { -- cgit