1 2 3 4 5 6 7 8
require 'mkmf' dir_config("iconv") if have_header("iconv.h") have_library("iconv") create_makefile("iconv") end