configure: fix backwards-compatibility for meson sphinx_build option
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 May 2023 18:04:07 +0000 (20:04 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 May 2023 18:40:04 +0000 (20:40 +0200)
commit973038db87154f954e8cd889d706089489a43d46
treeb7bc78bac96a9eadd024f87ccb13f5a01a07498e
parentb0fcc6fc7fc11278c8ca344d8d9c6e5d05742f79
configure: fix backwards-compatibility for meson sphinx_build option

Reintroduce the cmd_line.txt mangling to remove the sphinx_build option
when rerunning meson.  The mechanism was removed in commit 75cc28648574
("configure: remove backwards-compatibility code", 2023-01-11) because
the fixups were obsolete at the time; however, the Meson deprecation
mechanism doesn't quite work when options are finally removed, so we
need to bring it back.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure