------art_21688_13770866.1151593985597
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Kevin,

On 6/28/06, Kevin Clark <kevin.clark / gmail.com> wrote:
>
>
> **Please do try mkrf with your extensions. Please do send feedback.**
>

I was able to compile teius, the libxml wrapper, like so:

require 'mkrf'
Mkrf::Generator.new('../lib/teius.so','teius.c') do |g|
 g.include_header('libxml/parser.h','/usr/include/libxml2/')
 g.include_header('libxml/tree.h','/usr/include/libxml2/')
 g.include_header('libxml/xpath.h','/usr/include/libxml2/')
 g.include_library('xml2')
 g.include_library('xslt')
end

rake

Great!  One thing, though: the 'path' in 'include_header' has to have a '/'
at the end, or else it's not added to the INCLUDES.  This is error-prone and
inconsistent to how includes are written on the command-line.

It did better than the standard 'gem install teius', which did not find the
includes properly on my system (the Makefile has '/usr/include/libxml').

Nice tool!

- Dimitri

------art_21688_13770866.1151593985597--