summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-20 12:44:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-09-20 12:44:15 +0100
commit8a74fbc8337f150ccf589c3da265792f6f767bd3 (patch)
treebf4de106dd4027ea98ead8c9302c264ce2533eda
parentf285d3e8c40efa2dc60fe121e721cf6884a34cf5 (diff)
configure.ac: if g-i is older than 0.9.6, disallow Vala bindings
libfolks is the only major consumer of our Vala bindings for this release cycle, and it needs g-i 0.9.6. Since most of the g-i usage is during our build, I think we're better off having it fail early, rather than producing Vala bindings that turn out not to work.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9cfec11ec..c04b04abb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,6 +220,10 @@ if test x$enable_vala_bindings = xyes; then
AC_MSG_ERROR([GObject-Introspection must be enabled for Vala bindings])
fi
+ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= 0.9.6],
+ [],
+ [AC_MSG_ERROR([gobject-introspection 0.9.6 required for Vala bindings])])
+
m4_ifdef([AM_PROG_VALAC], [AM_PROG_VALAC(0.9.3)],
[AC_MSG_ERROR([Automake >= 1.11 required for Vala bindings])])
have_vala=yes