require 'mkmf'

dir_config('mecab')
unless have_header('mecab.h') && have_library('mecab', 'mecab_new')
  abort "header files and library of mecab are required"
end

have_func('mecab_model_new', %[mecab.h])

create_makefile('mecaby')

require 'mkmf'

dir_config('mecab')
unless have_header('mecab.h') && have_library('mecab', 'mecab_new')
  abort "header files and library of mecab are required"
end

have_func('mecab_model_new', %[mecab.h])

create_makefile('mecaby/mecaby')

Fix the path of extension library file
Fix the path of extension library file
