${PREFIX}/include is more correct for FreeBSD. PREFIX is a make(1) variable, however, and I don't know how that info gets easily passed to mkmf.

It doesn't.  mkmf generates the makefile that is run by Make.

I think you could probably do something like:

incpath = (path + ENV['PATH']).flatten.collect{|dir| File.expand_path(File.join(File.expand_path(dir), '../include')))}

I'm not wild about including the ENV['PATH'] bit (security), but the rest should nab most corner cases for users. -sc

Not a bad idea. I wonder if mkmf does any of that already. I'm trying hard to avoid the whole subject....

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to