]> xenbits.xensource.com Git - xen.git/commit
build: fix tools/configure in case only python3 exists
authorJuergen Gross <jgross@suse.com>
Wed, 11 Dec 2019 16:56:59 +0000 (17:56 +0100)
committerWei Liu <wl@xen.org>
Thu, 12 Dec 2019 14:16:43 +0000 (14:16 +0000)
commit5852ca48526316918cd82fba1033a6a5379fbc4c
treeb11c9d29bbd76e05d591003268d6be840fd8221f
parentb4f042236ae0bb6725b3e8dd40af5a2466a6f971
build: fix tools/configure in case only python3 exists

Calling ./configure with python3 being there but no python,
tools/configure will fail. Fix that by defaulting to python and
falling back to python3 or python2.

While at it fix the use of non portable "type -p" by replacing it by
AC_PATH_PROG().

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
[ wei: run autogen.sh ]
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/configure
tools/configure.ac