public
Description: ruby libxml library targetting speed and ease of use. provides an hpricot-like interface to xml
Homepage: http://trac.hasno.info/fastxml
Clone URL: git://github.com/segfault/fastxml.git
fastxml / ext / extconf.rb
100644 19 lines (15 sloc) 0.895 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# mkmf config for the FastXml ruby extension
# Please see the LICENSE file for copyright, licensing and distribution information
 
# FastXml depends on libxml and libxslt
 
require 'mkmf'
ext_name = 'fastxml'
dir_config ext_name
find_header( 'libxml/tree.h', "/usr/include/libxml2", "/usr/local/include/libxml2", "/opt/local/include/libxml2" )
find_header( 'libxslt/xslt.h', "/usr/include/libxslt", "/usr/local/include/libxslt", "/opt/local/include/libxslt" )
find_library( 'xml2', "xmlInitParser", "/usr/lib", "/usr/local/lib", "/opt/local/lib" )
have_library( 'xml2', 'xmlInitParser', 'libxml/parser.h' )
find_library( 'xslt', "xmlInitParser", "/usr/lib", "/usr/local/lib", "/opt/local/lib" )
have_library( 'xslt', 'xsltParseStylesheetFile', 'libxslt/xslt.h' )
$LDFLAGS << ' %s' % (`xml2-config --libs`).chomp
$CFLAGS << ' -Wall %s' % (`xml2-config --cflags`).chomp
 
create_makefile ext_name