Sha256: 31734eb03fb9c4d996ae1e595b13bcfe44b0e6ba87b02c44db6dd04e3122160f

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require 'mkmf'

# $CFLAGS << " -save-temps -ggdb3 "
# $LDFLAGS << " -lstdc++ "

# find_header('ruby.h')
# find_library('svm', 'svm_train', '/opt/local/lib/', '/usr/lib/') || raise("svm library not found.")
# find_header('svm.h', "/opt/local/include/", "/usr/include/libsvm-2.0/libsvm/")
# create_makefile('libsvm_ext')

LIBDIR = Config::CONFIG['libdir']
INCLUDEDIR = Config::CONFIG['includedir']

HEADER_DIRS = [
  # First search /opt/local for macports
  '/opt/local/include',

  # Then search /usr/local for people that installed from source
  '/usr/local/include',

  # Check the ruby install locations
  INCLUDEDIR,

  # Finally fall back to /usr
  '/usr/include',
]

LIB_DIRS = [
  # First search /opt/local for macports
  '/opt/local/lib',

  # Then search /usr/local for people that installed from source
  '/usr/local/lib',

  # Check the ruby install locations
  LIBDIR,

  # Finally fall back to /usr
  '/usr/lib',
]

dir_config('rb-libsvm',HEADER_DIRS,LIB_DIRS)

# Don't think I need to search the dirs for the header file

create_makefile('rb-libsvm/libsvm')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rb-libsvm-1.0.1 ext/rb-libsvm/extconf.rb