From 39354eaa6ca1559d2f9419734639391e08c181f0 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 6 Jul 2004 19:24:34 +0000 Subject: r1368: fix configure check so that if you set --enable-cups[=yes] and don't have the devel files, the configure script will exit with an error (This used to be commit e2c7651e1625f7967f992ba76645a4340ea2d0dd) --- source3/configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/configure.in b/source3/configure.in index 44ef66ab8c..e57076a346 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -712,10 +712,12 @@ 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]) + 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 -- cgit