summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-07 12:46:09 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-07 12:46:09 +0900
commit7c211a43c144cf8d04f8f1605beb6ed1d0ed3d1c (patch)
tree8be3bb7933498bddde5678bf5412fb25fbab9b43 /ext
parent447d372dcd46082ae0fdf87abead8da327177af4 (diff)
downloadpsych-7c211a43c144cf8d04f8f1605beb6ed1d0ed3d1c.tar.gz
Removed the related condition of --enable-bundled-libyaml
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/extconf.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index f20d9a2..2417356 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -15,13 +15,8 @@ unless yaml_source # default to pre-installed libyaml
end
end
-if yaml_source == true
- # search the latest libyaml source under $srcdir
- yaml_source = Dir.glob("#{$srcdir}/yaml{,-*}/").max_by {|n| File.basename(n).scan(/\d+/).map(&:to_i)}
-elsif yaml_source
- yaml_source = yaml_source.gsub(/\$\((\w+)\)|\$\{(\w+)\}/) {ENV[$1||$2]}
-end
if yaml_source
+ yaml_source = yaml_source.gsub(/\$\((\w+)\)|\$\{(\w+)\}/) {ENV[$1||$2]}
yaml_source = yaml_source.chomp("/")
yaml_configure = "#{File.expand_path(yaml_source)}/configure"
unless File.exist?(yaml_configure)