Sha256: 59bd05212a72e4f86460bf43541e102f70c6d52adb658abb06d752f3bfbe28f8
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
require 'mkmf' 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 $CFLAGS += " -Wall" REQUIRE_VERSION = 3 dir_config("mpfr") dir_config("gmp") if have_header('mpfr.h') && have_library('mpfr') && have_header('gmp.h') && have_library('gmp') if have_macro('MPFR_VERSION_MAJOR', 'mpfr.h') do |src| src + <<SRC #if MPFR_VERSION_MAJOR < #{REQUIRE_VERSION} # error >>>>>> MPFR_VERSION_MAJOR requires larger than #{REQUIRE_VERSION} <<<<<< #endif SRC end create_makefile("mpfr/matrix") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-mpfr-0.0.13 | ext/mpfr_matrix/mpfr/extconf.rb |
ruby-mpfr-0.0.12 | ext/mpfr_matrix/mpfr/extconf.rb |
ruby-mpfr-0.0.11 | ext/mpfr_matrix/mpfr/extconf.rb |