Sha256: 5cae48c9ebadebe47678cef62b3505876f8651f1d6711d2779f8f0165890f5e6
Contents?: true
Size: 648 Bytes
Versions: 7
Compression:
Stored size: 648 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") end end
Version data entries
7 entries across 7 versions & 1 rubygems