require 'mkmf'
require 'rbconfig'
require 'fileutils'

# work around ruby 2.0 p0 bug
FileUtils.mkdir_p(File.expand_path('../../../lib/fast_stack',__FILE__))

have_func('backtrace_symbols_fd')
have_func('CreateTimerQueueTimer')
have_library('winmm', 'timeBeginPeriod')


create_makefile('fast_stack/fast_stack')
