bpo-42603: Use pkg-config to get Tcl/Tk paths for tkinter.
This commit is contained in:
parent
550e4673be
commit
83372ca3eb
|
@ -0,0 +1,3 @@
|
|||
When no values are supplied for the ``--with-tcltk-*`` configuration flags,
|
||||
use pkg-config to detect the location of Tcl/Tk headers and libraries, used
|
||||
to build tkinter.
|
|
@ -10697,8 +10697,13 @@ then
|
|||
then
|
||||
as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5
|
||||
fi
|
||||
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"
|
||||
|
|
|
@ -3157,8 +3157,13 @@ then
|
|||
then
|
||||
AC_MSG_ERROR([use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither])
|
||||
fi
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue