configure: Only check for audio drivers if system-mode is selected
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 22 Jan 2021 20:44:30 +0000 (21:44 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 26 Jan 2021 17:38:37 +0000 (18:38 +0100)
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210122204441.2145197-2-philmd@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure

index dcc5ea7d630982a87a6657580fd80bcaf074c858..87de49e2c217e13f1ce294d55557e222668f29f6 100755 (executable)
--- a/configure
+++ b/configure
@@ -2319,6 +2319,12 @@ if test -z "$want_tools"; then
     fi
 fi
 
+##########################################
+# Disable features only meaningful for system-mode emulation
+if test "$softmmu" = "no"; then
+    audio_drv_list=""
+fi
+
 ##########################################
 # Some versions of Mac OS X incorrectly define SIZE_MAX
 cat > $TMPC << EOF