X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=configure.ac;h=b78e457ebbc316d55d3bb8fef9446ee9c9de3de2;hb=6ec97181a525a3cd64cedbcd0df905ed9e84ba03;hp=ef7dbc390112a91ee629476f0303e4edd3ebf96b;hpb=d6ed1edd5d1173a1eba44f8011d5dab80b218bd6;p=babeltrace.git diff --git a/configure.ac b/configure.ac index ef7dbc39..b78e457e 100644 --- a/configure.ac +++ b/configure.ac @@ -538,6 +538,16 @@ AS_IF([AE_IS_FEATURE_ENABLED([python-bindings]) || AE_IS_FEATURE_ENABLED([python AS_IF([test "x$have_python_dev" = xno], [ AC_MSG_ERROR([Cannot find a suitable python-config. You can override the python-config path with the PYTHON_CONFIG 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.]) + ]) + ]) ]) AE_IF_FEATURE_ENABLED([python-bindings-doc], @@ -704,6 +714,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl dnl Clang's does not. Enable Clang's `-Wshadow-field-in-constructor`, to make dnl Clang warn about that. -Wshadow-field-in-constructor dnl + -Wshadow-field dnl -Wjump-misses-init dnl -Wsuggest-attribute=format dnl -Wtautological-constant-out-of-range-compare dnl @@ -716,6 +727,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl -Wduplicated-cond dnl -Wduplicated-branches dnl -Wlogical-op dnl + -Wsuggest-override dnl -Wno-unused-parameter dnl -Wno-sign-compare dnl dnl @@ -732,6 +744,7 @@ m4_define([WARN_FLAGS_LIST], [ dnl dnl Ref: https://github.com/swig/swig/issues/1259 -Wno-cast-function-type dnl -Wno-missing-field-initializers dnl + -Wno-maybe-uninitialized dnl ]) # Pass -Werror as an extra flag during the test: this is needed to make the