aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2013-07-12 19:48:47 +0000
committerTarmac <Unknown>2013-07-12 19:48:47 +0000
commitfea50330064d5aed0a5cceef3bd5ce35258324ff (patch)
treeb9bd253ffa8cac15165fd42713bd91cd0f0b2a03 /configure.ac
parentfbb47a814818ffc59b53e238a5e9f0b5e90d65b4 (diff)
parent499a978bdb6920e1c59ae0d679b9049b80c64e3b (diff)
downloadayatana-indicator-messages-fea50330064d5aed0a5cceef3bd5ce35258324ff.tar.gz
ayatana-indicator-messages-fea50330064d5aed0a5cceef3bd5ce35258324ff.tar.bz2
ayatana-indicator-messages-fea50330064d5aed0a5cceef3bd5ce35258324ff.zip
Generate a vapi, added valac build depends and reordered the build depends to be alphabetical.
Approved by PS Jenkins bot, Charles Kerr.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b020d30..b699b4f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,22 @@ else
fi
AC_SUBST(DBUSSERVICEDIR)
+###########################
+# Vala API Generation
+###########################
+
+AC_ARG_ENABLE([vala],
+ AC_HELP_STRING([--disable-vala], [Disable vala]),
+ [enable_vala=$enableval], [enable_vala=yes])
+
+AS_IF([test "x$enable_vala" != "xno"],[
+ AM_COND_IF([HAVE_INTROSPECTION],,[
+ AC_MSG_ERROR([Vala bindings require introspection support, please --enable-introspection])
+ ])
+AC_PATH_PROG([VALA_API_GEN], [vapigen])
+])
+AM_CONDITIONAL([HAVE_VALA], [test -n "$VALA_API_GEN"])
+
##############################
# Custom Junk
##############################
@@ -197,5 +213,6 @@ Messaging Indicator Configuration:
gtest: $enable_tests
gcov: $use_gcov
introspecion: $enable_introspection
+ Vala bindings: $enable_vala
documentation: $enable_gtk_doc
])