require 'rbconfig' require 'fileutils' if ENV["USE_SYSTEM_LIBYAJL2"] File.open("Makefile", "w+") do |f| f.write <make.out 2>&1") || raise # rubinius doesn't like the output this generates # ...so we can hack up what install does later and copy over the include files # not sure why ruby windows produces .so's instead of .dll's if windows? FileUtils.mv "libyajl.so", "yajl.dll" end File.open("Makefile", "w+") do |f| f.write <