Sha256: 27bf9a679e049c6968d31e43c7c5357a23cd13f76be2ee1fc8220b82eea8c839

Contents?: true

Size: 672 Bytes

Versions: 3

Compression:

Stored size: 672 Bytes

Contents

require 'mkmf'
require "extconf_task/mkmf_utils"

i = 0
while i < ARGV.size
  case ARGV[i]
  when '--ldflags'
    if args = ARGV[i+1]
      i += 1
      $LDFLAGS += " #{args}"
    end
  else
    raise "Invalid option: #{ARGV[i]}"
  end
  i += 1
end

dir_config('mpfr')
dir_config('mpfi')
dir_config('gmp')

if have_header('mpfr.h') && have_library('mpfr') && have_header('mpfi.h') && have_library('mpfi') && have_header('gmp.h') && have_library('gmp')
  find_header_in_gem("ruby_mpfr.h", "ruby-mpfr")
  find_header_in_gem("ruby_mpfr_matrix.h", "ruby-mpfr")
  find_header("ruby_mpfi.h", File.join(File.dirname(__FILE__), "../../mpfi"))
  create_makefile("mpfi/matrix")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-mpfi-0.0.10 ext/mpfi_matrix/mpfi/extconf.rb
ruby-mpfi-0.0.9 ext/mpfi_matrix/mpfi/extconf.rb
ruby-mpfi-0.0.8 ext/mpfi_matrix/mpfi/extconf.rb