configure.ac: search for and set PYTHON3
authorJonathan Gray <jsg@jsg.id.au>
Sat, 23 Apr 2016 07:39:02 +0000 (17:39 +1000)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 23 Apr 2016 08:06:20 +0000 (01:06 -0700)
src/intel/genxml/gen_pack_header.py requires python3.

v2: check for python3.5 as well

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configure.ac

index e4ce8fe1ad61fcc461554205875b4efc7d1276bf..38d1f5baf8969fca8f34fafae15b53bde4c8c05c 100644 (file)
@@ -99,6 +99,7 @@ AM_PROG_CC_C_O
 AM_PROG_AS
 AX_CHECK_GNU_MAKE
 AC_CHECK_PROGS([PYTHON2], [python2.7 python2 python])
+AC_CHECK_PROGS([PYTHON3], [python3.5 python3.4 python3])
 AC_PROG_SED
 AC_PROG_MKDIR_P
 
@@ -2779,6 +2780,7 @@ if test "x$MESA_LLVM" = x1; then
     echo ""
 fi
 echo "        PYTHON2:         $PYTHON2"
+echo "        PYTHON3:         $PYTHON3"
 
 echo ""
 echo "        Run '${MAKE-make}' to build Mesa"