[Samba] BEWARE when compiling with CUPS support

Gerald (Jerry) Carter jerry at samba.org
Tue Jul 6 19:23:04 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Bonomo wrote:

| If you configure with the --enable-cups option,
| but do not have the cups-devel package installed
| (in addition to simply cups), the binaries
| eventually produced simply will not work with
| CUPS, but the configure and make process does
| not complain.

Here's the patch.  You'll need to rerun autogen.sh after
applying.





cheers, jerry
- ----------------------------------------------------------------------
Hewlett-Packard            ------------------------- http://www.hp.com
SAMBA Team                 ---------------------- http://www.samba.org
GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
"...a hundred billion castaways looking for a home." ----------- Sting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFA6vwXIR7qMdg1EfYRApYhAKDnXq58g3zQU5CIPoZjn3EtN0WgVgCfYq6k
1XftATwE2KAChy3OXtQS1Qg=
=eZSS
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: configure.in
===================================================================
--- configure.in	(revision 1367)
+++ configure.in	(working copy)
@@ -712,10 +712,12 @@
 	AC_PATH_PROG(CUPS_CONFIG, cups-config)
 
         if test "x$CUPS_CONFIG" != x; then
-                        AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
+                AC_DEFINE(HAVE_CUPS,1,[Whether we have CUPS])
 		CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
 		LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
 		PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
+	elif test x$enable_cups == xyes; then
+		AC_MSG_ERROR(Cups support required but cups-config not located.  Make sure cups-devel related files are installed.)
         fi
 fi
 


More information about the samba mailing list