It should just use the xml2-config that's in the path and the output
just requires a chop:
> xml2-config --cflags
-I/opt/local/include/libxml2
> xml2-config --libs
-L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm
I don't know mkmf that well, but I can take a look if I get some time.
David
On Dec 11, 2008, at 2:42 PM, Charlie Savage wrote:
Would it be possible to use xml2-config in extconf.rb? I see
there's a --with-xml2-dir option, but xml2-config already provides
LIBS and CFLAGS values.
That's an interesting idea. Two issues come to mind:
* Finding xml2-config
* Parsing its output
Second should be easy, maybe the first also. And if we don't find
it, we could always fallback to what we do now.
Want to give it a try and put together a patch?
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel