[Bug #19189] Fallback to the default "pkg-config"

This commit is contained in:
Nobuyoshi Nakada 2022-12-07 22:14:44 +09:00
parent d20bd06a97
commit 613fca0148
Notes: git 2022-12-15 02:01:07 +00:00

View File

@ -1866,7 +1866,7 @@ SRC
if pkgconfig = with_config("#{pkg}-config") and find_executable0(pkgconfig)
# if and only if package specific config command is given
elsif ($PKGCONFIG ||=
(pkgconfig = with_config("pkg-config", RbConfig::CONFIG["PKG_CONFIG"])) &&
(pkgconfig = with_config("pkg-config") {config_string("PKG_CONFIG") || "pkg-config"}) &&
find_executable0(pkgconfig) && pkgconfig) and
xsystem([*envs, $PKGCONFIG, "--exists", pkg])
# default to pkg-config command