[Swfdec] configure.ac

Benjamin Otte company at kemper.freedesktop.org
Wed Mar 28 12:50:41 PDT 2007


 configure.ac |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

New commits:
diff-tree 579955e4dcc87dd9c91428ee1967e01bc9cfa69b (from 493905baa1c07054276adb078f086e7ca4acc26b)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Mar 28 21:51:35 2007 +0200

    print better error message when required cairo isn't available

diff --git a/configure.ac b/configure.ac
index 65be1fc..5309072 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,11 +154,12 @@ if test "$HAVE_LIBOIL" = "no"; then
   AC_MSG_ERROR([cannot find liboil-0.3, which is required for build])
 fi
 
-PKG_CHECK_MODULES(CAIRO, cairo >= 1.2.0, HAVE_CAIRO=yes, HAVE_CAIRO=no)
+CAIRO_REQUIRES=1.2
+PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_REQUIRES, HAVE_CAIRO=yes, HAVE_CAIRO=no)
 AC_SUBST(CAIRO_LIBS)
 AC_SUBST(CAIRO_CFLAGS)
 if test "$HAVE_CAIRO" = "no"; then
-  AC_MSG_ERROR([cannot find cairo, which is required for build])
+  AC_MSG_ERROR([cannot find cairo >= $CAIRO_REQUIRES, which is required for build])
 fi
 
 AC_ARG_ENABLE(mad,


More information about the Swfdec mailing list