summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-06-04 10:39:32 +0200
committerAlexander Larsson <alexl@redhat.com>2013-07-03 14:34:13 +0200
commit1b1f2b4b52f9791a70533f9813b42b5aa3ff1ce2 (patch)
tree6f313ec5df128d9c4a2a901f85b88db44cce691b
parentc9b52d8820792abdad5696d7a94235032bcb0108 (diff)
downloadgtk+-1b1f2b4b52f9791a70533f9813b42b5aa3ff1ce2.tar.gz
configure: Add buildtime check for cairo_surface_set_device_scale
We will need this for the window scale support, but its not yet in a stable cairo release (or even on a master yet), so we make this optional.
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1bdbf1b702..6d825ba31e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1263,6 +1263,17 @@ else
LIBS="$gtk_save_LIBS"
fi
+# Check for cairo_set_device_scale, as we don't want to depend hard on
+# this until there is a stable release with it
+CAIRO_CFLAGS=`$PKG_CONFIG --cflags cairo`
+CAIRO_LIBS=`$PKG_CONFIG --libs cairo`
+CFLAGS="$CFLAGS $CAIRO_CFLAGS"
+gtk_save_LIBS="$LIBS"
+LIBS="$CAIRO_LIBS $LIBS"
+AC_CHECK_FUNCS(cairo_surface_set_device_scale)
+LIBS="$gtk_save_LIBS"
+
+
CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags"