1# This file is generated by meson-buildoptions.py, do not edit!
2meson_options_help() {
3  printf "%s\n" '  --audio-drv-list=CHOICES Set audio driver list [default] (choices: alsa/co'
4  printf "%s\n" '                           reaudio/default/dsound/jack/oss/pa/pipewire/sdl/s'
5  printf "%s\n" '                           ndio)'
6  printf "%s\n" '  --bindir=VALUE           Executable directory [bin]'
7  printf "%s\n" '  --block-drv-ro-whitelist=VALUE'
8  printf "%s\n" '                           set block driver read-only whitelist (by default'
9  printf "%s\n" '                           affects only QEMU, not tools like qemu-img)'
10  printf "%s\n" '  --block-drv-rw-whitelist=VALUE'
11  printf "%s\n" '                           set block driver read-write whitelist (by default'
12  printf "%s\n" '                           affects only QEMU, not tools like qemu-img)'
13  printf "%s\n" '  --datadir=VALUE          Data file directory [share]'
14  printf "%s\n" '  --disable-coroutine-pool coroutine freelist (better performance)'
15  printf "%s\n" '  --disable-debug-info     Enable debug symbols and other information'
16  printf "%s\n" '  --disable-hexagon-idef-parser'
17  printf "%s\n" '                           use idef-parser to automatically generate TCG'
18  printf "%s\n" '                           code for the Hexagon frontend'
19  printf "%s\n" '  --disable-install-blobs  install provided firmware blobs'
20  printf "%s\n" '  --disable-qom-cast-debug cast debugging support'
21  printf "%s\n" '  --disable-relocatable    toggle relocatable install'
22  printf "%s\n" '  --docdir=VALUE           Base directory for documentation installation'
23  printf "%s\n" '                           (can be empty) [share/doc]'
24  printf "%s\n" '  --enable-asan            enable address sanitizer'
25  printf "%s\n" '  --enable-block-drv-whitelist-in-tools'
26  printf "%s\n" '                           use block whitelist also in tools instead of only'
27  printf "%s\n" '                           QEMU'
28  printf "%s\n" '  --enable-cfi             Control-Flow Integrity (CFI)'
29  printf "%s\n" '  --enable-cfi-debug       Verbose errors in case of CFI violation'
30  printf "%s\n" '  --enable-debug-graph-lock'
31  printf "%s\n" '                           graph lock debugging support'
32  printf "%s\n" '  --enable-debug-mutex     mutex debugging support'
33  printf "%s\n" '  --enable-debug-remap     syscall buffer debugging support'
34  printf "%s\n" '  --enable-debug-stack-usage'
35  printf "%s\n" '                           measure coroutine stack usage'
36  printf "%s\n" '  --enable-debug-tcg       TCG debugging'
37  printf "%s\n" '  --enable-fdt[=CHOICE]    Whether and how to find the libfdt library'
38  printf "%s\n" '                           (choices: auto/disabled/enabled/internal/system)'
39  printf "%s\n" '  --enable-fuzzing         build fuzzing targets'
40  printf "%s\n" '  --enable-gcov            Enable coverage tracking.'
41  printf "%s\n" '  --enable-lto             Use link time optimization'
42  printf "%s\n" '  --enable-malloc=CHOICE   choose memory allocator to use [system] (choices:'
43  printf "%s\n" '                           jemalloc/system/tcmalloc)'
44  printf "%s\n" '  --enable-module-upgrades try to load modules from alternate paths for'
45  printf "%s\n" '                           upgrades'
46  printf "%s\n" '  --enable-rng-none        dummy RNG, avoid using /dev/(u)random and'
47  printf "%s\n" '                           getrandom()'
48  printf "%s\n" '  --enable-safe-stack      SafeStack Stack Smash Protection (requires'
49  printf "%s\n" '                           clang/llvm and coroutine backend ucontext)'
50  printf "%s\n" '  --enable-strip           Strip targets on install'
51  printf "%s\n" '  --enable-tcg-interpreter TCG with bytecode interpreter (slow)'
52  printf "%s\n" '  --enable-trace-backends=CHOICES'
53  printf "%s\n" '                           Set available tracing backends [log] (choices:'
54  printf "%s\n" '                           dtrace/ftrace/log/nop/simple/syslog/ust)'
55  printf "%s\n" '  --enable-tsan            enable thread sanitizer'
56  printf "%s\n" '  --enable-ubsan           enable undefined behaviour sanitizer'
57  printf "%s\n" '  --firmwarepath=VALUES    search PATH for firmware files [share/qemu-'
58  printf "%s\n" '                           firmware]'
59  printf "%s\n" '  --iasl=VALUE             Path to ACPI disassembler'
60  printf "%s\n" '  --includedir=VALUE       Header file directory [include]'
61  printf "%s\n" '  --interp-prefix=VALUE    where to find shared libraries etc., use %M for'
62  printf "%s\n" '                           cpu name [/usr/gnemul/qemu-%M]'
63  printf "%s\n" '  --libdir=VALUE           Library directory [system default]'
64  printf "%s\n" '  --libexecdir=VALUE       Library executable directory [libexec]'
65  printf "%s\n" '  --localedir=VALUE        Locale data directory [share/locale]'
66  printf "%s\n" '  --localstatedir=VALUE    Localstate data directory [/var/local]'
67  printf "%s\n" '  --mandir=VALUE           Manual page directory [share/man]'
68  printf "%s\n" '  --prefix=VALUE           Installation prefix [/usr/local]'
69  printf "%s\n" '  --qemu-ga-distro=VALUE   second path element in qemu-ga registry entries'
70  printf "%s\n" '                           [Linux]'
71  printf "%s\n" '  --qemu-ga-manufacturer=VALUE'
72  printf "%s\n" '                           "manufacturer" name for qemu-ga registry entries'
73  printf "%s\n" '                           [QEMU]'
74  printf "%s\n" '  --qemu-ga-version=VALUE  version number for qemu-ga installer'
75  printf "%s\n" '  --smbd=VALUE             Path to smbd for slirp networking'
76  printf "%s\n" '  --sysconfdir=VALUE       Sysconf data directory [etc]'
77  printf "%s\n" '  --tls-priority=VALUE     Default TLS protocol/cipher priority string'
78  printf "%s\n" '                           [NORMAL]'
79  printf "%s\n" '  --with-coroutine=CHOICE  coroutine backend to use (choices:'
80  printf "%s\n" '                           auto/sigaltstack/ucontext/windows)'
81  printf "%s\n" '  --with-pkgversion=VALUE  use specified string as sub-version of the'
82  printf "%s\n" '                           package'
83  printf "%s\n" '  --with-suffix=VALUE      Suffix for QEMU data/modules/config directories'
84  printf "%s\n" '                           (can be empty) [qemu]'
85  printf "%s\n" '  --with-trace-file=VALUE  Trace file prefix for simple backend [trace]'
86  printf "%s\n" '  --x86-version=CHOICE     tweak required x86_64 architecture version beyond'
87  printf "%s\n" '                           compiler default [1] (choices: 0/1/2/3/4)'
88  printf "%s\n" ''
89  printf "%s\n" 'Optional features, enabled with --enable-FEATURE and'
90  printf "%s\n" 'disabled with --disable-FEATURE, default is enabled if available'
91  printf "%s\n" '(unless built with --without-default-features):'
92  printf "%s\n" ''
93  printf "%s\n" '  af-xdp          AF_XDP network backend support'
94  printf "%s\n" '  alsa            ALSA sound support'
95  printf "%s\n" '  attr            attr/xattr support'
96  printf "%s\n" '  auth-pam        PAM access control'
97  printf "%s\n" '  avx2            AVX2 optimizations'
98  printf "%s\n" '  avx512bw        AVX512BW optimizations'
99  printf "%s\n" '  blkio           libblkio block device driver'
100  printf "%s\n" '  bochs           bochs image format support'
101  printf "%s\n" '  bpf             eBPF support'
102  printf "%s\n" '  brlapi          brlapi character device driver'
103  printf "%s\n" '  bzip2           bzip2 support for DMG images'
104  printf "%s\n" '  canokey         CanoKey support'
105  printf "%s\n" '  cap-ng          cap_ng support'
106  printf "%s\n" '  capstone        Whether and how to find the capstone library'
107  printf "%s\n" '  cloop           cloop image format support'
108  printf "%s\n" '  cocoa           Cocoa user interface (macOS only)'
109  printf "%s\n" '  colo-proxy      colo-proxy support'
110  printf "%s\n" '  coreaudio       CoreAudio sound support'
111  printf "%s\n" '  crypto-afalg    Linux AF_ALG crypto backend driver'
112  printf "%s\n" '  curl            CURL block device driver'
113  printf "%s\n" '  curses          curses UI'
114  printf "%s\n" '  dbus-display    -display dbus support'
115  printf "%s\n" '  dmg             dmg image format support'
116  printf "%s\n" '  docs            Documentations build support'
117  printf "%s\n" '  dsound          DirectSound sound support'
118  printf "%s\n" '  fuse            FUSE block device export'
119  printf "%s\n" '  fuse-lseek      SEEK_HOLE/SEEK_DATA support for FUSE exports'
120  printf "%s\n" '  gcrypt          libgcrypt cryptography support'
121  printf "%s\n" '  gettext         Localization of the GTK+ user interface'
122  printf "%s\n" '  gio             use libgio for D-Bus support'
123  printf "%s\n" '  glusterfs       Glusterfs block device driver'
124  printf "%s\n" '  gnutls          GNUTLS cryptography support'
125  printf "%s\n" '  gtk             GTK+ user interface'
126  printf "%s\n" '  gtk-clipboard   clipboard support for the gtk UI (EXPERIMENTAL, MAY HANG)'
127  printf "%s\n" '  guest-agent     Build QEMU Guest Agent'
128  printf "%s\n" '  guest-agent-msi Build MSI package for the QEMU Guest Agent'
129  printf "%s\n" '  hv-balloon      hv-balloon driver (requires Glib 2.68+ GTree API)'
130  printf "%s\n" '  hvf             HVF acceleration support'
131  printf "%s\n" '  iconv           Font glyph conversion support'
132  printf "%s\n" '  jack            JACK sound support'
133  printf "%s\n" '  keyring         Linux keyring support'
134  printf "%s\n" '  kvm             KVM acceleration support'
135  printf "%s\n" '  l2tpv3          l2tpv3 network backend support'
136  printf "%s\n" '  libdaxctl       libdaxctl support'
137  printf "%s\n" '  libdw           debuginfo support'
138  printf "%s\n" '  libiscsi        libiscsi userspace initiator'
139  printf "%s\n" '  libkeyutils     Linux keyutils support'
140  printf "%s\n" '  libnfs          libnfs block device driver'
141  printf "%s\n" '  libpmem         libpmem support'
142  printf "%s\n" '  libssh          ssh block device support'
143  printf "%s\n" '  libudev         Use libudev to enumerate host devices'
144  printf "%s\n" '  libusb          libusb support for USB passthrough'
145  printf "%s\n" '  libvduse        build VDUSE Library'
146  printf "%s\n" '  linux-aio       Linux AIO support'
147  printf "%s\n" '  linux-io-uring  Linux io_uring support'
148  printf "%s\n" '  lzfse           lzfse support for DMG images'
149  printf "%s\n" '  lzo             lzo compression support'
150  printf "%s\n" '  malloc-trim     enable libc malloc_trim() for memory optimization'
151  printf "%s\n" '  membarrier      membarrier system call (for Linux 4.14+ or Windows'
152  printf "%s\n" '  modules         modules support (non Windows)'
153  printf "%s\n" '  mpath           Multipath persistent reservation passthrough'
154  printf "%s\n" '  multiprocess    Out of process device emulation support'
155  printf "%s\n" '  netmap          netmap network backend support'
156  printf "%s\n" '  nettle          nettle cryptography support'
157  printf "%s\n" '  numa            libnuma support'
158  printf "%s\n" '  nvmm            NVMM acceleration support'
159  printf "%s\n" '  opengl          OpenGL support'
160  printf "%s\n" '  oss             OSS sound support'
161  printf "%s\n" '  pa              PulseAudio sound support'
162  printf "%s\n" '  parallels       parallels image format support'
163  printf "%s\n" '  pipewire        PipeWire sound support'
164  printf "%s\n" '  pixman          pixman support'
165  printf "%s\n" '  plugins         TCG plugins via shared library loading'
166  printf "%s\n" '  png             PNG support with libpng'
167  printf "%s\n" '  qatzip          QATzip compression support'
168  printf "%s\n" '  qcow1           qcow1 image format support'
169  printf "%s\n" '  qed             qed image format support'
170  printf "%s\n" '  qga-vss         build QGA VSS support (broken with MinGW)'
171  printf "%s\n" '  qpl             Query Processing Library support'
172  printf "%s\n" '  rbd             Ceph block device driver'
173  printf "%s\n" '  rdma            Enable RDMA-based migration'
174  printf "%s\n" '  replication     replication support'
175  printf "%s\n" '  rutabaga-gfx    rutabaga_gfx support'
176  printf "%s\n" '  sdl             SDL user interface'
177  printf "%s\n" '  sdl-image       SDL Image support for icons'
178  printf "%s\n" '  seccomp         seccomp support'
179  printf "%s\n" '  selinux         SELinux support in qemu-nbd'
180  printf "%s\n" '  slirp           libslirp user mode network backend support'
181  printf "%s\n" '  slirp-smbd      use smbd (at path --smbd=*) in slirp networking'
182  printf "%s\n" '  smartcard       CA smartcard emulation support'
183  printf "%s\n" '  snappy          snappy compression support'
184  printf "%s\n" '  sndio           sndio sound support'
185  printf "%s\n" '  sparse          sparse checker'
186  printf "%s\n" '  spice           Spice server support'
187  printf "%s\n" '  spice-protocol  Spice protocol support'
188  printf "%s\n" '  stack-protector compiler-provided stack protection'
189  printf "%s\n" '  tcg             TCG support'
190  printf "%s\n" '  tools           build support utilities that come with QEMU'
191  printf "%s\n" '  tpm             TPM support'
192  printf "%s\n" '  u2f             U2F emulation support'
193  printf "%s\n" '  uadk            UADK Library support'
194  printf "%s\n" '  usb-redir       libusbredir support'
195  printf "%s\n" '  vde             vde network backend support'
196  printf "%s\n" '  vdi             vdi image format support'
197  printf "%s\n" '  vduse-blk-export'
198  printf "%s\n" '                  VDUSE block export support'
199  printf "%s\n" '  vfio-user-server'
200  printf "%s\n" '                  vfio-user server support'
201  printf "%s\n" '  vhdx            vhdx image format support'
202  printf "%s\n" '  vhost-crypto    vhost-user crypto backend support'
203  printf "%s\n" '  vhost-kernel    vhost kernel backend support'
204  printf "%s\n" '  vhost-net       vhost-net kernel acceleration support'
205  printf "%s\n" '  vhost-user      vhost-user backend support'
206  printf "%s\n" '  vhost-user-blk-server'
207  printf "%s\n" '                  build vhost-user-blk server'
208  printf "%s\n" '  vhost-vdpa      vhost-vdpa kernel backend support'
209  printf "%s\n" '  virglrenderer   virgl rendering support'
210  printf "%s\n" '  virtfs          virtio-9p support'
211  printf "%s\n" '  vmdk            vmdk image format support'
212  printf "%s\n" '  vmnet           vmnet.framework network backend support'
213  printf "%s\n" '  vnc             VNC server'
214  printf "%s\n" '  vnc-jpeg        JPEG lossy compression for VNC server'
215  printf "%s\n" '  vnc-sasl        SASL authentication for VNC server'
216  printf "%s\n" '  vpc             vpc image format support'
217  printf "%s\n" '  vte             vte support for the gtk UI'
218  printf "%s\n" '  vvfat           vvfat image format support'
219  printf "%s\n" '  werror          Treat warnings as errors'
220  printf "%s\n" '  whpx            WHPX acceleration support'
221  printf "%s\n" '  xen             Xen backend support'
222  printf "%s\n" '  xen-pci-passthrough'
223  printf "%s\n" '                  Xen PCI passthrough support'
224  printf "%s\n" '  xkbcommon       xkbcommon support'
225  printf "%s\n" '  zstd            zstd compression support'
226}
227_meson_option_parse() {
228  case $1 in
229    --enable-af-xdp) printf "%s" -Daf_xdp=enabled ;;
230    --disable-af-xdp) printf "%s" -Daf_xdp=disabled ;;
231    --enable-alsa) printf "%s" -Dalsa=enabled ;;
232    --disable-alsa) printf "%s" -Dalsa=disabled ;;
233    --enable-asan) printf "%s" -Dasan=true ;;
234    --disable-asan) printf "%s" -Dasan=false ;;
235    --enable-attr) printf "%s" -Dattr=enabled ;;
236    --disable-attr) printf "%s" -Dattr=disabled ;;
237    --audio-drv-list=*) quote_sh "-Daudio_drv_list=$2" ;;
238    --enable-auth-pam) printf "%s" -Dauth_pam=enabled ;;
239    --disable-auth-pam) printf "%s" -Dauth_pam=disabled ;;
240    --enable-avx2) printf "%s" -Davx2=enabled ;;
241    --disable-avx2) printf "%s" -Davx2=disabled ;;
242    --enable-avx512bw) printf "%s" -Davx512bw=enabled ;;
243    --disable-avx512bw) printf "%s" -Davx512bw=disabled ;;
244    --enable-gcov) printf "%s" -Db_coverage=true ;;
245    --disable-gcov) printf "%s" -Db_coverage=false ;;
246    --enable-lto) printf "%s" -Db_lto=true ;;
247    --disable-lto) printf "%s" -Db_lto=false ;;
248    --bindir=*) quote_sh "-Dbindir=$2" ;;
249    --enable-blkio) printf "%s" -Dblkio=enabled ;;
250    --disable-blkio) printf "%s" -Dblkio=disabled ;;
251    --block-drv-ro-whitelist=*) quote_sh "-Dblock_drv_ro_whitelist=$2" ;;
252    --block-drv-rw-whitelist=*) quote_sh "-Dblock_drv_rw_whitelist=$2" ;;
253    --enable-block-drv-whitelist-in-tools) printf "%s" -Dblock_drv_whitelist_in_tools=true ;;
254    --disable-block-drv-whitelist-in-tools) printf "%s" -Dblock_drv_whitelist_in_tools=false ;;
255    --enable-bochs) printf "%s" -Dbochs=enabled ;;
256    --disable-bochs) printf "%s" -Dbochs=disabled ;;
257    --enable-bpf) printf "%s" -Dbpf=enabled ;;
258    --disable-bpf) printf "%s" -Dbpf=disabled ;;
259    --enable-brlapi) printf "%s" -Dbrlapi=enabled ;;
260    --disable-brlapi) printf "%s" -Dbrlapi=disabled ;;
261    --enable-bzip2) printf "%s" -Dbzip2=enabled ;;
262    --disable-bzip2) printf "%s" -Dbzip2=disabled ;;
263    --enable-canokey) printf "%s" -Dcanokey=enabled ;;
264    --disable-canokey) printf "%s" -Dcanokey=disabled ;;
265    --enable-cap-ng) printf "%s" -Dcap_ng=enabled ;;
266    --disable-cap-ng) printf "%s" -Dcap_ng=disabled ;;
267    --enable-capstone) printf "%s" -Dcapstone=enabled ;;
268    --disable-capstone) printf "%s" -Dcapstone=disabled ;;
269    --enable-cfi) printf "%s" -Dcfi=true ;;
270    --disable-cfi) printf "%s" -Dcfi=false ;;
271    --enable-cfi-debug) printf "%s" -Dcfi_debug=true ;;
272    --disable-cfi-debug) printf "%s" -Dcfi_debug=false ;;
273    --enable-cloop) printf "%s" -Dcloop=enabled ;;
274    --disable-cloop) printf "%s" -Dcloop=disabled ;;
275    --enable-cocoa) printf "%s" -Dcocoa=enabled ;;
276    --disable-cocoa) printf "%s" -Dcocoa=disabled ;;
277    --enable-colo-proxy) printf "%s" -Dcolo_proxy=enabled ;;
278    --disable-colo-proxy) printf "%s" -Dcolo_proxy=disabled ;;
279    --enable-coreaudio) printf "%s" -Dcoreaudio=enabled ;;
280    --disable-coreaudio) printf "%s" -Dcoreaudio=disabled ;;
281    --with-coroutine=*) quote_sh "-Dcoroutine_backend=$2" ;;
282    --enable-coroutine-pool) printf "%s" -Dcoroutine_pool=true ;;
283    --disable-coroutine-pool) printf "%s" -Dcoroutine_pool=false ;;
284    --enable-crypto-afalg) printf "%s" -Dcrypto_afalg=enabled ;;
285    --disable-crypto-afalg) printf "%s" -Dcrypto_afalg=disabled ;;
286    --enable-curl) printf "%s" -Dcurl=enabled ;;
287    --disable-curl) printf "%s" -Dcurl=disabled ;;
288    --enable-curses) printf "%s" -Dcurses=enabled ;;
289    --disable-curses) printf "%s" -Dcurses=disabled ;;
290    --datadir=*) quote_sh "-Ddatadir=$2" ;;
291    --enable-dbus-display) printf "%s" -Ddbus_display=enabled ;;
292    --disable-dbus-display) printf "%s" -Ddbus_display=disabled ;;
293    --enable-debug-info) printf "%s" -Ddebug=true ;;
294    --disable-debug-info) printf "%s" -Ddebug=false ;;
295    --enable-debug-graph-lock) printf "%s" -Ddebug_graph_lock=true ;;
296    --disable-debug-graph-lock) printf "%s" -Ddebug_graph_lock=false ;;
297    --enable-debug-mutex) printf "%s" -Ddebug_mutex=true ;;
298    --disable-debug-mutex) printf "%s" -Ddebug_mutex=false ;;
299    --enable-debug-remap) printf "%s" -Ddebug_remap=true ;;
300    --disable-debug-remap) printf "%s" -Ddebug_remap=false ;;
301    --enable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=true ;;
302    --disable-debug-stack-usage) printf "%s" -Ddebug_stack_usage=false ;;
303    --enable-debug-tcg) printf "%s" -Ddebug_tcg=true ;;
304    --disable-debug-tcg) printf "%s" -Ddebug_tcg=false ;;
305    --enable-dmg) printf "%s" -Ddmg=enabled ;;
306    --disable-dmg) printf "%s" -Ddmg=disabled ;;
307    --docdir=*) quote_sh "-Ddocdir=$2" ;;
308    --enable-docs) printf "%s" -Ddocs=enabled ;;
309    --disable-docs) printf "%s" -Ddocs=disabled ;;
310    --enable-dsound) printf "%s" -Ddsound=enabled ;;
311    --disable-dsound) printf "%s" -Ddsound=disabled ;;
312    --enable-fdt) printf "%s" -Dfdt=enabled ;;
313    --disable-fdt) printf "%s" -Dfdt=disabled ;;
314    --enable-fdt=*) quote_sh "-Dfdt=$2" ;;
315    --enable-fuse) printf "%s" -Dfuse=enabled ;;
316    --disable-fuse) printf "%s" -Dfuse=disabled ;;
317    --enable-fuse-lseek) printf "%s" -Dfuse_lseek=enabled ;;
318    --disable-fuse-lseek) printf "%s" -Dfuse_lseek=disabled ;;
319    --enable-fuzzing) printf "%s" -Dfuzzing=true ;;
320    --disable-fuzzing) printf "%s" -Dfuzzing=false ;;
321    --enable-gcrypt) printf "%s" -Dgcrypt=enabled ;;
322    --disable-gcrypt) printf "%s" -Dgcrypt=disabled ;;
323    --enable-gettext) printf "%s" -Dgettext=enabled ;;
324    --disable-gettext) printf "%s" -Dgettext=disabled ;;
325    --enable-gio) printf "%s" -Dgio=enabled ;;
326    --disable-gio) printf "%s" -Dgio=disabled ;;
327    --enable-glusterfs) printf "%s" -Dglusterfs=enabled ;;
328    --disable-glusterfs) printf "%s" -Dglusterfs=disabled ;;
329    --enable-gnutls) printf "%s" -Dgnutls=enabled ;;
330    --disable-gnutls) printf "%s" -Dgnutls=disabled ;;
331    --enable-gtk) printf "%s" -Dgtk=enabled ;;
332    --disable-gtk) printf "%s" -Dgtk=disabled ;;
333    --enable-gtk-clipboard) printf "%s" -Dgtk_clipboard=enabled ;;
334    --disable-gtk-clipboard) printf "%s" -Dgtk_clipboard=disabled ;;
335    --enable-guest-agent) printf "%s" -Dguest_agent=enabled ;;
336    --disable-guest-agent) printf "%s" -Dguest_agent=disabled ;;
337    --enable-guest-agent-msi) printf "%s" -Dguest_agent_msi=enabled ;;
338    --disable-guest-agent-msi) printf "%s" -Dguest_agent_msi=disabled ;;
339    --enable-hexagon-idef-parser) printf "%s" -Dhexagon_idef_parser=true ;;
340    --disable-hexagon-idef-parser) printf "%s" -Dhexagon_idef_parser=false ;;
341    --enable-hv-balloon) printf "%s" -Dhv_balloon=enabled ;;
342    --disable-hv-balloon) printf "%s" -Dhv_balloon=disabled ;;
343    --enable-hvf) printf "%s" -Dhvf=enabled ;;
344    --disable-hvf) printf "%s" -Dhvf=disabled ;;
345    --iasl=*) quote_sh "-Diasl=$2" ;;
346    --enable-iconv) printf "%s" -Diconv=enabled ;;
347    --disable-iconv) printf "%s" -Diconv=disabled ;;
348    --includedir=*) quote_sh "-Dincludedir=$2" ;;
349    --enable-install-blobs) printf "%s" -Dinstall_blobs=true ;;
350    --disable-install-blobs) printf "%s" -Dinstall_blobs=false ;;
351    --interp-prefix=*) quote_sh "-Dinterp_prefix=$2" ;;
352    --enable-jack) printf "%s" -Djack=enabled ;;
353    --disable-jack) printf "%s" -Djack=disabled ;;
354    --enable-keyring) printf "%s" -Dkeyring=enabled ;;
355    --disable-keyring) printf "%s" -Dkeyring=disabled ;;
356    --enable-kvm) printf "%s" -Dkvm=enabled ;;
357    --disable-kvm) printf "%s" -Dkvm=disabled ;;
358    --enable-l2tpv3) printf "%s" -Dl2tpv3=enabled ;;
359    --disable-l2tpv3) printf "%s" -Dl2tpv3=disabled ;;
360    --enable-libdaxctl) printf "%s" -Dlibdaxctl=enabled ;;
361    --disable-libdaxctl) printf "%s" -Dlibdaxctl=disabled ;;
362    --libdir=*) quote_sh "-Dlibdir=$2" ;;
363    --enable-libdw) printf "%s" -Dlibdw=enabled ;;
364    --disable-libdw) printf "%s" -Dlibdw=disabled ;;
365    --libexecdir=*) quote_sh "-Dlibexecdir=$2" ;;
366    --enable-libiscsi) printf "%s" -Dlibiscsi=enabled ;;
367    --disable-libiscsi) printf "%s" -Dlibiscsi=disabled ;;
368    --enable-libkeyutils) printf "%s" -Dlibkeyutils=enabled ;;
369    --disable-libkeyutils) printf "%s" -Dlibkeyutils=disabled ;;
370    --enable-libnfs) printf "%s" -Dlibnfs=enabled ;;
371    --disable-libnfs) printf "%s" -Dlibnfs=disabled ;;
372    --enable-libpmem) printf "%s" -Dlibpmem=enabled ;;
373    --disable-libpmem) printf "%s" -Dlibpmem=disabled ;;
374    --enable-libssh) printf "%s" -Dlibssh=enabled ;;
375    --disable-libssh) printf "%s" -Dlibssh=disabled ;;
376    --enable-libudev) printf "%s" -Dlibudev=enabled ;;
377    --disable-libudev) printf "%s" -Dlibudev=disabled ;;
378    --enable-libusb) printf "%s" -Dlibusb=enabled ;;
379    --disable-libusb) printf "%s" -Dlibusb=disabled ;;
380    --enable-libvduse) printf "%s" -Dlibvduse=enabled ;;
381    --disable-libvduse) printf "%s" -Dlibvduse=disabled ;;
382    --enable-linux-aio) printf "%s" -Dlinux_aio=enabled ;;
383    --disable-linux-aio) printf "%s" -Dlinux_aio=disabled ;;
384    --enable-linux-io-uring) printf "%s" -Dlinux_io_uring=enabled ;;
385    --disable-linux-io-uring) printf "%s" -Dlinux_io_uring=disabled ;;
386    --localedir=*) quote_sh "-Dlocaledir=$2" ;;
387    --localstatedir=*) quote_sh "-Dlocalstatedir=$2" ;;
388    --enable-lzfse) printf "%s" -Dlzfse=enabled ;;
389    --disable-lzfse) printf "%s" -Dlzfse=disabled ;;
390    --enable-lzo) printf "%s" -Dlzo=enabled ;;
391    --disable-lzo) printf "%s" -Dlzo=disabled ;;
392    --enable-malloc=*) quote_sh "-Dmalloc=$2" ;;
393    --enable-malloc-trim) printf "%s" -Dmalloc_trim=enabled ;;
394    --disable-malloc-trim) printf "%s" -Dmalloc_trim=disabled ;;
395    --mandir=*) quote_sh "-Dmandir=$2" ;;
396    --enable-membarrier) printf "%s" -Dmembarrier=enabled ;;
397    --disable-membarrier) printf "%s" -Dmembarrier=disabled ;;
398    --enable-module-upgrades) printf "%s" -Dmodule_upgrades=true ;;
399    --disable-module-upgrades) printf "%s" -Dmodule_upgrades=false ;;
400    --enable-modules) printf "%s" -Dmodules=enabled ;;
401    --disable-modules) printf "%s" -Dmodules=disabled ;;
402    --enable-mpath) printf "%s" -Dmpath=enabled ;;
403    --disable-mpath) printf "%s" -Dmpath=disabled ;;
404    --enable-multiprocess) printf "%s" -Dmultiprocess=enabled ;;
405    --disable-multiprocess) printf "%s" -Dmultiprocess=disabled ;;
406    --enable-netmap) printf "%s" -Dnetmap=enabled ;;
407    --disable-netmap) printf "%s" -Dnetmap=disabled ;;
408    --enable-nettle) printf "%s" -Dnettle=enabled ;;
409    --disable-nettle) printf "%s" -Dnettle=disabled ;;
410    --enable-numa) printf "%s" -Dnuma=enabled ;;
411    --disable-numa) printf "%s" -Dnuma=disabled ;;
412    --enable-nvmm) printf "%s" -Dnvmm=enabled ;;
413    --disable-nvmm) printf "%s" -Dnvmm=disabled ;;
414    --enable-opengl) printf "%s" -Dopengl=enabled ;;
415    --disable-opengl) printf "%s" -Dopengl=disabled ;;
416    --enable-oss) printf "%s" -Doss=enabled ;;
417    --disable-oss) printf "%s" -Doss=disabled ;;
418    --enable-pa) printf "%s" -Dpa=enabled ;;
419    --disable-pa) printf "%s" -Dpa=disabled ;;
420    --enable-parallels) printf "%s" -Dparallels=enabled ;;
421    --disable-parallels) printf "%s" -Dparallels=disabled ;;
422    --enable-pipewire) printf "%s" -Dpipewire=enabled ;;
423    --disable-pipewire) printf "%s" -Dpipewire=disabled ;;
424    --enable-pixman) printf "%s" -Dpixman=enabled ;;
425    --disable-pixman) printf "%s" -Dpixman=disabled ;;
426    --with-pkgversion=*) quote_sh "-Dpkgversion=$2" ;;
427    --enable-plugins) printf "%s" -Dplugins=true ;;
428    --disable-plugins) printf "%s" -Dplugins=false ;;
429    --enable-png) printf "%s" -Dpng=enabled ;;
430    --disable-png) printf "%s" -Dpng=disabled ;;
431    --prefix=*) quote_sh "-Dprefix=$2" ;;
432    --enable-qatzip) printf "%s" -Dqatzip=enabled ;;
433    --disable-qatzip) printf "%s" -Dqatzip=disabled ;;
434    --enable-qcow1) printf "%s" -Dqcow1=enabled ;;
435    --disable-qcow1) printf "%s" -Dqcow1=disabled ;;
436    --enable-qed) printf "%s" -Dqed=enabled ;;
437    --disable-qed) printf "%s" -Dqed=disabled ;;
438    --firmwarepath=*) quote_sh "-Dqemu_firmwarepath=$(meson_option_build_array $2)" ;;
439    --qemu-ga-distro=*) quote_sh "-Dqemu_ga_distro=$2" ;;
440    --qemu-ga-manufacturer=*) quote_sh "-Dqemu_ga_manufacturer=$2" ;;
441    --qemu-ga-version=*) quote_sh "-Dqemu_ga_version=$2" ;;
442    --with-suffix=*) quote_sh "-Dqemu_suffix=$2" ;;
443    --enable-qga-vss) printf "%s" -Dqga_vss=enabled ;;
444    --disable-qga-vss) printf "%s" -Dqga_vss=disabled ;;
445    --enable-qom-cast-debug) printf "%s" -Dqom_cast_debug=true ;;
446    --disable-qom-cast-debug) printf "%s" -Dqom_cast_debug=false ;;
447    --enable-qpl) printf "%s" -Dqpl=enabled ;;
448    --disable-qpl) printf "%s" -Dqpl=disabled ;;
449    --enable-rbd) printf "%s" -Drbd=enabled ;;
450    --disable-rbd) printf "%s" -Drbd=disabled ;;
451    --enable-rdma) printf "%s" -Drdma=enabled ;;
452    --disable-rdma) printf "%s" -Drdma=disabled ;;
453    --enable-relocatable) printf "%s" -Drelocatable=true ;;
454    --disable-relocatable) printf "%s" -Drelocatable=false ;;
455    --enable-replication) printf "%s" -Dreplication=enabled ;;
456    --disable-replication) printf "%s" -Dreplication=disabled ;;
457    --enable-rng-none) printf "%s" -Drng_none=true ;;
458    --disable-rng-none) printf "%s" -Drng_none=false ;;
459    --enable-rutabaga-gfx) printf "%s" -Drutabaga_gfx=enabled ;;
460    --disable-rutabaga-gfx) printf "%s" -Drutabaga_gfx=disabled ;;
461    --enable-safe-stack) printf "%s" -Dsafe_stack=true ;;
462    --disable-safe-stack) printf "%s" -Dsafe_stack=false ;;
463    --enable-sdl) printf "%s" -Dsdl=enabled ;;
464    --disable-sdl) printf "%s" -Dsdl=disabled ;;
465    --enable-sdl-image) printf "%s" -Dsdl_image=enabled ;;
466    --disable-sdl-image) printf "%s" -Dsdl_image=disabled ;;
467    --enable-seccomp) printf "%s" -Dseccomp=enabled ;;
468    --disable-seccomp) printf "%s" -Dseccomp=disabled ;;
469    --enable-selinux) printf "%s" -Dselinux=enabled ;;
470    --disable-selinux) printf "%s" -Dselinux=disabled ;;
471    --enable-slirp) printf "%s" -Dslirp=enabled ;;
472    --disable-slirp) printf "%s" -Dslirp=disabled ;;
473    --enable-slirp-smbd) printf "%s" -Dslirp_smbd=enabled ;;
474    --disable-slirp-smbd) printf "%s" -Dslirp_smbd=disabled ;;
475    --enable-smartcard) printf "%s" -Dsmartcard=enabled ;;
476    --disable-smartcard) printf "%s" -Dsmartcard=disabled ;;
477    --smbd=*) quote_sh "-Dsmbd=$2" ;;
478    --enable-snappy) printf "%s" -Dsnappy=enabled ;;
479    --disable-snappy) printf "%s" -Dsnappy=disabled ;;
480    --enable-sndio) printf "%s" -Dsndio=enabled ;;
481    --disable-sndio) printf "%s" -Dsndio=disabled ;;
482    --enable-sparse) printf "%s" -Dsparse=enabled ;;
483    --disable-sparse) printf "%s" -Dsparse=disabled ;;
484    --enable-spice) printf "%s" -Dspice=enabled ;;
485    --disable-spice) printf "%s" -Dspice=disabled ;;
486    --enable-spice-protocol) printf "%s" -Dspice_protocol=enabled ;;
487    --disable-spice-protocol) printf "%s" -Dspice_protocol=disabled ;;
488    --enable-stack-protector) printf "%s" -Dstack_protector=enabled ;;
489    --disable-stack-protector) printf "%s" -Dstack_protector=disabled ;;
490    --enable-strip) printf "%s" -Dstrip=true ;;
491    --disable-strip) printf "%s" -Dstrip=false ;;
492    --sysconfdir=*) quote_sh "-Dsysconfdir=$2" ;;
493    --enable-tcg) printf "%s" -Dtcg=enabled ;;
494    --disable-tcg) printf "%s" -Dtcg=disabled ;;
495    --enable-tcg-interpreter) printf "%s" -Dtcg_interpreter=true ;;
496    --disable-tcg-interpreter) printf "%s" -Dtcg_interpreter=false ;;
497    --tls-priority=*) quote_sh "-Dtls_priority=$2" ;;
498    --enable-tools) printf "%s" -Dtools=enabled ;;
499    --disable-tools) printf "%s" -Dtools=disabled ;;
500    --enable-tpm) printf "%s" -Dtpm=enabled ;;
501    --disable-tpm) printf "%s" -Dtpm=disabled ;;
502    --enable-trace-backends=*) quote_sh "-Dtrace_backends=$2" ;;
503    --with-trace-file=*) quote_sh "-Dtrace_file=$2" ;;
504    --enable-tsan) printf "%s" -Dtsan=true ;;
505    --disable-tsan) printf "%s" -Dtsan=false ;;
506    --enable-u2f) printf "%s" -Du2f=enabled ;;
507    --disable-u2f) printf "%s" -Du2f=disabled ;;
508    --enable-uadk) printf "%s" -Duadk=enabled ;;
509    --disable-uadk) printf "%s" -Duadk=disabled ;;
510    --enable-ubsan) printf "%s" -Dubsan=true ;;
511    --disable-ubsan) printf "%s" -Dubsan=false ;;
512    --enable-usb-redir) printf "%s" -Dusb_redir=enabled ;;
513    --disable-usb-redir) printf "%s" -Dusb_redir=disabled ;;
514    --enable-vde) printf "%s" -Dvde=enabled ;;
515    --disable-vde) printf "%s" -Dvde=disabled ;;
516    --enable-vdi) printf "%s" -Dvdi=enabled ;;
517    --disable-vdi) printf "%s" -Dvdi=disabled ;;
518    --enable-vduse-blk-export) printf "%s" -Dvduse_blk_export=enabled ;;
519    --disable-vduse-blk-export) printf "%s" -Dvduse_blk_export=disabled ;;
520    --enable-vfio-user-server) printf "%s" -Dvfio_user_server=enabled ;;
521    --disable-vfio-user-server) printf "%s" -Dvfio_user_server=disabled ;;
522    --enable-vhdx) printf "%s" -Dvhdx=enabled ;;
523    --disable-vhdx) printf "%s" -Dvhdx=disabled ;;
524    --enable-vhost-crypto) printf "%s" -Dvhost_crypto=enabled ;;
525    --disable-vhost-crypto) printf "%s" -Dvhost_crypto=disabled ;;
526    --enable-vhost-kernel) printf "%s" -Dvhost_kernel=enabled ;;
527    --disable-vhost-kernel) printf "%s" -Dvhost_kernel=disabled ;;
528    --enable-vhost-net) printf "%s" -Dvhost_net=enabled ;;
529    --disable-vhost-net) printf "%s" -Dvhost_net=disabled ;;
530    --enable-vhost-user) printf "%s" -Dvhost_user=enabled ;;
531    --disable-vhost-user) printf "%s" -Dvhost_user=disabled ;;
532    --enable-vhost-user-blk-server) printf "%s" -Dvhost_user_blk_server=enabled ;;
533    --disable-vhost-user-blk-server) printf "%s" -Dvhost_user_blk_server=disabled ;;
534    --enable-vhost-vdpa) printf "%s" -Dvhost_vdpa=enabled ;;
535    --disable-vhost-vdpa) printf "%s" -Dvhost_vdpa=disabled ;;
536    --enable-virglrenderer) printf "%s" -Dvirglrenderer=enabled ;;
537    --disable-virglrenderer) printf "%s" -Dvirglrenderer=disabled ;;
538    --enable-virtfs) printf "%s" -Dvirtfs=enabled ;;
539    --disable-virtfs) printf "%s" -Dvirtfs=disabled ;;
540    --enable-vmdk) printf "%s" -Dvmdk=enabled ;;
541    --disable-vmdk) printf "%s" -Dvmdk=disabled ;;
542    --enable-vmnet) printf "%s" -Dvmnet=enabled ;;
543    --disable-vmnet) printf "%s" -Dvmnet=disabled ;;
544    --enable-vnc) printf "%s" -Dvnc=enabled ;;
545    --disable-vnc) printf "%s" -Dvnc=disabled ;;
546    --enable-vnc-jpeg) printf "%s" -Dvnc_jpeg=enabled ;;
547    --disable-vnc-jpeg) printf "%s" -Dvnc_jpeg=disabled ;;
548    --enable-vnc-sasl) printf "%s" -Dvnc_sasl=enabled ;;
549    --disable-vnc-sasl) printf "%s" -Dvnc_sasl=disabled ;;
550    --enable-vpc) printf "%s" -Dvpc=enabled ;;
551    --disable-vpc) printf "%s" -Dvpc=disabled ;;
552    --enable-vte) printf "%s" -Dvte=enabled ;;
553    --disable-vte) printf "%s" -Dvte=disabled ;;
554    --enable-vvfat) printf "%s" -Dvvfat=enabled ;;
555    --disable-vvfat) printf "%s" -Dvvfat=disabled ;;
556    --enable-werror) printf "%s" -Dwerror=true ;;
557    --disable-werror) printf "%s" -Dwerror=false ;;
558    --enable-whpx) printf "%s" -Dwhpx=enabled ;;
559    --disable-whpx) printf "%s" -Dwhpx=disabled ;;
560    --x86-version=*) quote_sh "-Dx86_version=$2" ;;
561    --enable-xen) printf "%s" -Dxen=enabled ;;
562    --disable-xen) printf "%s" -Dxen=disabled ;;
563    --enable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=enabled ;;
564    --disable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=disabled ;;
565    --enable-xkbcommon) printf "%s" -Dxkbcommon=enabled ;;
566    --disable-xkbcommon) printf "%s" -Dxkbcommon=disabled ;;
567    --enable-zstd) printf "%s" -Dzstd=enabled ;;
568    --disable-zstd) printf "%s" -Dzstd=disabled ;;
569    *) return 1 ;;
570  esac
571}
572