[ostree] build: Use both pkg-config and AM_PATH_GPGME
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] build: Use both pkg-config and AM_PATH_GPGME
- Date: Wed, 11 Mar 2015 20:25:06 +0000 (UTC)
commit c732178a4376ce6baf7b5064fb86e0a6c2bf53c1
Author: Colin Walters <walters verbum org>
Date: Wed Mar 11 15:58:42 2015 -0400
build: Use both pkg-config and AM_PATH_GPGME
Apparently OpenEmbeddeded only supports pkg-config (and includes
gpgme.pc in its content), and Fedora only has the latter. So do both.
configure.ac | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5cb2bd0..37742f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -100,14 +100,14 @@ AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
LIBGPGME_DEPENDENCY="1.1.8"
-m4_ifdef([AM_PATH_GPGME], [
- AM_PATH_GPGME($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
- ],[ have_gpgme=no ])
+PKG_CHECK_MODULES(OT_DEP_GPGME, gpgme >= $LIBGPGME_DEPENDENCY, have_gpgme=yes, [
+ m4_ifdef([AM_PATH_GPGME], [
+ AM_PATH_GPGME($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
+ ],[ have_gpgme=no ])
+])
AS_IF([ test x$have_gpgme = xno ], [
- AC_MSG_ERROR([
-
- Need GPGME version $LIBGPGME_DEPENDENCY or later
-])])
+ AC_MSG_ERROR([Need GPGME version $LIBGPGME_DEPENDENCY or later])
+])
OSTREE_FEATURES="$OSTREE_FEATURES +gpgme"
LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]