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)
committerLuca BRUNO <luca.bruno@coreos.com>
Tue, 29 Nov 2022 08:51:52 +0000 (08:51 +0000)
commitdd98a2a4cfea85e8a666f3a2b7e23240fe0a59d6
tree81bd9fe480006d567fbcbf7481dbe8fc2f6d3843
parent7b4f1b7699eb177e0acd06bcc1dafeb006f84cb2
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.
configure.ac