aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2021-11-02 11:58:22 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-11-02 15:57:28 +0100
commitab486f165b882aa5b02d0b48d6fa242a2d3c10da (patch)
treeadaafab733d0a29f0b43813450e86212904f470c /meson.build
parent6638cae5f65c5f6fb312ef6f1635b29d2fd056aa (diff)
downloadqemu-ab486f165b882aa5b02d0b48d6fa242a2d3c10da.zip
qemu-ab486f165b882aa5b02d0b48d6fa242a2d3c10da.tar.gz
qemu-ab486f165b882aa5b02d0b48d6fa242a2d3c10da.tar.bz2
meson.build: Allow to disable OSS again
If sys/soundcard.h is available, it is currently not possible to disable OSS with the --disable-oss or --without-default-features configure switches. Improve the check in meson.build to fix this. Fixes: 87430d5b13 ("configure, meson: move audio driver detection to Meson") Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20211102105822.773131-1-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 85f1e43..0ab9c43 100644
--- a/meson.build
+++ b/meson.build
@@ -911,7 +911,7 @@ if liblzfse.found() and not cc.links('''
endif
oss = not_found
-if not get_option('oss').auto() or have_system
+if have_system and not get_option('oss').disabled()
if not cc.has_header('sys/soundcard.h')
# not found
elif targetos == 'netbsd'