File: extconf.rb

package info (click to toggle)
mecab 0.996-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,576 kB
  • sloc: cpp: 165,232; sh: 11,439; makefile: 206; perl: 177; ansic: 148; ruby: 57; python: 55; java: 48
file content (15 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'mkmf'

# mecab_config = with_config('mecab-config', 'mecab-config')
# use_mecab_config = enable_config('mecab-config')
# `mecab-config --libs-only-l`.chomp.split.each { | lib |
#   have_library(lib)
# }
# $CFLAGS += ' ' + `#{mecab_config} --cflags`.chomp
# have_header('mecab.h') && create_makefile('MeCab')

$INCFLAGS += ' -I../src'
$LDFLAGS += ' -L../src/.libs'
have_library('mecab')
have_library('stdc++')
have_header('mecab.h') && create_makefile('MeCab')