summaryrefslogtreecommitdiffstats
path: root/ext/tk/tkutil
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-22 07:06:11 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-22 07:06:11 +0000
commitee95c5d2f4355f03208d38c7cd72e3cc7a5b6d0e (patch)
tree68417eab581340514628e52fab6bf55cc103b07f /ext/tk/tkutil
parent9b37a34f8a2e2c93d8bda50867d012e8fc8cc713 (diff)
downloadruby-ee95c5d2f4355f03208d38c7cd72e3cc7a5b6d0e.tar.gz
ruby-ee95c5d2f4355f03208d38c7cd72e3cc7a5b6d0e.tar.xz
ruby-ee95c5d2f4355f03208d38c7cd72e3cc7a5b6d0e.zip
* ext/tk/extconf.rb: support --with-X11/--without-X11 option.
* ext/tk/README.tcltklib: add description about --with-X11-* option [ruby-talk:225166] and --with-X11/--without-X11 option. * ext/tk/tkutil/extconf.rb: able to be called manually [ruby-talk:225950]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/tkutil')
-rw-r--r--ext/tk/tkutil/extconf.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/tk/tkutil/extconf.rb b/ext/tk/tkutil/extconf.rb
index e3aa00a4b..dd00d5d53 100644
--- a/ext/tk/tkutil/extconf.rb
+++ b/ext/tk/tkutil/extconf.rb
@@ -1,4 +1,11 @@
-if compiled?('tk')
+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'
create_makefile('tkutil')
end