Merge pull request #12298 from kanavin/fix-python-config

m4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pc
This commit is contained in:
Donald Sharp 2022-11-18 07:43:28 -05:00 committed by GitHub
commit 298748af21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}])