Check for cairo_surface_set_device_scale()

Like gtk+, we don't want to bump the dependency of Clutter for that
function alone.

https://bugzilla.gnome.org/show_bug.cgi?id=705915
This commit is contained in:
Emmanuele Bassi 2014-01-16 12:08:09 +00:00
parent 69eb2e5f3b
commit b7b09bd0ce

View File

@ -139,7 +139,7 @@ m4_define([glib_req_version], [2.37.3])
m4_define([cogl_req_version], [1.17.1]) m4_define([cogl_req_version], [1.17.1])
m4_define([json_glib_req_version], [0.12.0]) m4_define([json_glib_req_version], [0.12.0])
m4_define([atk_req_version], [2.5.3]) m4_define([atk_req_version], [2.5.3])
m4_define([cairo_req_version], [1.10]) m4_define([cairo_req_version], [1.12.0])
m4_define([pango_req_version], [1.30]) m4_define([pango_req_version], [1.30])
m4_define([gi_req_version], [0.9.5]) m4_define([gi_req_version], [0.9.5])
m4_define([uprof_req_version], [0.3]) m4_define([uprof_req_version], [0.3])
@ -793,6 +793,18 @@ AS_CASE([$enable_pixbuf],
AM_CONDITIONAL([PIXBUF_TESTS], [test "x$pixbuf_tests" = "xyes"]) AM_CONDITIONAL([PIXBUF_TESTS], [test "x$pixbuf_tests" = "xyes"])
# Check for cairo_set_device_scale, as we don't want to depend hard on
# this until there is a stable release with it
saved_CFLAGS="$CFLAGS"
saved_LIBS="$LIBS"
CAIRO_CFLAGS=`$PKG_CONFIG --cflags cairo`
CAIRO_LIBS=`$PKG_CONFIG --libs cairo`
CFLAGS="$CFLAGS $CAIRO_CFLAGS"
LIBS="$CAIRO_LIBS $LIBS"
AC_CHECK_FUNCS(cairo_surface_set_device_scale)
LIBS="$saved_LIBS"
CFLAGS="$saved_CFLAGS"
dnl === Enable debug level ==================================================== dnl === Enable debug level ====================================================
m4_define([debug_default], [m4_if(m4_eval(clutter_minor_version % 2), [1], [yes], [minimum])]) m4_define([debug_default], [m4_if(m4_eval(clutter_minor_version % 2), [1], [yes], [minimum])])