Top Level Namespace
- Includes:
- PostgresPR
Defined Under Namespace
Modules: EventMachine, Evma Classes: BufferedTokenizer, IO, StringIO
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
$Id$.
-
#manual_ssl_config ⇒ Object
OpenSSL:.
Instance Method Details
#add_define(name) ⇒ Object
29 30 31 |
# File 'ext/extconf.rb', line 29 def add_define(name) $defs.push("-D#{name}") end |
#check_heads(heads = [], fatal = false) ⇒ Object
25 26 27 |
# File 'ext/extconf.rb', line 25 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
$Id$
Copyright © 2006-07 by Francis Cianfrocca. All Rights Reserved. Gmail: blackhedd
This program is free software; you can redistribute it and/or modify it under the terms of either: 1) the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version; or 2) Ruby’s License.
See the file COPYING for complete licensing information.
extconf.rb for Ruby/EventMachine We have to munge LDSHARED because this code needs a C++ link.
21 22 23 |
# File 'ext/extconf.rb', line 21 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:
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'ext/extconf.rb', line 119 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 |