diff options
Diffstat (limited to 'ruby_1_9_3/ext/tk/tkutil/extconf.rb')
-rw-r--r-- | ruby_1_9_3/ext/tk/tkutil/extconf.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ruby_1_9_3/ext/tk/tkutil/extconf.rb b/ruby_1_9_3/ext/tk/tkutil/extconf.rb new file mode 100644 index 0000000000..57de973c0a --- /dev/null +++ b/ruby_1_9_3/ext/tk/tkutil/extconf.rb @@ -0,0 +1,18 @@ +begin + has_tk = compiled?('tk') +rescue NoMethodError + # Probably, called manually (NOT from 'extmk.rb'). Force to make Makefile. + has_tk = true +end + +if has_tk + require 'mkmf' + + have_func("rb_obj_instance_exec", "ruby.h") + have_func("rb_obj_untrust", "ruby.h") + have_func("rb_obj_taint", "ruby.h") + have_func("rb_sym_to_s", "ruby.h") + have_func("strndup", "string.h") + + create_makefile('tkutil') +end |