configure: add support for pseudo-"in source tree" builds

Meson requires the build dir to be separate from the source tree. Many
people are used to just running "./configure && make" though and the
meson conversion breaks that.

This introduces some backcompat support to make it appear as if an
"in source tree" build is being done, but with the results in the
"build/" directory. This allows "./configure && make" to work as it
did historically, albeit with the output binaries staying under build/.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-08-21 12:22:04 +02:00 committed by Paolo Bonzini
parent bfea7012fe
commit dedad02720
2 changed files with 51 additions and 3 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/GNUmakefile
/build/
/.doctrees
/config-devices.*
/config-all-devices.*