From: ts Date: 2002-03-18T22:35:55+09:00 Subject: Re: Extconf.rb: how to add specific include/lib dirs? >>>>> "P" == Paul E C Melis writes: P> Is it possible to specify a complete include or lib directory that is needed P> to build an extension, and I don't mean the --with--dir P> or --with--include ways. P> These assume that include and library files will always reside in an P> /include and /lib subdirectory respectively. No, this is not true pigeon% cat extconf.rb require 'mkmf' $CPPFLAGS += " -I#{idir}" if idir = with_config('tt-include-dir') create_makefile('tt') pigeon% pigeon% ruby extconf.rb --with-tt-include-dir=/tmp creating Makefile pigeon% pigeon% grep -- -I Makefile CPPFLAGS = -I. -I$(hdrdir) -I$(srcdir) -I$(prefix)/include -I/tmp pigeon% Guy Decoux