[gnome-builder] sysprof: specify have_sysprof_ui during PKG_CHECK_MODULES
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] sysprof: specify have_sysprof_ui during PKG_CHECK_MODULES
- Date: Tue, 23 Aug 2016 02:10:29 +0000 (UTC)
commit b4fdaf27873c84290ff00ba807669c4afa119c49
Author: Christian Hergert <chergert redhat com>
Date: Mon Aug 22 19:10:14 2016 -0700
sysprof: specify have_sysprof_ui during PKG_CHECK_MODULES
plugins/sysprof/configure.ac | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/plugins/sysprof/configure.ac b/plugins/sysprof/configure.ac
index 657d385..0e250b8 100644
--- a/plugins/sysprof/configure.ac
+++ b/plugins/sysprof/configure.ac
@@ -1,7 +1,10 @@
m4_define(sysprof_required_version, [3.20.1])
-PKG_CHECK_MODULES(SYSPROF, [sysprof-2 >= sysprof_required_version
- sysprof-ui-2 >= sysprof_required_version])
+PKG_CHECK_MODULES(SYSPROF,
+ [sysprof-2 >= sysprof_required_version
+ sysprof-ui-2 >= sysprof_required_version],
+ [have_sysprof_ui=yes],
+ [have_sysprof_ui=no])
# --enable-sysprof-plugin=yes/no
AC_ARG_ENABLE([sysprof-plugin],
@@ -14,6 +17,10 @@ AS_IF([test x$enable_sysprof_plugin = xyes && test x$have_sysprof_ui = xno],[
AC_MSG_ERROR([Failed to locate sysprof-ui dependencies. Try installing Sysprof with GTK support.])
])
+AS_IF([test x$have_sysprof_ui = xno],[
+ enable_sysprof_plugin=no
+])
+
# for if ENABLE_SYSPROF_PLUGIN in Makefile.am
AM_CONDITIONAL(ENABLE_SYSPROF_PLUGIN, test x$enable_sysprof_plugin != xno)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]