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.
This commit is contained in:
parent
187e8d632e
commit
c732178a43
14
configure.ac
14
configure.ac
|
|
@ -100,14 +100,14 @@ AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
|
||||||
|
|
||||||
LIBGPGME_DEPENDENCY="1.1.8"
|
LIBGPGME_DEPENDENCY="1.1.8"
|
||||||
|
|
||||||
m4_ifdef([AM_PATH_GPGME], [
|
PKG_CHECK_MODULES(OT_DEP_GPGME, gpgme >= $LIBGPGME_DEPENDENCY, have_gpgme=yes, [
|
||||||
AM_PATH_GPGME($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
|
m4_ifdef([AM_PATH_GPGME], [
|
||||||
],[ have_gpgme=no ])
|
AM_PATH_GPGME($LIBGPGME_DEPENDENCY, have_gpgme=yes, have_gpgme=no)
|
||||||
|
],[ have_gpgme=no ])
|
||||||
|
])
|
||||||
AS_IF([ test x$have_gpgme = xno ], [
|
AS_IF([ test x$have_gpgme = xno ], [
|
||||||
AC_MSG_ERROR([
|
AC_MSG_ERROR([Need GPGME version $LIBGPGME_DEPENDENCY or later])
|
||||||
|
])
|
||||||
Need GPGME version $LIBGPGME_DEPENDENCY or later
|
|
||||||
])])
|
|
||||||
OSTREE_FEATURES="$OSTREE_FEATURES +gpgme"
|
OSTREE_FEATURES="$OSTREE_FEATURES +gpgme"
|
||||||
|
|
||||||
LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0"
|
LIBARCHIVE_DEPENDENCY="libarchive >= 2.8.0"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue