#!/usr/bin/ruby -w # See the COPYING file for copyright and distribution information require "mkmf" $LIBPATH.push(Config::CONFIG['libdir']) def crash(str) print(" extconf failure: %s\n", str) exit 1 end #dir_config('xml2') unless have_library('m', 'atan') crash('need libm') end unless have_library("z", "inflate") crash("need zlib") else $defs.push('-DHAVE_ZLIB_H') end unless have_library("xml2", "xmlXPtrNewRange") crash(<