configure: automatically pick python3 is available
commitfaf441429adfe5767be52c5dcdb8bc03161d064f
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 27 Mar 2019 17:07:01 +0000 (27 17:07 +0000)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 3 May 2019 00:33:27 +0000 (2 21:33 -0300)
treeed49f0f10433d9559a87984efa5d2b8534b31b77
parentb36b59371fbb39ae39645b16db85f9a49573309d
configure: automatically pick python3 is available

Unless overridden via an env var or configure arg, QEMU will only look
for the 'python' binary in $PATH. This is unhelpful on distros which
are only shipping Python 3.x (eg Fedora) in their default install as,
if they comply with PEP 394, the bare 'python' binary won't exist.

This changes configure so that by default it will search for all three
common python binaries, preferring to find Python 3.x versions.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20190327170701.23798-1-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
configure