28 lines
917 B
Diff
28 lines
917 B
Diff
From 37df08dc1a95f0d2e1a0f1d1c4cb3b6e3cdb11cc Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Sun, 18 Jun 2023 14:29:50 +0530
|
|
Subject: [PATCH 118/N] correctly find native python
|
|
|
|
it's required for regen-modules
|
|
---
|
|
configure.ac | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 3268a85..c5ad502 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -202,9 +202,11 @@ AC_SUBST([FREEZE_MODULE])
|
|
AC_SUBST([FREEZE_MODULE_DEPS])
|
|
AC_SUBST([PYTHON_FOR_BUILD_DEPS])
|
|
|
|
+NATIVE_PYTHON_SEARCH_PATH_MINGW=`echo $host | grep -Eq 'mingw*' && echo "$MINGW_PREFIX/bin" || echo $PATH`
|
|
AC_CHECK_PROGS([PYTHON_FOR_REGEN],
|
|
[python$PACKAGE_VERSION python3.10 python3.9 python3.8 python3.7 python3.6 python3 python],
|
|
- [python3])
|
|
+ [python3],
|
|
+ [$NATIVE_PYTHON_SEARCH_PATH_MINGW])
|
|
AC_SUBST(PYTHON_FOR_REGEN)
|
|
|
|
AC_MSG_CHECKING([Python for regen version])
|