From 8ce8299f9458c7fee8554ecd4b97cc5eddba4e4c Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 22 Dec 2016 23:07:52 +0530 Subject: Add configure check for python program Add a configure check that looks for python3 and python in that order since we had agreed in the past to prefer python3 over python in all our code. The patch also adjusts invocations through the various Makefiles to use the set variable. * configure.ac: Check for python3 or python. * configure: Regenerated. * config.make.in (PYTHON): New variable. * benchtests/Makefile: Don't define PYTHON. (bench): Define target only if PYTHON was defined. * Rules: Don't define PYTHON. Define pretty printer targets only if PYTHON was defined. (tests-printers): Add to tests-unsupported if PYTHON is not found. (python-flags, python-invoke): Remove. (tests-printers-out): Use PYTHON instead of python-invoke. --- config.make.in | 1 + 1 file changed, 1 insertion(+) (limited to 'config.make.in') diff --git a/config.make.in b/config.make.in index d2d9b8ab36..35e7e59663 100644 --- a/config.make.in +++ b/config.make.in @@ -126,6 +126,7 @@ MSGFMT = @MSGFMT@ BASH = @BASH_SHELL@ AWK = @AWK@ PERL = @PERL@ +PYTHON = @PYTHON@ # Additional libraries. LIBGD = @LIBGD@ -- cgit v1.2.3