configure: use pkg-config with newer gpgme and gpg-error
authorLuca BRUNO <luca.bruno@coreos.com>
Thu, 24 Nov 2022 16:39:35 +0000 (16:39 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 6 Dec 2022 11:11:05 +0000 (11:11 +0000)
commit36f70ed953a88e409e50d7a5789a57b590a037eb
tree7036e0925122b29d9742b00b4c301dc7624d3ac0
parentba50228619628824050dfd442fa6e4eb5e82c2ae
configure: use pkg-config with newer gpgme and gpg-error

This tweaks autoconf logic in order to use pkg-config for gpgme
and gpg-error when available.
Recent versions of gpgme directly provide threaded support, and
gpg-error started shipping a .pc file. Thus on recent distributions
it is possible to directly use pkg-config for both. On older
environments, the legacy logic is kept in place.

Forwarded: https://github.com/ostreedev/ostree/pull/2789

Gbp-Pq: Name configure-use-pkg-config-with-newer-gpgme-and-gpg-error.patch
configure.ac
src/libostree/ostree-repo.c