Project

General

Profile

Backport #1261 ยป rbconfig.rb

Host rbconfig.rb - dangole (Daniel Golle), 03/10/2009 11:25 PM

 
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 Config
6
  RUBY_VERSION == "1.8.6" or
7
    raise "ruby lib version (1.8.6) doesn't match executable version (#{RUBY_VERSION})"
8

    
9
  TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/x86_64-linux")
10
  DESTDIR = '' unless defined? DESTDIR
11
  CONFIG = {}
12
  CONFIG["DESTDIR"] = DESTDIR
13
  CONFIG["INSTALL"] = '/bin/install -c'
14
  CONFIG["prefix"] = (TOPDIR || DESTDIR + "/home/daniel/src/makrowrt/openwrt/staging_dir/host")
15
  CONFIG["EXEEXT"] = ""
16
  CONFIG["ruby_install_name"] = "ruby"
17
  CONFIG["RUBY_INSTALL_NAME"] = "ruby"
18
  CONFIG["RUBY_SO_NAME"] = "ruby"
19
  CONFIG["SHELL"] = "/bin/sh"
20
  CONFIG["PATH_SEPARATOR"] = ":"
21
  CONFIG["PACKAGE_NAME"] = ""
22
  CONFIG["PACKAGE_TARNAME"] = ""
23
  CONFIG["PACKAGE_VERSION"] = ""
24
  CONFIG["PACKAGE_STRING"] = ""
25
  CONFIG["PACKAGE_BUGREPORT"] = ""
26
  CONFIG["exec_prefix"] = "$(DESTDIR)/home/daniel/src/makrowrt/openwrt/staging_dir/host"
27
  CONFIG["bindir"] = "$(exec_prefix)/bin"
28
  CONFIG["sbindir"] = "$(exec_prefix)/sbin"
29
  CONFIG["libexecdir"] = "$(exec_prefix)/libexec"
30
  CONFIG["datarootdir"] = "$(prefix)/share"
31
  CONFIG["datadir"] = "$(datarootdir)"
32
  CONFIG["sysconfdir"] = "$(DESTDIR)/home/daniel/src/makrowrt/openwrt/staging_dir/host/etc"
33
  CONFIG["sharedstatedir"] = "$(prefix)/com"
34
  CONFIG["localstatedir"] = "$(DESTDIR)/home/daniel/src/makrowrt/openwrt/staging_dir/host/var"
35
  CONFIG["includedir"] = "$(prefix)/include"
36
  CONFIG["oldincludedir"] = "/usr/include"
37
  CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
38
  CONFIG["infodir"] = "$(datarootdir)/info"
39
  CONFIG["htmldir"] = "$(docdir)"
40
  CONFIG["dvidir"] = "$(docdir)"
41
  CONFIG["pdfdir"] = "$(docdir)"
42
  CONFIG["psdir"] = "$(docdir)"
43
  CONFIG["libdir"] = "$(exec_prefix)/lib"
44
  CONFIG["localedir"] = "$(datarootdir)/locale"
45
  CONFIG["mandir"] = "$(datarootdir)/man"
46
  CONFIG["DEFS"] = ""
47
  CONFIG["ECHO_C"] = ""
48
  CONFIG["ECHO_N"] = "-n"
49
  CONFIG["ECHO_T"] = ""
50
  CONFIG["LIBS"] = "-ldl -lcrypt -lm "
51
  CONFIG["build_alias"] = "x86_64-unknown-linux-gnu"
52
  CONFIG["host_alias"] = "x86_64-unknown-linux-gnu"
53
  CONFIG["target_alias"] = "x86_64-unknown-linux-gnu"
54
  CONFIG["MAJOR"] = "1"
55
  CONFIG["MINOR"] = "8"
56
  CONFIG["TEENY"] = "6"
57
  CONFIG["build"] = "x86_64-unknown-linux-gnu"
58
  CONFIG["build_cpu"] = "x86_64"
59
  CONFIG["build_vendor"] = "unknown"
60
  CONFIG["build_os"] = "linux-gnu"
61
  CONFIG["host"] = "x86_64-unknown-linux-gnu"
62
  CONFIG["host_cpu"] = "x86_64"
63
  CONFIG["host_vendor"] = "unknown"
64
  CONFIG["host_os"] = "linux-gnu"
65
  CONFIG["target"] = "x86_64-unknown-linux-gnu"
66
  CONFIG["target_cpu"] = "x86_64"
67
  CONFIG["target_vendor"] = "unknown"
68
  CONFIG["target_os"] = "linux"
69
  CONFIG["CC"] = "x86_64-unknown-linux-gnu-gcc"
70
  CONFIG["CFLAGS"] = ""
71
  CONFIG["LDFLAGS"] = "-L. -L/home/daniel/src/makrowrt/openwrt/staging_dir/host/lib -rdynamic -Wl,-export-dynamic"
72
  CONFIG["CPPFLAGS"] = "-O2 -I/home/daniel/src/makrowrt/openwrt/staging_dir/host/include $(DEFS)"
73
  CONFIG["OBJEXT"] = "o"
74
  CONFIG["CPP"] = "x86_64-unknown-linux-gnu-gcc -E"
75
  CONFIG["GREP"] = "/bin/grep"
76
  CONFIG["EGREP"] = "/bin/grep -E"
77
  CONFIG["GNU_LD"] = "yes"
78
  CONFIG["CPPOUTFILE"] = "-o conftest.i"
79
  CONFIG["OUTFLAG"] = "-o "
80
  CONFIG["YACC"] = "bison -y"
81
  CONFIG["YFLAGS"] = ""
82
  CONFIG["RANLIB"] = "ranlib"
83
  CONFIG["AR"] = "ar"
84
  CONFIG["AS"] = "as"
85
  CONFIG["ASFLAGS"] = ""
86
  CONFIG["NM"] = ""
87
  CONFIG["WINDRES"] = ""
88
  CONFIG["DLLWRAP"] = ""
89
  CONFIG["OBJDUMP"] = ""
90
  CONFIG["LN_S"] = "ln -s"
91
  CONFIG["SET_MAKE"] = ""
92
  CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
93
  CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
94
  CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
95
  CONFIG["RM"] = "rm -f"
96
  CONFIG["CP"] = "cp"
97
  CONFIG["MAKEDIRS"] = "mkdir -p"
98
  CONFIG["ALLOCA"] = ""
99
  CONFIG["DLDFLAGS"] = ""
100
  CONFIG["ARCH_FLAG"] = ""
101
  CONFIG["STATIC"] = ""
102
  CONFIG["CCDLFLAGS"] = " -fPIC"
103
  CONFIG["LDSHARED"] = "$(CC) -shared"
104
  CONFIG["DLEXT"] = "so"
105
  CONFIG["DLEXT2"] = ""
106
  CONFIG["LIBEXT"] = "a"
107
  CONFIG["LINK_SO"] = ""
108
  CONFIG["LIBPATHFLAG"] = " -L%1$-s"
109
  CONFIG["RPATHFLAG"] = " -Wl,-R%1$-s"
110
  CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
111
  CONFIG["TRY_LINK"] = ""
112
  CONFIG["STRIP"] = "strip -S -x"
113
  CONFIG["EXTSTATIC"] = ""
114
  CONFIG["setup"] = "Setup"
115
  CONFIG["MINIRUBY"] = "./miniruby$(EXEEXT)"
116
  CONFIG["PREP"] = "miniruby$(EXEEXT)"
117
  CONFIG["RUNRUBY"] = "$(MINIRUBY) $(srcdir)/runruby.rb --extout=$(EXTOUT) --"
118
  CONFIG["EXTOUT"] = ".ext"
119
  CONFIG["ARCHFILE"] = ""
120
  CONFIG["RDOCTARGET"] = ""
121
  CONFIG["XCFLAGS"] = " -DRUBY_EXPORT -D_GNU_SOURCE=1"
122
  CONFIG["XLDFLAGS"] = ""
123
  CONFIG["LIBRUBY_LDSHARED"] = "$(CC) -shared"
124
  CONFIG["LIBRUBY_DLDFLAGS"] = ""
125
  CONFIG["rubyw_install_name"] = ""
126
  CONFIG["RUBYW_INSTALL_NAME"] = ""
127
  CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
128
  CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
129
  CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
130
  CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
131
  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)"
132
  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
133
  CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-R -Wl,$(libdir) -L$(libdir) "
134
  CONFIG["SOLIBS"] = ""
135
  CONFIG["DLDLIBS"] = " -lc"
136
  CONFIG["ENABLE_SHARED"] = "no"
137
  CONFIG["MAINLIBS"] = ""
138
  CONFIG["COMMON_LIBS"] = ""
139
  CONFIG["COMMON_MACROS"] = ""
140
  CONFIG["COMMON_HEADERS"] = ""
141
  CONFIG["EXPORT_PREFIX"] = ""
142
  CONFIG["MAKEFILES"] = "Makefile"
143
  CONFIG["arch"] = "x86_64-linux"
144
  CONFIG["sitearch"] = "x86_64-linux"
145
  CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby"
146
  CONFIG["configure_args"] = " '--target=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/home/daniel/src/makrowrt/openwrt/staging_dir/host' '--exec-prefix=/home/daniel/src/makrowrt/openwrt/staging_dir/host' '--sysconfdir=/home/daniel/src/makrowrt/openwrt/staging_dir/host/etc' '--localstatedir=/home/daniel/src/makrowrt/openwrt/staging_dir/host/var' '--disable-nls' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-unknown-linux-gnu' 'CFLAGS=' 'LDFLAGS=-L/home/daniel/src/makrowrt/openwrt/staging_dir/host/lib' 'CPPFLAGS=-O2 -I/home/daniel/src/makrowrt/openwrt/staging_dir/host/include'"
147
  CONFIG["NROFF"] = "/usr/bin/nroff"
148
  CONFIG["MANTYPE"] = "doc"
149
  CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
150
  CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
151
  CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
152
  CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
153
  CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
154
  CONFIG["topdir"] = File.dirname(__FILE__)
155
  MAKEFILE_CONFIG = {}
156
  CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
157
  def Config::expand(val, config = CONFIG)
158
    val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
159
      if !(v = $1 || $2)
160
	'$'
161
      elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
162
	pat, sub = $1, $2
163
	config[v] = false
164
	Config::expand(key, config)
165
	config[v] = key
166
	key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
167
	key
168
      else
169
	var
170
      end
171
    end
172
    val
173
  end
174
  CONFIG.each_value do |val|
175
    Config::expand(val)
176
  end
177
end
178
RbConfig = Config # compatibility for ruby-1.9
179
CROSS_COMPILING = nil unless defined? CROSS_COMPILING