summaryrefslogtreecommitdiff
path: root/ext/tkutil/extconf.rb
blob: b61a7ac01c8fd0435880067056a619a273f29906 (plain)
1
2
3
4
5
6
7
8
9
10
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