Sha256: 933f1bbc200c1aa8c41ac1a8ec29110531b00b135002247060ee80f3df7df670
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
# Generates a makefile for buiding the extension. #-- # Copyright 2006 Suraj N. Kurapati # See the file named LICENSE for details. require 'mkmf' # check for POSIX threads library hasPthread = have_library('pthread', 'pthread_create') # check for ruby library require 'rbconfig' rubyLibArgs = Config::CONFIG.values.grep(/^-lruby/) rubyLibNames = rubyLibArgs.map {|a| a.sub /^-l/, ''} rubyLibNames.unshift 'ruby' # try most common name first rubyLibNames.uniq! hasRuby = rubyLibNames.inject(false) do |verdict, name| verdict ||= have_library(name, 'ruby_init') end hasPthread && hasRuby && create_makefile('ruby-vpi')
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-18.0.1 | ext/extconf.rb |
ruby-vpi-19.0.0 | ext/extconf.rb |
ruby-vpi-18.0.2 | ext/extconf.rb |
ruby-vpi-20.0.0 | ext/extconf.rb |