summaryrefslogtreecommitdiff
path: root/m4/ax_python.m4
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2022-11-09 20:24:45 +0100
committerAlexander Kanavin <alex@linutronix.de>2022-11-09 20:31:54 +0100
commita82d704b1ec6ece47b01d12e0e067d4b62b10894 (patch)
tree02210b324592fc6076a01a60793ba08ddb6a774f /m4/ax_python.m4
parent8979fb74df6c11f22fc14691c7ce5e82b7017791 (diff)
m4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pc
Only the embed version includes necessary linker flags to link with libpython. Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Diffstat (limited to 'm4/ax_python.m4')
-rw-r--r--m4/ax_python.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
index 91d12b99b4..f5e603b96b 100644
--- a/m4/ax_python.m4
+++ b/m4/ax_python.m4
@@ -206,7 +206,7 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
AC_MSG_CHECKING([whether pkg-config python-${tryver} is available])
unset PYTHON_CFLAGS
unset PYTHON_LIBS
- pkg="python-${tryver}"
+ pkg="python-${tryver}-embed"
pkg="${pkg%-}"
_PKG_CONFIG([PYTHON_CFLAGS], [cflags], [${pkg}])
_PKG_CONFIG([PYTHON_LIBS], [libs], [${pkg}])