Sha256: 94605224e56b6dfb391f1e63f86c0d5665026b1b526de5916da2cf495fe87cbd

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

require 'mkmf'

$CFLAGS.gsub! /-O\d/, ''

if ENV['DEBUG']
  puts "setting debug flags"
  $CFLAGS << " -O0 -ggdb -DHAVE_DEBUG"
else
  $CFLAGS << " -O3"
end

find_library(*['sphinxclient', 'sphinx_create', '/opt/sphinx'].compact) or
find_library(*['sphinxclient', 'sphinx_create', dir_config('libsphinxclient').last].compact) or
  raise "shared library 'libsphinxclient' not found"

find_header(*['sphinxclient.h', '/opt/sphinx'].compact) or
find_header(*['sphinxclient.h', dir_config('libsphinxclient').first].compact) or
  raise "header file 'sphinxclient.h' not found"

create_makefile 'rlibsphinxclient'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kpumuk-rlibsphinxclient-0.2.0 ext/extconf.rb