diff options
-rw-r--r-- | ext/psych/extconf.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb index 7da73760e3..0e4fb86a0b 100644 --- a/ext/psych/extconf.rb +++ b/ext/psych/extconf.rb @@ -10,6 +10,11 @@ dir_config 'libyaml' 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. + unless File.exist?("#{$srcdir}/yaml") + puts "failed to build psych because no libyaml is available" + exit + end + $VPATH << "$(srcdir)/yaml" $INCFLAGS << " -I$(srcdir)/yaml" |