[polari/wip/fmuellner/tracker: 2/9] build: Check for runtime dependencies
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/tracker: 2/9] build: Check for runtime dependencies
- Date: Thu, 28 Jul 2016 12:50:11 +0000 (UTC)
commit 6de3ffd7d266f69846c8fd96df71ef24bd361928
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 27 23:47:19 2016 +0200
build: Check for runtime dependencies
So far we only include checks for dependencies needed at compile-time
in configure, which is inconvenient for users who try to build polari
themselves. autoconf-archive now ships an AX_CHECK_GIRS_GJS macro we can
use to check for girs we depend on at runtime without cluttering compiler
and linker flags, which was the main reason for not checking for runtime
dependencies.
configure.ac | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 49ca983..e11352f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,19 @@ PKG_CHECK_MODULES(POLARI,
AC_CHECK_FUNCS([strcasestr])
AX_PROG_GJS
+AX_CHECK_GIRS_GJS([Gdk], [3.0])
+AX_CHECK_GIRS_GJS([GdkPixbuf], [2.0])
+AX_CHECK_GIR_SYMBOLS_GJS([Gio], [2.0], [Application.send_notification])
+AX_CHECK_GIRS_GJS([GLib], [2.0])
+AX_CHECK_GIRS_GJS([GObject], [2.0])
+AX_CHECK_GIR_SYMBOLS_GJS([Gtk], [3.0], [ScrolledWindow.set_max_content_height])
+AX_CHECK_GIRS_GJS([Pango], [1.0])
+AX_CHECK_GIRS_GJS([PangoCairo], [1.0])
+AX_CHECK_GIRS_GJS([Secret], [1])
+AX_CHECK_GIRS_GJS([Soup], [2.4])
+AX_CHECK_GIRS_GJS([TelepathyGLib], [0.12])
+AX_CHECK_GIRS_GJS([TelepathyLogger], [0.2])
+
AC_PROG_LN_S
GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]