Workaround broken version check in AX_PYTHON_DEVEL

This commit is contained in:
Tatsuhiro Tsujikawa 2021-10-10 16:52:05 +09:00
parent 7471fa627d
commit 07128719c4
1 changed files with 9 additions and 2 deletions

View File

@ -220,6 +220,11 @@ PKG_PROG_PKG_CONFIG([0.20])
AM_PATH_PYTHON([3.8],, [:]) AM_PATH_PYTHON([3.8],, [:])
if test "x$request_python_bindings" = "xyes" &&
test "x$PYTHON" = "x:"; then
AC_MSG_ERROR([python was requested (enable-python-bindings) but not found])
fi
if [test "x$request_lib_only" = "xyes"]; then if [test "x$request_lib_only" = "xyes"]; then
request_app=no request_app=no
request_hpack_tools=no request_hpack_tools=no
@ -227,8 +232,10 @@ if [test "x$request_lib_only" = "xyes"]; then
request_python_bindings=no request_python_bindings=no
fi fi
if [test "x$request_python_bindings" != "xno"]; then if test "x$request_python_bindings" != "xno" &&
AX_PYTHON_DEVEL([>= '3.8']) test "x$PYTHON" != "x:"; then
# version check is broken
AX_PYTHON_DEVEL()
fi fi
if test "x${cython_path}" = "x"; then if test "x${cython_path}" = "x"; then