]> err.no Git - mapper/commitdiff
Add --enable-cairo and check for cairo.
authorKaj-Michael Lang <milang@onion.tal.org>
Tue, 26 Feb 2008 14:35:20 +0000 (16:35 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Tue, 26 Feb 2008 14:35:20 +0000 (16:35 +0200)
we might draw some stuff using cairo in there near future.

configure.ac

index 25199560fa7d0863aae03282235e7220f3a551b4..0d5ca80a6d1c7d6c29a4a7f68bd23464eea3fb47 100644 (file)
@@ -102,6 +102,17 @@ AC_ARG_ENABLE([gypsy],AS_HELP_STRING([--enable-gypsy],[Use gypsy]),
 AC_ARG_ENABLE([geoclue],AS_HELP_STRING([--enable-geoclue],[Use geoclue]),
               [enable_geoclue=$enableval], [enable_geoclue=no])
 
+AC_ARG_ENABLE([cairo],AS_HELP_STRING([--enable-cairo],[Use cairo]),
+              [enable_cairo=$enableval], [enable_cairo=no])
+
+if test "x$enable_cairo" = "xyes" ; then
+ PKG_CHECK_MODULES(CAIRO, cairo)
+ AC_SUBST(CAIRO_LIBS)
+ AC_SUBST(CAIRO_CFLAGS)
+ AC_DEFINE([WITH_CAIRO], 1, [Draw using cairo])
+else
+fi
+
 if test "x$enable_770" = "xno" ; then
   WITH_DEVICE_770=no
 else
@@ -445,3 +456,7 @@ fi
 if test x$enable_gst = xyes; then
 AC_MSG_NOTICE([** Gstreamer support enabled])
 fi
+
+if test x$enable_cairo = xyes; then
+AC_MSG_NOTICE([** Using cairo for graphics])
+fi