From 747cf8cdf61cdad068c727e42eac699f2505ae77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 20 Jun 2014 18:14:22 -0400 Subject: [PATCH] build-sys: fail if python support requested but not found --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 1aff72d3b..a87a02656 100644 --- a/configure.ac +++ b/configure.ac @@ -224,6 +224,13 @@ AS_IF([test "x$with_python" != "xno"], [ [AC_MSG_WARN([*** python support requires python-lxml module installed])]) ]) ]) +AS_IF([test "$have_python" != "yes"], [ + AS_IF([test "$with_python" = "yes"], + [AC_MSG_ERROR([*** python support requested but python support not found])]) + AS_IF([test "$with_python" != "no"], + [AC_MSG_WARN([*** python support not found, some documentation cannot be built])]) +]) + AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) AS_IF([test "x$PYTHON_BINARY" = "x"], [AS_IF([test "x$have_python" = "xyes"], -- 2.30.2