This commit is contained in:
Rmys
2020-04-07 10:21:44 +03:00
parent 33252647a1
commit a612c0b1dd
3 changed files with 69 additions and 1 deletions
@@ -0,0 +1,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