From a876de5a82b8a60ccd3e83563b5f3b7064db14b8 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 26 Mar 2022 07:37:39 +0900 Subject: Added condition for macOS homebrew MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David Rodríguez --- ext/psych/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 857f8e6..7da7376 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -7,7 +7,7 @@ require 'fileutils' dir_config 'libyaml' -if enable_config("bundled-libyaml", false) || !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version')) +if enable_config("bundled-libyaml", false) || !pkg_config('yaml-0.1') && !(find_header('yaml.h') && find_library('yaml', 'yaml_get_version')) # Embed libyaml since we could not find it. $VPATH << "$(srcdir)/yaml" -- cgit v1.2.1