2010-03-28 21:49:37 +00:00
|
|
|
require 'mkmf'
|
|
|
|
|
|
|
|
# :stopdoc:
|
|
|
|
|
2010-03-29 23:57:43 +00:00
|
|
|
dir_config 'libyaml'
|
2010-03-28 21:49:37 +00:00
|
|
|
|
|
|
|
def asplode missing
|
2010-03-29 23:57:43 +00:00
|
|
|
abort "#{missing} is missing. Please install libyaml."
|
2010-03-28 21:49:37 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
asplode('yaml.h') unless find_header 'yaml.h'
|
|
|
|
asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'
|
|
|
|
|
2010-03-30 12:21:55 +00:00
|
|
|
create_makefile 'psych'
|
2010-03-28 21:49:37 +00:00
|
|
|
|
|
|
|
# :startdoc:
|