rbconfig.rb

The rbconfig.rb file for the ruby version I'm using - Julius Caesar, 12/02/2012 02:58 AM

Download (8.4 KB)

 
1

    
2
# This file was created by mkconfig.rb when ruby was built.  Any
3
# changes made to this file will be lost the next time ruby is built.
4

    
5
module RbConfig
6
  RUBY_VERSION == "1.9.3" or
7
    raise "ruby lib version (1.9.3) doesn't match executable version (#{RUBY_VERSION})"
8

    
9
  TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.9.1/x86_64-linux")
10
  DESTDIR = '' unless defined? DESTDIR
11
  CONFIG = {}
12
  CONFIG["DESTDIR"] = DESTDIR
13
  CONFIG["MAJOR"] = "1"
14
  CONFIG["MINOR"] = "9"
15
  CONFIG["TEENY"] = "1"
16
  CONFIG["PATCHLEVEL"] = "327"
17
  CONFIG["INSTALL"] = '/usr/bin/install -c'
18
  CONFIG["EXEEXT"] = ""
19
  CONFIG["prefix"] = (TOPDIR || DESTDIR + "/usr/local/ruby/1.9.3-p327")
20
  CONFIG["ruby_install_name"] = "ruby"
21
  CONFIG["RUBY_INSTALL_NAME"] = "ruby"
22
  CONFIG["RUBY_SO_NAME"] = "ruby"
23
  CONFIG["exec"] = "exec"
24
  CONFIG["ruby_pc"] = "ruby-1.9.pc"
25
  CONFIG["PACKAGE"] = "ruby"
26
  CONFIG["BUILTIN_TRANSSRCS"] = " newline.c"
27
  CONFIG["USE_RUBYGEMS"] = "YES"
28
  CONFIG["MANTYPE"] = "doc"
29
  CONFIG["NROFF"] = "/usr/bin/nroff"
30
  CONFIG["vendorhdrdir"] = "$(rubyhdrdir)/vendor_ruby"
31
  CONFIG["sitehdrdir"] = "$(rubyhdrdir)/site_ruby"
32
  CONFIG["rubyhdrdir"] = "$(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)"
33
  CONFIG["UNIVERSAL_INTS"] = ""
34
  CONFIG["UNIVERSAL_ARCHNAMES"] = ""
35
  CONFIG["configure_args"] = " '--prefix=/usr/local/ruby/1.9.3-p327'"
36
  CONFIG["vendordir"] = "$(rubylibprefix)/vendor_ruby"
37
  CONFIG["sitedir"] = "$(rubylibprefix)/site_ruby"
38
  CONFIG["ruby_version"] = "1.9.1"
39
  CONFIG["sitearch"] = "$(arch)"
40
  CONFIG["arch"] = "x86_64-linux"
41
  CONFIG["RI_BASE_NAME"] = "ri"
42
  CONFIG["ridir"] = "$(datarootdir)/$(RI_BASE_NAME)"
43
  CONFIG["rubylibprefix"] = "$(libdir)/$(RUBY_BASE_NAME)"
44
  CONFIG["MAKEFILES"] = "Makefile"
45
  CONFIG["PLATFORM_DIR"] = ""
46
  CONFIG["THREAD_MODEL"] = "pthread"
47
  CONFIG["SYMBOL_PREFIX"] = ""
48
  CONFIG["EXPORT_PREFIX"] = ""
49
  CONFIG["COMMON_HEADERS"] = ""
50
  CONFIG["COMMON_MACROS"] = ""
51
  CONFIG["COMMON_LIBS"] = ""
52
  CONFIG["MAINLIBS"] = ""
53
  CONFIG["ENABLE_SHARED"] = "no"
54
  CONFIG["DLDLIBS"] = " -lc"
55
  CONFIG["SOLIBS"] = ""
56
  CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "
57
  CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static"
58
  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)"
59
  CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
60
  CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
61
  CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
62
  CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
63
  CONFIG["RUBYW_INSTALL_NAME"] = ""
64
  CONFIG["rubyw_install_name"] = ""
65
  CONFIG["LIBRUBY_DLDFLAGS"] = ""
66
  CONFIG["LIBRUBY_LDSHARED"] = "$(CC) -shared"
67
  CONFIG["warnflags"] = "-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration"
68
  CONFIG["debugflags"] = "-ggdb"
69
  CONFIG["optflags"] = "-O3"
70
  CONFIG["cxxflags"] = " $(optflags) $(debugflags) $(warnflags)"
71
  CONFIG["cflags"] = " $(optflags) $(debugflags) $(warnflags)"
72
  CONFIG["cppflags"] = ""
73
  CONFIG["NULLCMD"] = ":"
74
  CONFIG["INSTALLDOC"] = "all"
75
  CONFIG["CAPITARGET"] = "capi"
76
  CONFIG["RDOCTARGET"] = "rdoc"
77
  CONFIG["EXECUTABLE_EXTS"] = ""
78
  CONFIG["ARCHFILE"] = ""
79
  CONFIG["LIBRUBY_RELATIVE"] = "no"
80
  CONFIG["EXTOUT"] = ".ext"
81
  CONFIG["PREP"] = "miniruby$(EXEEXT)"
82
  CONFIG["TEST_RUNNABLE"] = "yes"
83
  CONFIG["setup"] = "Setup"
84
  CONFIG["EXTSTATIC"] = ""
85
  CONFIG["STRIP"] = "strip -S -x"
86
  CONFIG["TRY_LINK"] = ""
87
  CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
88
  CONFIG["RPATHFLAG"] = " -Wl,-R%1$-s"
89
  CONFIG["LIBPATHFLAG"] = " -L%1$-s"
90
  CONFIG["LINK_SO"] = ""
91
  CONFIG["LIBEXT"] = "a"
92
  CONFIG["DLEXT2"] = ""
93
  CONFIG["DLEXT"] = "so"
94
  CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
95
  CONFIG["LDSHARED"] = "$(CC) -shared"
96
  CONFIG["CCDLFLAGS"] = "-fPIC"
97
  CONFIG["STATIC"] = ""
98
  CONFIG["ARCH_FLAG"] = ""
99
  CONFIG["DLDFLAGS"] = ""
100
  CONFIG["ALLOCA"] = ""
101
  CONFIG["WERRORFLAG"] = "-Werror"
102
  CONFIG["CHDIR"] = "cd -P"
103
  CONFIG["RMALL"] = "rm -fr"
104
  CONFIG["RMDIRS"] = "rmdir --ignore-fail-on-non-empty -p"
105
  CONFIG["RMDIR"] = "rmdir --ignore-fail-on-non-empty"
106
  CONFIG["CP"] = "cp"
107
  CONFIG["RM"] = "rm -f"
108
  CONFIG["PKG_CONFIG"] = "pkg-config"
109
  CONFIG["DOXYGEN"] = "doxygen"
110
  CONFIG["DOT"] = "dot"
111
  CONFIG["MAKEDIRS"] = "/bin/mkdir -p"
112
  CONFIG["MKDIR_P"] = "/bin/mkdir -p"
113
  CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
114
  CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
115
  CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
116
  CONFIG["SET_MAKE"] = ""
117
  CONFIG["LN_S"] = "ln -s"
118
  CONFIG["NM"] = "nm"
119
  CONFIG["DLLWRAP"] = ""
120
  CONFIG["WINDRES"] = ""
121
  CONFIG["OBJCOPY"] = ":"
122
  CONFIG["OBJDUMP"] = "objdump"
123
  CONFIG["ASFLAGS"] = ""
124
  CONFIG["AS"] = "as"
125
  CONFIG["AR"] = "ar"
126
  CONFIG["RANLIB"] = "ranlib"
127
  CONFIG["try_header"] = ""
128
  CONFIG["COUTFLAG"] = "-o "
129
  CONFIG["OUTFLAG"] = "-o "
130
  CONFIG["CPPOUTFILE"] = "-o conftest.i"
131
  CONFIG["GNU_LD"] = "yes"
132
  CONFIG["GCC"] = "yes"
133
  CONFIG["EGREP"] = "/bin/grep -E"
134
  CONFIG["GREP"] = "/bin/grep"
135
  CONFIG["CPP"] = "$(CC) -E"
136
  CONFIG["CXXFLAGS"] = "$(cxxflags)"
137
  CONFIG["CXX"] = "g++"
138
  CONFIG["OBJEXT"] = "o"
139
  CONFIG["CPPFLAGS"] = " $(DEFS) $(cppflags)"
140
  CONFIG["LDFLAGS"] = "-L.  -rdynamic -Wl,-export-dynamic"
141
  CONFIG["CFLAGS"] = "$(cflags)"
142
  CONFIG["CC"] = "gcc"
143
  CONFIG["target_os"] = "linux"
144
  CONFIG["target_vendor"] = "unknown"
145
  CONFIG["target_cpu"] = "x86_64"
146
  CONFIG["target"] = "x86_64-unknown-linux-gnu"
147
  CONFIG["host_os"] = "linux-gnu"
148
  CONFIG["host_vendor"] = "unknown"
149
  CONFIG["host_cpu"] = "x86_64"
150
  CONFIG["host"] = "x86_64-unknown-linux-gnu"
151
  CONFIG["RUBYW_BASE_NAME"] = "rubyw"
152
  CONFIG["RUBY_BASE_NAME"] = "ruby"
153
  CONFIG["build_os"] = "linux-gnu"
154
  CONFIG["build_vendor"] = "unknown"
155
  CONFIG["build_cpu"] = "x86_64"
156
  CONFIG["build"] = "x86_64-unknown-linux-gnu"
157
  CONFIG["RUBY_RELEASE_DATE"] = "2012-11-10"
158
  CONFIG["RUBY_PROGRAM_VERSION"] = "1.9.3"
159
  CONFIG["BASERUBY"] = "ruby"
160
  CONFIG["target_alias"] = ""
161
  CONFIG["host_alias"] = ""
162
  CONFIG["build_alias"] = ""
163
  CONFIG["LIBS"] = "-lpthread -lrt -ldl -lcrypt -lm "
164
  CONFIG["ECHO_T"] = ""
165
  CONFIG["ECHO_N"] = "-n"
166
  CONFIG["ECHO_C"] = ""
167
  CONFIG["DEFS"] = ""
168
  CONFIG["mandir"] = "$(datarootdir)/man"
169
  CONFIG["localedir"] = "$(datarootdir)/locale"
170
  CONFIG["libdir"] = "$(exec_prefix)/lib"
171
  CONFIG["psdir"] = "$(docdir)"
172
  CONFIG["pdfdir"] = "$(docdir)"
173
  CONFIG["dvidir"] = "$(docdir)"
174
  CONFIG["htmldir"] = "$(docdir)"
175
  CONFIG["infodir"] = "$(datarootdir)/info"
176
  CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
177
  CONFIG["oldincludedir"] = "/usr/include"
178
  CONFIG["includedir"] = "$(prefix)/include"
179
  CONFIG["localstatedir"] = "$(prefix)/var"
180
  CONFIG["sharedstatedir"] = "$(prefix)/com"
181
  CONFIG["sysconfdir"] = "$(prefix)/etc"
182
  CONFIG["datadir"] = "$(datarootdir)"
183
  CONFIG["datarootdir"] = "$(prefix)/share"
184
  CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
185
  CONFIG["sbindir"] = "$(exec_prefix)/sbin"
186
  CONFIG["bindir"] = "$(exec_prefix)/bin"
187
  CONFIG["exec_prefix"] = "$(prefix)"
188
  CONFIG["PACKAGE_URL"] = ""
189
  CONFIG["PACKAGE_BUGREPORT"] = ""
190
  CONFIG["PACKAGE_STRING"] = ""
191
  CONFIG["PACKAGE_VERSION"] = ""
192
  CONFIG["PACKAGE_TARNAME"] = ""
193
  CONFIG["PACKAGE_NAME"] = ""
194
  CONFIG["PATH_SEPARATOR"] = ":"
195
  CONFIG["SHELL"] = "/bin/bash"
196
  CONFIG["rubylibdir"] = "$(rubylibprefix)/$(ruby_version)"
197
  CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
198
  CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
199
  CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
200
  CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)"
201
  CONFIG["vendorarchdir"] = "$(vendorlibdir)/$(sitearch)"
202
  CONFIG["topdir"] = File.dirname(__FILE__)
203
  MAKEFILE_CONFIG = {}
204
  CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
205
  def RbConfig::expand(val, config = CONFIG)
206
    newval = val.gsub(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) {
207
      var = $&
208
      if !(v = $1 || $2)
209
        '$'
210
      elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
211
        pat, sub = $1, $2
212
        config[v] = false
213
        config[v] = RbConfig::expand(key, config)
214
        key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
215
        key
216
      else
217
        var
218
      end
219
    }
220
    val.replace(newval) unless newval == val
221
    val
222
  end
223
  CONFIG.each_value do |val|
224
    RbConfig::expand(val)
225
  end
226

    
227
  # returns the absolute pathname of the ruby command.
228
  def RbConfig.ruby
229
    File.join(
230
      RbConfig::CONFIG["bindir"],
231
      RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
232
    )
233
  end
234
end
235
autoload :Config, "rbconfig/obsolete.rb" # compatibility for ruby-1.8.4 and older.
236
CROSS_COMPILING = nil unless defined? CROSS_COMPILING