+AS_IF([test "x$enable_python_bindings_doc" = xyes],
+ [
+ AM_CHECK_PYTHON_SPHINX([PYTHON])
+ AS_IF([test "x$PYTHON_SPHINX_EXISTS" = xno], [
+ AC_MSG_ERROR([The Sphinx package for Python 3 is required to build the Python bindings documentation])
+ ])
+
+ AS_IF([test "x$enable_python_bindings" != xyes], [
+ AC_MSG_ERROR([The Python bindings are required to build their documentation])
+ ])
+ ]
+)
+