build: Re-add still needed custom changes to Python autoconf macro

* m4/ax_python_devel.m4: Do not emit 'HAVE_PYTHON'.
--

This reapplies the changes made with 5189c08 that are still needed for
detecting multiple Python versions.
This commit is contained in:
Ingo Klöcker 2024-01-16 09:58:33 +01:00
parent e3ae88267f
commit cc1f2b5acb
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -274,8 +274,11 @@ EOD`
fi
# Make the versioning information available to the compiler
AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
[If available, contains the Python version number currently in use.])
# JW: We don't need it and it interferes with the hack
# to detect multiple Python versions
#AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
# [If available, contains the Python version number currently in use.])
# First, the library directory:
ac_python_libdir=`cat<<EOD | $PYTHON -