summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2019-12-21 15:58:52 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-12-21 15:58:52 (GMT)
commit892d2bce3edfa7ac12a8b40a7991783dc7ca1855 (patch) (side-by-side diff)
treee5d1a373c88dc7632f3cf3972f76d7789419f3ae
parentbb7a8f74658dd594a3119304c0220cc30e1aac58 (diff)
downloadmailutils-master.tar.gz
mailutils-master.tar.bz2
Fix build with Python 3.8 (https://savannah.gnu.org/bugs/index.php?57318)HEADmaster
* configure.ac: When setting PYTHON_LIBS, use the approach suggested in https://docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 575ff22..e705cf9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1213,14 +1213,16 @@ if test "$status_python" = yes; then
case $PYTHON_VERSION in
2.*) PYTHON_MAJOR=2;;
3.*) PYTHON_MAJOR=3;;
*) AC_MSG_WARN([unsupported Python version $PYTHON_VERSION])
status_python=no
esac
-
- PYTHON_LIBS=`$PYTHON_CONFIG --libs`
+
+ # See https://docs.python.org/dev/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build
+ PYTHON_LIBS=`python-config --libs --embed 2>/dev/null` || \
+ PYTHON_LIBS=`python-config --libs`
PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
else
status_python=no
fi
if test "$status_python" = yes; then

Return to:

Send suggestions and report system problems to the System administrator.