tests/qtest/tpm-* compilation is not disabled by disable-tpm, for this reason compilation fails on systems that doesn't support the linux/bsd TPM api. Fix this by allowing tests to be disabled.
Signed-off-by: Manolo de Medici <manolo.demed...@gmail.com> --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index 21ab9a64e9..c36ce1f7e2 100755 --- a/configure +++ b/configure @@ -254,6 +254,7 @@ skip_meson=no use_containers="yes" gdb_bin=$(command -v "gdb-multiarch" || command -v "gdb") gdb_arches="" +tests="auto" # Don't accept a target_list environment variable. unset target_list @@ -741,6 +742,10 @@ for opt do ;; --disable-cfi) cfi=false ;; + --disable-tests) tests="disabled" + ;; + --enable-tests) tests="enabled" + ;; --disable-download) download="disabled"; git_submodules_action=validate; ;; --enable-download) download="enabled"; git_submodules_action=update; @@ -887,6 +892,7 @@ cat << EOF linux-user all linux usermode emulation targets bsd-user all BSD usermode emulation targets pie Position Independent Executables + tests build tests NOTE: The object files are built at the place where configure is launched EOF @@ -1792,6 +1798,7 @@ if test "$skip_meson" = no; then # QEMU options test "$cfi" != false && meson_option_add "-Dcfi=$cfi" "-Db_lto=$cfi" test "$docs" != auto && meson_option_add "-Ddocs=$docs" + test "$tests" != auto && meson_option_add "-Dtests=$tests" test -n "${LIB_FUZZING_ENGINE+xxx}" && meson_option_add "-Dfuzzing_engine=$LIB_FUZZING_ENGINE" test "$plugins" = yes && meson_option_add "-Dplugins=true" test "$tcg" != enabled && meson_option_add "-Dtcg=$tcg" -- 2.43.0