Top Level Namespace
Defined Under Namespace
Modules: EventMachine, Evma, JavaFields Classes: BufferedTokenizer, IO, StringIO, TestConnection
Constant Summary collapse
- EM =
Save everyone some typing.
EventMachine
- GNU_CHAIN =
true
- OS_WIN32 =
true
- OS_UNIX =
true
Instance Method Summary collapse
- #add_define(name) ⇒ Object
- #check_heads(heads = [], fatal = false) ⇒ Object
- #check_libs(libs = [], fatal = false) ⇒ Object
-
#manual_ssl_config ⇒ Object
OpenSSL:.
Instance Method Details
#add_define(name) ⇒ Object
11 12 13 |
# File 'ext/extconf.rb', line 11 def add_define(name) $defs.push("-D#{name}") end |
#check_heads(heads = [], fatal = false) ⇒ Object
7 8 9 |
# File 'ext/extconf.rb', line 7 def check_heads heads = [], fatal = false heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)} end |
#check_libs(libs = [], fatal = false) ⇒ Object
3 4 5 |
# File 'ext/extconf.rb', line 3 def check_libs libs = [], fatal = false libs.all? { |lib| have_library(lib) || (abort("could not find library: #{lib}") if fatal) } end |
#manual_ssl_config ⇒ Object
OpenSSL:
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'ext/extconf.rb', line 110 def manual_ssl_config ssl_libs_heads_args = { :unix => [%w[ssl crypto], %w[openssl/ssl.h openssl/err.h]], :darwin => [%w[ssl crypto C], %w[openssl/ssl.h openssl/err.h]], # openbsd and linux: :crypto_hack => [%w[crypto ssl crypto], %w[openssl/ssl.h openssl/err.h]], :mswin => [%w[ssleay32 libeay32], %w[openssl/ssl.h openssl/err.h]], } dc_flags = ['ssl'] dc_flags += ["#{ENV['OPENSSL']}/include", ENV['OPENSSL']] if /linux/ =~ RUBY_PLATFORM libs, heads = case RUBY_PLATFORM when /mswin/ ; ssl_libs_heads_args[:mswin] when /mingw/ ; ssl_libs_heads_args[:unix] when /darwin/ ; ssl_libs_heads_args[:darwin] when /openbsd/ ; ssl_libs_heads_args[:crypto_hack] when /linux/ ; ssl_libs_heads_args[:crypto_hack] else ssl_libs_heads_args[:unix] end dir_config(*dc_flags) check_libs(libs) and check_heads(heads) end |