From 786a5c5e65cf84c6cb2b7eb48f77bad6fc47d071 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Thu, 14 Apr 2016 08:49:00 -0600 Subject: [PATCH] If we can't find the python headers and libraries, abort configuration. Otherwise, we would attempt to build Boost.Python unconditionally. --- src/tools/python.jam | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tools/python.jam b/src/tools/python.jam index 0139b033d..3ecd89764 100644 --- a/src/tools/python.jam +++ b/src/tools/python.jam @@ -797,13 +797,11 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? : } } - # Anything left to compute? + # Check whether configuration succeeded. if ! ( $(includes) && $(libraries) ) { - version ?= $(fallback-version) ; - version ?= 2.5 ; - exec-prefix ?= $(prefix) ; - compute-default-paths $(target-os) : $(version) : $(prefix:E=) ; + debug-message Python headers and libraries not found. ; + return ; } .configured = true ;