Sha256: 748a383ca8fe8563e11c3afb8b278ebdea10ebaf2e3b5c28138ea7fa41c11d6c

Contents?: true

Size: 860 Bytes

Versions: 9

Compression:

Stored size: 860 Bytes

Contents

# ext/convolver/extconf.rb
require "mkmf"
require "rubygems"

# Following code stolen shamelessly from fftw3 gem:
narray_dir = File.dirname(Gem.find_files("narray.h").first) rescue $sitearchdir
dir_config('narray', narray_dir, narray_dir)

if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then
   print <<-EOS
   ** configure error **
   Header narray.h or narray_config.h is not found. If you have these files in
   /narraydir/include, try the following:

   % ruby extconf.rb --with-narray-include=/narraydir/include

EOS
   exit(-1)
end

# This also stolen from fftw3 gem (and not confirmed for Windows platforms - please let me know if it works!)
if /cygwin|mingw/ =~ RUBY_PLATFORM
   have_library("narray") || raise("ERROR: narray library is not found")
end

$CFLAGS << ' -O3 -funroll-loops'
create_makefile( 'convolver/convolver' )

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
convolver-light-0.3.1 ext/convolver/extconf.rb
convolver-0.3.1 ext/convolver/extconf.rb
convolver-0.3.0 ext/convolver/extconf.rb
convolver-0.2.0 ext/convolver/extconf.rb
convolver-0.1.2 ext/convolver/extconf.rb
convolver-0.1.1 ext/convolver/extconf.rb
convolver-0.1.0 ext/convolver/extconf.rb
convolver-0.0.2 ext/convolver/extconf.rb
convolver-0.0.1 ext/convolver/extconf.rb