You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
47 lines
1.6 KiB
From a53ed4dda74d61d4cb56842dc0c6e6e7c3870e11 Mon Sep 17 00:00:00 2001
|
|
From: cantabile <cantabile.desu@gmail.com>
|
|
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(
|