Check if the found pkg-config is usable actually

This commit is contained in:
Nobuyoshi Nakada 2025-08-05 21:34:03 +09:00 committed by Nobuyoshi Nakada
parent 8e9ea4c202
commit 79d8a3159f

View file

@ -3,7 +3,9 @@ require_relative 'base'
require 'shellwords'
class TestMkmfPkgConfig < TestMkmf
PKG_CONFIG = config_string("PKG_CONFIG") {|path| find_executable0(path)}
PKG_CONFIG = config_string("PKG_CONFIG") do |path|
find_executable0(path, "--version") {$?.success?}
end
def setup
super