summaryrefslogtreecommitdiff
path: root/ext/tkutil/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tkutil/extconf.rb')
-rw-r--r--ext/tkutil/extconf.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/tkutil/extconf.rb b/ext/tkutil/extconf.rb
new file mode 100644
index 0000000000..b61a7ac01c
--- /dev/null
+++ b/ext/tkutil/extconf.rb
@@ -0,0 +1,11 @@
+for dir in ENV['PATH'].split(':')
+ if File.exists? "#{dir}/wish"
+ $CFLAGS = $CFLAGS + " -DWISHPATH=" + "'\"#{dir}/wish\"'"
+ have_wish = TRUE
+ break
+ end
+end
+
+if have_wish and have_func('pipe')
+ create_makefile("tkutil")
+end