From: nobu.nokada@... Date: 2002-04-04T10:01:31+09:00 Subject: Re: mkmf.rb Hi, At Thu, 4 Apr 2002 09:02:20 +0900, Tobias DiPasquale wrote: > >> I tracked down the problem with the Tk on my Debian box. It > >> was never getting built when I built Ruby 1.6.7 from source because the > >> have_header("tcl.h") test failed. However, I __DO__ have this header > >> file. It is in /usr/include/tcl8.3. How do I pass this into either the > >> configure script or the ext/extmk.rb script to get it to recognize the > >> location of the header files? Any ideas? TIA! > > > > Try --with-tcl-include=/usr/include/tcl8.3 for configure. > > > > Thanks! That worked like a charm! BTW, that option is not listed in the > configure script options. Any reason for that? `configure' knows nothing about those options but just stores them as given, and only extmk.rb and extconf.rb's know about them. Followings are all of *_config options used in 1.7 standard extension libraries. They should be documented somewhere. $ ruby -C ~/src/ruby/1.7 -e 'Dir["ext/**/extconf.rb"].sort.each {|n| (l=open(n){|f|f.grep(/\B_config\b/)})[0] and print n,([":\n"]+l).join("\t") }' ext/curses/extconf.rb: dir_config('curses') dir_config('ncurses') dir_config('termcap') ext/dbm/extconf.rb: dir_config("dbm") dblib = with_config("dbm-type", nil) ext/dl/extconf.rb: $with_type_char = enable_config("type-char", $with_type_char) $with_type_short = enable_config("type-short", $with_type_short) $with_type_float = enable_config("type-float", $with_type_float) $with_asm = enable_config("asm", $with_asm) args = with_config("args") ext/gdbm/extconf.rb: dir_config("gdbm") ext/iconv/extconf.rb: dir_config("iconv") ext/readline/extconf.rb: dir_config("readline") ext/socket/extconf.rb: if enable_config("ipv6", false) $ipv6lib=with_config("ipv6-lib", nil) $ipv6libdir=with_config("ipv6-libdir", nil) if not enable_config("wide-getaddrinfo", false) and try_run(<