]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115119: Fix libmpdec detection when pkg-config files are missing (#150502)
authorstratakis <cstratak@redhat.com>
Tue, 2 Jun 2026 09:43:30 +0000 (11:43 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 09:43:30 +0000 (11:43 +0200)
commit025cc26b406f017505dbed8af7820106d1ff2885
treec99accb44da0c266509f577095f7e64de7bb72a5
parent991224b1e8311c85f198f6dd8208bf8cff7fc26f
gh-115119: Fix libmpdec detection when pkg-config files are missing (#150502)

The fallback for systems with no mpdecimal .pc files used AC_LINK_IFELSE
directly, which relied on LIBMPDEC_LIBS being set. On failure this was empty
so the link test ran without -lmpdec.

Use AC_CHECK_HEADER and AC_CHECK_LIB instead.
Misc/NEWS.d/next/Build/2026-05-27-14-28-36.gh-issue-115119.wotFWh.rst [new file with mode: 0644]
configure
configure.ac