From a956663291435cbcb3ad7bc5db01597e8604063a Mon Sep 17 00:00:00 2001 From: Takenobu Tani <takenobu.hs@gmail.com> Date: Wed, 6 Nov 2019 21:06:58 +0900 Subject: [PATCH] configure: Modify ERROR to WARN for sphinx's python check If sphinx's python version check failed, many people prefer to build without documents instead of stopping on the error. So this commit fixes the following: * Modify AC_MSG_ERROR to AC_MSG_WARN * Add clearing of SPHINXBUILD variable when check fails See also !2016. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2711840ddbdd..00fb9a55686b 100644 --- a/configure.ac +++ b/configure.ac @@ -842,7 +842,8 @@ FP_COMPARE_VERSIONS([$fp_cv_sphinx_version],-lt,1.0.0, [AC_MSG_WARN([Sphinx version 1.0.0 or later is required to build documentation]); SPHINXBUILD=;]) if test -n "$SPHINXBUILD"; then if "$SPHINXBUILD" -b text utils/check-sphinx utils/check-sphinx/dist > /dev/null 2>&1; then true; else - AC_MSG_ERROR([Sphinx for python3 is required to build documentation.]) + AC_MSG_WARN([Sphinx for python3 is required to build documentation.]) + SPHINXBUILD=; fi fi -- GitLab