From a53ed4dda74d61d4cb56842dc0c6e6e7c3870e11 Mon Sep 17 00:00:00 2001 From: cantabile Date: Sun, 26 Jan 2020 00:00:22 +0200 Subject: [PATCH] Fix compilation with Python 3.8. Fixes https://github.com/vapoursynth/vapoursynth/issues/518. --- configure.ac | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1d1b05fc..7dcde996 100644 --- a/configure.ac +++ b/configure.ac @@ -234,7 +234,13 @@ AS_IF( [ AM_PATH_PYTHON([3]) - PKG_CHECK_MODULES([PYTHON3], [python-$PYTHON_VERSION]) + PKG_CHECK_MODULES([PYTHON3], + [python-$PYTHON_VERSION-embed], + [], + [ + PKG_CHECK_MODULES([PYTHON3], + [python-$PYTHON_VERSION]) + ]) AC_CONFIG_FILES([pc/vapoursynth-script.pc]) ] @@ -292,7 +298,15 @@ AS_IF( AS_IF( [test -z "$PYTHON3_LIBS"], - [PKG_CHECK_MODULES([PYTHON3], [python-$PYTHON_VERSION])] + [ + PKG_CHECK_MODULES([PYTHON3], + [python-$PYTHON_VERSION-embed], + [], + [ + PKG_CHECK_MODULES([PYTHON3], + [python-$PYTHON_VERSION]) + ]) + ] ) AS_CASE(