summaryrefslogtreecommitdiff
path: root/ext/tk/tkutil/extconf.rb
blob: 51f775619cf090789d4258ca912e9612a1f1bfe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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")
  create_makefile('tkutil')
end