]> www.infradead.org Git - users/dwmw2/qemu.git/commit
meson.build: fix libgcrypt detection on system without libgcrypt-config
authorYao Zi <ziyao@disroot.org>
Sat, 6 Jul 2024 20:12:26 +0000 (20:12 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Jul 2024 09:39:10 +0000 (10:39 +0100)
commit581b4cd5f16d618787bd1e292b851c62c2626da0
tree11cf98317af36e1bfb8354803a12778266ff61e1
parent9263c4173ff5941a8ad1865254131da68d0d7084
meson.build: fix libgcrypt detection on system without libgcrypt-config

libgcrypt starts providing correct pkg-config configuration since 1.9,
in parallel with libgcrypt-config. Since 1.11 it may also stop
installing libgcrypt-config in some scenarios. Use the auto method for
detection of libgcrypt, in which meson will try both pkg-config and
libgcrypt-config.

Auto method for libgcrypt is supported by meson since 0.49.0, which is
higher than the version qemu requires.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build