X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=16dee8b368e5b60e5dd395fac86913ea1b581d49;hb=cb80e2fb106d56b4a0ae9c0480a368572f4d0d35;hp=437d71961871ec30fe9405b05fe933817aced698;hpb=7d54bba42d167e5d74dfdff858153742b199b4f6;p=lttng-ust.git diff --git a/configure.ac b/configure.ac index 437d7196..16dee8b3 100644 --- a/configure.ac +++ b/configure.ac @@ -481,6 +481,16 @@ Cannot find a suitable python interpreter. You can override it with the PYTHON environment variable. ]) ]) + + AX_COMPARE_VERSION(["$PYTHON_VERSION"], [ge], ["3.12"], [ + AC_MSG_CHECKING([for python setuptools]) + AS_IF(["$PYTHON" -c "import setuptools" 2>/dev/null], [ + AC_MSG_RESULT([yes]) + ], [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Python >= 3.12 removed 'distutils', the 'setuptools' module needs to be installed for the selected interpreter.]) + ]) + ]) ]) # Check for asciidoc and xmlto if we enabled building the man pages.