Python add tcl/tk dependency (make) for module _tkinter (#6932)

This commit is contained in:
Schrijvers Luc
2022-05-24 07:05:08 +02:00
committed by GitHub
parent 7bed2ef2ed
commit bda9fa31bd
8 changed files with 110 additions and 16 deletions

View File

@@ -778,3 +778,33 @@ index 3173b3b..88b66ed 100644
--
2.28.0
From 719b6b5d78c02d7eb025ec52d1e71d08c596cce5 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 23 May 2022 14:53:35 +0200
Subject: Fix search paths for tcl/tk
diff --git a/configure.ac b/configure.ac
index b0cca04..6b708fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3077,8 +3077,13 @@ then
then
AC_MSG_ERROR([use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither])
fi
- TCLTK_INCLUDES=""
- TCLTK_LIBS=""
+ if test -n "$PKG_CONFIG" && "$PKG_CONFIG" --exists tcl tk; then
+ TCLTK_INCLUDES="`"$PKG_CONFIG" tcl tk --cflags-only-I 2>/dev/null`"
+ TCLTK_LIBS="`"$PKG_CONFIG" tcl tk --libs 2>/dev/null`"
+ else
+ TCLTK_INCLUDES=""
+ TCLTK_LIBS=""
+ fi
else
TCLTK_INCLUDES="$with_tcltk_includes"
TCLTK_LIBS="$with_tcltk_libs"
--
2.36.1