summaryrefslogtreecommitdiff
path: root/ext/psych/extconf.rb
blob: d789b35e5c802cafbbe46ee0a072b20992d6efb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'mkmf'

# :stopdoc:

dir_config 'libyaml'

def asplode missing
  abort "#{missing} is missing. Please install libyaml."
end

asplode('yaml.h')  unless find_header  'yaml.h'
asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'

create_makefile 'psych/psych'

# :startdoc: