diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-20 18:14:22 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-06-20 18:44:40 -0400 |
commit | 747cf8cdf61cdad068c727e42eac699f2505ae77 (patch) | |
tree | 117fe32e7c180615dc5425a98bb4e998e5f8b72c | |
parent | 65adc982db09a144d61551d5acc9340366cc46e2 (diff) |
build-sys: fail if python support requested but not found
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1aff72d3b1..a87a02656a 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"], |