[Libreoffice-commits] .: configure.in
François Tigeot
ftigeot at kemper.freedesktop.org
Mon Aug 22 14:29:55 PDT 2011
configure.in | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
New commits:
commit 107d717941f997d1166ff6a5e8f869574a88c76d
Author: François Tigeot <ftigeot at wolfpond.org>
Date: Mon Aug 22 23:28:21 2011 +0200
Do not check for cups presence on Windows and Android systems
diff --git a/configure.in b/configure.in
index e362edb..6a299e3 100755
--- a/configure.in
+++ b/configure.in
@@ -1457,6 +1457,7 @@ dnl These values may be checked and reset later.
dnl ===================================================================
#defaults unless the os test overrides this:
test_randr=yes
+test_cups=yes
test_fontconfig=yes
case "$host_os" in
@@ -1526,6 +1527,7 @@ cygwin*|interix*|mingw32*)
# is "mingw32" (because in that case it is the MinGW
# tool-chain that is used).
+ test_cups=no
test_randr=no
test_freetype=no
test_fontconfig=no
@@ -1628,6 +1630,7 @@ dragonfly*)
androideabi*)
build_gstreamer=no
+ test_cups=no
test_fontconfig=no
test_freetype=no
test_gtk=no
@@ -2271,10 +2274,12 @@ AC_SUBST(DISABLE_STRIP)
dnl check for cups support
dnl ===================================================================
AC_MSG_CHECKING([whether cups support is present])
-AC_CHECK_LIB(cups, cupsPrintFiles)
-AC_CHECK_HEADER(cups/cups.h, AC_DEFINE(HAVE_CUPS_H))
-if test "$ac_cv_lib_cups_cupsPrintFiles" != "yes" -a "$ac_cv_header_cups_cups_h" != "yes"; then
- AC_MSG_ERROR([Could not find CUPS. Install libcupsys2-dev or cups???-devel.])
+if test "$test_cups" = "yes"; then
+ AC_CHECK_LIB(cups, cupsPrintFiles)
+ AC_CHECK_HEADER(cups/cups.h, AC_DEFINE(HAVE_CUPS_H))
+ if test "$ac_cv_lib_cups_cupsPrintFiles" != "yes" -a "$ac_cv_header_cups_cups_h" != "yes"; then
+ AC_MSG_ERROR([Could not find CUPS. Install libcupsys2-dev or cups???-devel.])
+ fi
fi
More information about the Libreoffice-commits
mailing list