python: use setuptools with python >= 3.12
[lttng-ust.git] / configure.ac
index 7fe30a3cc5ba561f5d6f320c6f69db246112b2e1..c662381720f5dfb689020a908d6efc0f9893c9f8 100644 (file)
@@ -1,7 +1,7 @@
 dnl Version infos
 m4_define([V_MAJOR], [2])
 m4_define([V_MINOR], [12])
-m4_define([V_PATCH], [4])
+m4_define([V_PATCH], [8])
 dnl m4_define([V_EXTRA], [])
 m4_define([V_NAME], [[(Ta) Meilleure]])
 m4_define([V_DESC], [[Ta Meilleure is a Northeast IPA beer brewed by Lagabière. Translating to "Your best one", this beer gives out strong aromas of passion fruit, lemon, and peaches. Tastewise, expect a lot of fruit, a creamy texture, and a smooth lingering hop bitterness.]])
@@ -422,6 +422,16 @@ AS_HELP_STRING([--enable-python-agent], [build the LTTng UST Python agent [defau
 AM_CONDITIONAL([BUILD_PYTHON_AGENT], [test "x$python_agent" = "xyes"])
 AS_IF([test "x$python_agent" = "xyes"], [
        AM_PATH_PYTHON([2.7])
+
+       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.])
+         ])
+       ])
 ])
 
 # sdt.h integration
@@ -587,6 +597,7 @@ AC_CONFIG_FILES([
        tests/utils/Makefile
        tests/test-app-ctx/Makefile
        tests/gcc-weak-hidden/Makefile
+       tests/libringbuffer/Makefile
        lttng-ust.pc
        lttng-ust-ctl.pc
 ])
This page took 0.023081 seconds and 4 git commands to generate.