From: Emil Velikov Date: Wed, 4 May 2016 10:47:14 +0000 (+0100) Subject: configure.ac: error out when building from git without python3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cd687ce97f39bd98fab4d72d607b7a1644cd2a0;p=mesa.git configure.ac: error out when building from git without python3 Bail early, as opposed to later on during the build. Signed-off-by: Emil Velikov --- diff --git a/configure.ac b/configure.ac index 3499e99f5e4..070bae20dc2 100644 --- a/configure.ac +++ b/configure.ac @@ -142,6 +142,12 @@ else fi fi +if test -z "$PYTHON3"; then + if test ! -f "$srcdir/src/intel/genxml/gen9_pack.h"; then + AC_MSG_ERROR([Python3 not found - unable to generate sources]) + fi +fi + AC_PROG_INSTALL dnl We need a POSIX shell for parts of the build. Assume we have one