#!/usr/local/bin/ruby -w # $Id: extconf.rb 43 2007-12-07 12:38:59Z transami $ # # See the LICENSE file for copyright and distribution information require 'mkmf' $preload = nil $LIBPATH.push(Config::CONFIG['libdir']) def crash(str) print(" extconf failure: %s\n", str) exit 1 end require 'rubygems' gem_specs = Gem::SourceIndex.from_installed_gems.search('libxml-ruby') if gem_specs.empty? crash(<