[gnome-color-manager] trivial: actually abort configure if CUPS was not found



commit 0bbf1893a9a4e5d74b710199ae77c03a90012406
Author: Richard Hughes <richard hughsie com>
Date:   Fri Feb 19 18:27:01 2010 +0000

    trivial: actually abort configure if CUPS was not found

 configure.ac |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 190c37b..56281c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -171,8 +171,12 @@ AC_CHECK_HEADERS(cups/cups.h,
 		  [
 			CUPS_CFLAGS="$ac_cups_cflags"
 			CUPS_LIBS="-lcups $ac_cups_libs"
+			HAVE_CUPS="yes"
 		  ],,[$ac_cups_libs])])
 CPPFLAGS="$ac_save_CPPFLAGS"
+if test "x$HAVE_CUPS" != "xyes"; then
+	AC_MSG_ERROR([CUPS is required for gnome-color-manager])
+fi
 
 AC_PATH_PROG(GCONFTOOL, gconftool-2)
 AM_GCONF_SOURCE_2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]