Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: part2
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (32 sloc) 0.966 kB
ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/
require 'mkmf'
LIBDIR = Config::CONFIG['libdir']
INCLUDEDIR = Config::CONFIG['includedir']
HEADER_DIRS = [
# First search /opt/local for macports
'/opt/local/include',
# Then search /usr/local for people that installed from source
'/usr/local/include',
# Check the ruby install locations
INCLUDEDIR,
# Finally fall back to /usr
'/usr/include',
]
LIB_DIRS = [
# First search /opt/local for macports
'/opt/local/lib',
# Then search /usr/local for people that installed from source
'/usr/local/lib',
# Check the ruby install locations
LIBDIR,
# Finally fall back to /usr
'/usr/lib',
]
dir_config('stree', HEADER_DIRS, LIB_DIRS)
unless find_header('stree/lst_string.h')
abort "libstree is missing. please install libstree"
end
unless find_library('stree', 'lst_stree_free')
abort "libstree is missing. please install libstree"
end
create_makefile('stree/stree')
Jump to Line
Something went wrong with that request. Please try again.