]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Add conditional dependency for libkeyutils
authorMax Fritz <antischmock@googlemail.com>
Mon, 22 May 2023 00:12:02 +0000 (02:12 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 5 Jun 2023 05:27:23 +0000 (07:27 +0200)
This modification enables better control over the inclusion of libkeyutils
based on the configuration, enhancing the flexibility of the build system.

Signed-off-by: Max Fritz <antischmock@googlemail.com>
Message-Id: <168471463402.18155.3575359027429939965-1@git.sr.ht>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: Remove the "kwargs: static_kwargs" part - it's not necessary anymore]
Signed-off-by: Thomas Huth <thuth@redhat.com>
meson.build

index a61d3e9b06a836035b257206ac654cdbda79dc9a..576bc2fdbdbbcc789a5218905cd5c850c7c74677 100644 (file)
@@ -1781,8 +1781,10 @@ if gnutls.found()
   tasn1 = dependency('libtasn1',
                      method: 'pkg-config')
 endif
-keyutils = dependency('libkeyutils', required: false,
-                      method: 'pkg-config')
+keyutils = not_found
+if get_option('keyring').enabled()
+  keyutils = dependency('libkeyutils', required: false, method: 'pkg-config')
+endif
 
 has_gettid = cc.has_function('gettid')