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