From: Albert Wagner Date: 2002-04-04T10:51:45+09:00 Subject: Re: mkmf.rb On Wednesday 03 April 2002 07:01 pm, you wrote: > 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. > Just curious; How is the typical newbie, which I suppose still includes me, supposed to translate the following *_config options into the need for: --with-tcl-include=/usr/include/tcl8.3 for configure. > $ 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(< case with_config("lookup-order-hack", "UNSPEC") > if ENV["SOCKS_SERVER"] or enable_config("socks", false) > ext/tcltklib/extconf.rb: > dir_config("tk") > dir_config("tcl") > dir_config("X11") > tklib = with_config("tklib") > tcllib = with_config("tcllib") > stubs = enable_config("tcltk_stubs") || with_config("tcltk_stubs") -- Quantum Mechanics: The dreams stuff is made of