[gnome-control-center] printers: Check that cups-config exists
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Check that cups-config exists
- Date: Fri, 17 Aug 2012 17:05:19 +0000 (UTC)
commit c2987d8cdee89be5209b1bc4c8af108bcb0f7dcb
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 17 17:47:43 2012 +0100
printers: Check that cups-config exists
Before using it.
configure.ac | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1e2fde6..517718e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,8 +186,11 @@ AC_ARG_ENABLE([cups],
if test x"$enable_cups" != x"no" ; then
AC_PROG_SED
- AC_PATH_PROG(CUPS_CONFIG, cups-config,
- AC_MSG_ERROR([cups-config not found but CUPS support requested]))
+ AC_PATH_PROG(CUPS_CONFIG, cups-config)
+
+ if test x$CUPS_CONFIG = x; then
+ AC_MSG_ERROR([cups-config not found but CUPS support requested])
+ fi
CUPS_API_VERSION=`$CUPS_CONFIG --api-version`
CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | cut -d . -f 1`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]