configure : PYTHON_SITE_PACKAGES
The code in configure and configure.ac which is dealing with the variable PYTHON_SITE_PACKAGES is using '(var)' syntax instead of "
{var}" syntax. This leads to the second part of the "=" to not be expended with real values. Thus the test checking if the directory/file does exist fails.
WRONG : PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
CORRECT: PYTHON_SITE_PACKAGES="${libdir}/python${PYTHON_VERSION}/site-packages"
This issue does not appear on the Fedora31/PPC64LE machine where I've tested because the faulty configure code is not executed. Probably that it does not show on Linux machines. However, when building libxslt on AIX, I see it.
libxslt-1.1.34-PYTHON_SITE_PACKAGES-configure.ac.patch
libxslt-1.1.34-PYTHON_SITE_PACKAGES-configure.patch
Applying the patch on configure file did fix in my AIX environment. However, applying the patch on configure.ac file led to the file being used and another issue appeared, that I did not fixed:
cd . && /usr/bin/bash /opt/freeware/src/packages/BUILD/libxslt-1.1.34/64bit/missing automake-1.16 --foreign
configure.ac:539: error: possibly undefined macro: PKG_CHECK_MODULES_STATIC
However, this may be due to my environment.