summaryrefslogtreecommitdiff
path: root/nonprism/pidgin/pidgin-python-3.8.patch
blob: 06063ad5650465c1c2d7ce3d7ade87ca0dff8032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/configure.ac b/configure.ac
index d916891..d8c39a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1565,7 +1565,7 @@ if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ;
 	AC_MSG_CHECKING(for Python compile flags)
 	if test -f ${PYTHON}-config; then
 		PY_CFLAGS=`${PYTHON}-config --includes`
-		PY_LIBS=`${PYTHON}-config --libs`
+		PY_LIBS=`${PYTHON}-config --libs --embed` || PY_LIBS=`${PYTHON}-config --libs`
 		AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
 		AC_MSG_RESULT(ok)
 	else