]> git.ipfire.org Git - thirdparty/qemu.git/commit
configure: fix detection of gdbus-codegen
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 May 2021 14:15:34 +0000 (10:15 -0400)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 20:50:10 +0000 (15:50 -0500)
commitad8c49081aad03dbeab57717280326d3d98d659e
treec643ba746dc42a6d27fcfe3c7059380273eb064e
parentfcfe1509a1a622d85224a1e7003aba940897fe8d
configure: fix detection of gdbus-codegen

"pkg-config --variable=gdbus_codegen gio-2.0" returns "gdbus-codegen",
and it does not pass test -x (which does not walk the path).

Meson 0.58.0 notices that something is iffy, as the dbus_vmstate1
assignment in tests/qtest/meson.build uses an empty string as the
command, and fails very eloquently:

../tests/qtest/meson.build:92:2: ERROR: No program name specified.

Use the "has" function instead of test -x, and fix the generation
of config-host.mak since meson.build expects that GDBUS_CODEGEN
is absent, rather than empty, if the tool is unavailable.

Reported-by: Sebastian Mitterle <smitterl@redhat.com>
Fixes: #178
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 5ecfb76ccc056eb6127e44268e475827ae73b9e0)
Signed-off-by: Michael Roth <michael.roth@amd.com>
configure