configure: allow building with python3
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Aug 2018 12:59:38 +0000 (13:59 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 31 Oct 2018 19:15:50 +0000 (19:15 +0000)
commit986033a2750c1160a4cef3c8418fc7f9e2b4fb5a
tree272f346932d8d545e79213feeab07d610fa3dfbd
parent6d7d3dbda531b0bc692ffb479d65527b2138dbf3
configure: allow building with python3

Pretty much all of the scripts are python2+3 compatible.
Check and allow using python3, while adjusting the PYTHON2 refs.

Note:
 - python3.4 is used as it's the earliest supported version
 - python2 chosen prior to python3

v2: use python2 by default

Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
27 files changed:
configure.ac
m4/ax_check_python_mako_module.m4
src/Makefile.am
src/amd/Makefile.common.am
src/amd/vulkan/Makefile.am
src/broadcom/Makefile.am
src/compiler/Makefile.am
src/compiler/Makefile.glsl.am
src/compiler/glsl/glcpp/tests/glcpp-test.sh
src/compiler/glsl/tests/optimization-test.sh
src/compiler/glsl/tests/warnings-test.sh
src/egl/Makefile.am
src/gallium/auxiliary/Makefile.am
src/gallium/drivers/freedreno/Makefile.am
src/gallium/drivers/r600/Makefile.am
src/gallium/drivers/radeonsi/Makefile.am
src/gallium/drivers/swr/Makefile.am
src/intel/Makefile.am
src/intel/Makefile.compiler.am
src/intel/Makefile.vulkan.am
src/mapi/Makefile.am
src/mapi/glapi/gen/Makefile.am
src/mesa/Makefile.am
src/mesa/drivers/dri/i965/Makefile.am
src/util/Makefile.am
src/util/xmlpool/Makefile.am
src/vulkan/Makefile.am