From 07128719c4048c0c478ea073d6a850105153ab79 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 10 Oct 2021 16:52:05 +0900 Subject: [PATCH] Workaround broken version check in AX_PYTHON_DEVEL --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 7fc90886..5e19e1ce 100644 --- a/configure.ac +++ b/configure.ac @@ -220,6 +220,11 @@ PKG_PROG_PKG_CONFIG([0.20]) 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 request_app=no request_hpack_tools=no @@ -227,8 +232,10 @@ if [test "x$request_lib_only" = "xyes"]; then request_python_bindings=no fi -if [test "x$request_python_bindings" != "xno"]; then - AX_PYTHON_DEVEL([>= '3.8']) +if test "x$request_python_bindings" != "xno" && + test "x$PYTHON" != "x:"; then + # version check is broken + AX_PYTHON_DEVEL() fi if test "x${cython_path}" = "x"; then