qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] meson.build: Allow to disable OSS again


From: Thomas Huth
Subject: Re: [PATCH] meson.build: Allow to disable OSS again
Date: Tue, 2 Nov 2021 08:45:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

On 29/10/2021 11.32, Philippe Mathieu-Daudé wrote:
On 10/29/21 09:13, Thomas Huth wrote:
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>
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

  oss = not_found
-if not get_option('oss').auto() or have_system
+if get_option('oss').enabled() or (get_option('oss').auto() and have_system)

Shouldn't this be 'if have_system and (enabled or auto)' ?

It depends whether we want to allow "--disable-system --enable-oss" or not, I guess ;-)

Honestly, I don't have a preference. But maybe we could also simply use 'if have_system and not disabled' instead, which would then be the shortest solution?

 Thomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]