From ee95c5d2f4355f03208d38c7cd72e3cc7a5b6d0e Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 22 Nov 2006 07:06:11 +0000 Subject: * 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 --- ext/tk/tkutil/extconf.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ext/tk/tkutil') 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 -- cgit