configure: Allow vnc to get disabled with --without-default-features
authorThomas Huth <thuth@redhat.com>
Tue, 13 Jul 2021 09:31:53 +0000 (11:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Jul 2021 12:44:51 +0000 (14:44 +0200)
There's no reason why we should keep VNC enabled when the user
specified --without-default-features.

Reported-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210713093155.677589-3-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
meson.build

index 19c4bc1192c1c4a1fb387834d792d02512549415..468aac58e2ebd3f03197cd3af0b8514275b4d95e 100755 (executable)
--- a/configure
+++ b/configure
@@ -304,7 +304,7 @@ virtiofsd="auto"
 virtfs="auto"
 libudev="auto"
 mpath="auto"
-vnc="enabled"
+vnc="auto"
 sparse="auto"
 vde="$default_feature"
 vnc_sasl="auto"
index eb85fe8e441df9d196c022176300ed11fa4cfdb2..cb3856fc35d8097211007d51fa6d41d4210a4b21 100644 (file)
@@ -930,7 +930,7 @@ vnc = not_found
 png = not_found
 jpeg = not_found
 sasl = not_found
-if get_option('vnc').enabled()
+if not get_option('vnc').disabled()
   vnc = declare_dependency() # dummy dependency
   png = dependency('libpng', required: get_option('vnc_png'),
                    method: 'pkg-config', kwargs: static_kwargs)