[csw-devel] SF.net SVN: gar:[9329] csw/mgar/pkg/ruby19/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Mar 23 01:49:08 CET 2010


Revision: 9329
          http://gar.svn.sourceforge.net/gar/?rev=9329&view=rev
Author:   bdwalton
Date:     2010-03-23 00:49:06 +0000 (Tue, 23 Mar 2010)

Log Message:
-----------
ruby19: tweak postinstall; add gcc4 rbconfig.rb versions

Modified Paths:
--------------
    csw/mgar/pkg/ruby19/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/ruby19/trunk/files/README.csw
    csw/mgar/pkg/ruby19/trunk/files/cswrbconfig
    csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.i386
    csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.sparc

Modified: csw/mgar/pkg/ruby19/trunk/Makefile
===================================================================
--- csw/mgar/pkg/ruby19/trunk/Makefile	2010-03-22 23:27:13 UTC (rev 9328)
+++ csw/mgar/pkg/ruby19/trunk/Makefile	2010-03-23 00:49:06 UTC (rev 9329)
@@ -109,7 +109,7 @@
 # Fix up rbconfig
 rbconfig:
 	@gsed -i -e s,$(DESTDIR),, \
-		$(DESTDIR)$(libdir)/$(GARNAME)/$(GARVERSION)/$(GARCH)-solaris2.8/rbconfig.rb
+		$(DESTDIR)$(libdir)/$(GARNAME)/$(GARVERSION)/$(GARCH)-solaris2.9/rbconfig.rb
 	@$(MAKECOOKIE)
 
 # Copy samples

Added: csw/mgar/pkg/ruby19/trunk/files/README.csw
===================================================================
--- csw/mgar/pkg/ruby19/trunk/files/README.csw	                        (rev 0)
+++ csw/mgar/pkg/ruby19/trunk/files/README.csw	2010-03-23 00:49:06 UTC (rev 9329)
@@ -0,0 +1,11 @@
+It is possible to switch rbconfig.rb files in order to use alternate
+compilation options or even compilers.  CSWruby19 ships with settings
+for Sun Studio 11 (what ruby was built with) and GCC4.  Our
+distribution of ruby sees rbconfig.rb be a symlink to
+rbconfig.rb.SOS11 by default.  To switch your settings, use the
+cswrbconfig19 tool provided.  Running it with no arguments will
+provide more details and list available configurations.
+
+Please file a bug on CSWruby19 if you have problems using this tool.
+
+Ben Walton <bwalton at opencsw.org>

Added: csw/mgar/pkg/ruby19/trunk/files/cswrbconfig
===================================================================
--- csw/mgar/pkg/ruby19/trunk/files/cswrbconfig	                        (rev 0)
+++ csw/mgar/pkg/ruby19/trunk/files/cswrbconfig	2010-03-23 00:49:06 UTC (rev 9329)
@@ -0,0 +1,54 @@
+#!/opt/csw/bin/ruby19 -w
+
+ARCH = %x{uname -p}.chomp
+CONFD = "/opt/csw/lib/ruby/1.9.1/#{ARCH}-solaris2.8"
+RBC = File.join(CONFD, "rbconfig.rb")
+CUR_RBC = File.readlink(RBC).gsub(/.*\./, '')
+
+CONF_OPTS = Dir.glob("#{CONFD}/rbconfig.rb.*").map! { |c| c.gsub(/.*\./, '') }
+
+def usage(errstr)
+  puts "ERROR: #{errstr}"
+  puts <<-"EOF"
+
+Usage: #{File.basename($0)} <new rbconfig option>
+
+This tool allows you to switch rbconfig.rb between options available
+on your system.  The benefit of this is that you can build native gems
+using options other than those used to build Ruby itself (Sun Studio
+11 -> sos11), including alternate compilers.
+
+rbconfig.rb is found in #{CONFD}.
+
+Existing options are determined by the presence of rbconfig.rb.FOO
+files in #{CONFD}.
+
+The current value is: #{CUR_RBC}
+
+The options present on your system are:
+    EOF
+
+  puts CONF_OPTS.join("\n")
+  exit(1)
+end
+
+if ARGV.size.eql?(0)
+  usage("No argument specified.")
+else
+  usage("Something is wrong with your rbconfig.rb symlink setup.") unless File.symlink?(RBC) and File.exists?(RBC)
+
+  usage("No action required.") if CUR_RBC.eql?(ARGV[0])
+
+  usage("Invalid rbconfig option.") unless CONF_OPTS.include?(ARGV[0])
+
+  opt_rbc = RBC + '.' + ARGV[0]
+
+  usage("Selection option is valid but there's something wrong with the file it refers to (#{opt_rbc}).") unless File.exists?(opt_rbc) and File.file?(opt_rbc)
+
+  begin
+    File.unlink(RBC)
+    File.symlink(opt_rbc, RBC)
+  rescue
+    usage("Error while switching rbconfig.rb symlink.  Please inspect the situation in #{CONFD}.")
+  end
+end


Property changes on: csw/mgar/pkg/ruby19/trunk/files/cswrbconfig
___________________________________________________________________
Added: svn:executable
   + *

Added: csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.i386
===================================================================
--- csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.i386	                        (rev 0)
+++ csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.i386	2010-03-23 00:49:06 UTC (rev 9329)
@@ -0,0 +1,196 @@
+
+# This file was created by mkconfig.rb when ruby was built.  Any
+# changes made to this file will be lost the next time ruby is built.
+
+module RbConfig
+  RUBY_VERSION == "1.9.1" or
+    raise "ruby lib version (1.9.1) doesn't match executable version (#{RUBY_VERSION})"
+
+  TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.9.1/i386-solaris2.9")
+  DESTDIR = '' unless defined? DESTDIR
+  CONFIG = {}
+  CONFIG["DESTDIR"] = DESTDIR
+  CONFIG["INSTALL"] = '/opt/csw/bin/ginstall -c'
+  CONFIG["EXEEXT"] = ""
+  CONFIG["prefix"] = (TOPDIR || DESTDIR + "/opt/csw")
+  CONFIG["ruby_install_name"] = "ruby19"
+  CONFIG["RUBY_INSTALL_NAME"] = "ruby19"
+  CONFIG["RUBY_SO_NAME"] = "ruby19"
+  CONFIG["BUILTIN_TRANSSRCS"] = " newline.c"
+  CONFIG["MANTYPE"] = "man"
+  CONFIG["NROFF"] = "/usr/bin/nroff"
+  CONFIG["vendorhdrdir"] = "$(rubyhdrdir)/vendor_ruby"
+  CONFIG["sitehdrdir"] = "$(rubyhdrdir)/site_ruby"
+  CONFIG["rubyhdrdir"] = "$(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)"
+  CONFIG["configure_args"] = " '--prefix=/opt/csw' '--exec_prefix=/opt/csw' '--bindir=/opt/csw/bin' '--sbindir=/opt/csw/sbin' '--libexecdir=/opt/csw/libexec' '--datadir=/opt/csw/share' '--sysconfdir=/opt/csw/etc' '--sharedstatedir=/opt/csw/share' '--localstatedir=/opt/csw/var' '--libdir=/opt/csw/lib' '--infodir=/opt/csw/share/info' '--includedir=/opt/csw/include' '--mandir=/opt/csw/share/man' '--program-suffix=19' '--enable-pthread' 'CC=/opt/csw/gcc4/bin/gcc' 'CFLAGS=-mtune=i686 -O2 -pipe -m32 -march=i386' 'LDFLAGS=-L/opt/csw/gcc4/lib/. -m32 -march=i386 -R /opt/csw/gcc4/lib -L/opt/csw/lib' 'CPPFLAGS=-I/opt/csw/include' 'CXX=/opt/csw/gcc4/bin/g++' 'CXXFLAGS=-mtune=i686 -O2 -pipe -m32 -march=i386'"
+  CONFIG["vendordir"] = "$(libdir)/$(RUBY_INSTALL_NAME)/vendor_ruby"
+  CONFIG["sitedir"] = "$(libdir)/$(RUBY_INSTALL_NAME)/site_ruby"
+  CONFIG["ruby_version"] = "1.9.1"
+  CONFIG["sitearch"] = "i386-solaris2.9"
+  CONFIG["arch"] = "i386-solaris2.9"
+  CONFIG["MAKEFILES"] = "Makefile"
+  CONFIG["THREAD_MODEL"] = "pthread"
+  CONFIG["EXPORT_PREFIX"] = ""
+  CONFIG["COMMON_HEADERS"] = ""
+  CONFIG["COMMON_MACROS"] = ""
+  CONFIG["COMMON_LIBS"] = ""
+  CONFIG["MAINLIBS"] = ""
+  CONFIG["ENABLE_SHARED"] = "no"
+  CONFIG["DLDLIBS"] = " -lc"
+  CONFIG["SOLIBS"] = ""
+  CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)"
+  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
+  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)"
+  CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
+  CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
+  CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
+  CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
+  CONFIG["RUBYW_INSTALL_NAME"] = ""
+  CONFIG["rubyw_install_name"] = ""
+  CONFIG["LIBRUBY_DLDFLAGS"] = ""
+  CONFIG["LIBRUBY_LDSHARED"] = "$(CC) -shared"
+  CONFIG["warnflags"] = "-Wall -Wno-parentheses"
+  CONFIG["debugflags"] = "-g"
+  CONFIG["optflags"] = "-O2"
+  CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
+  CONFIG["cppflags"] = "-I/opt/csw/include"
+  CONFIG["RDOCTARGET"] = "install-doc"
+  CONFIG["ARCHFILE"] = ""
+  CONFIG["EXTOUT"] = ".ext"
+  CONFIG["PREP"] = "miniruby$(EXEEXT)"
+  CONFIG["setup"] = "Setup"
+  CONFIG["EXTSTATIC"] = ""
+  CONFIG["STRIP"] = "strip"
+  CONFIG["TRY_LINK"] = ""
+  CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
+  CONFIG["RPATHFLAG"] = ""
+  CONFIG["LIBPATHFLAG"] = " -L%s"
+  CONFIG["LINK_SO"] = ""
+  CONFIG["LIBEXT"] = "a"
+  CONFIG["DLEXT2"] = ""
+  CONFIG["DLEXT"] = "so"
+  CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
+  CONFIG["LDSHARED"] = "$(CC) -shared"
+  CONFIG["CCDLFLAGS"] = " -fPIC"
+  CONFIG["STATIC"] = ""
+  CONFIG["ARCH_FLAG"] = ""
+  CONFIG["DLDFLAGS"] = ""
+  CONFIG["ALLOCA"] = ""
+  CONFIG["RMALL"] = "rm -fr"
+  CONFIG["RMDIRS"] = "$(top_srcdir)/tool/rmdirs"
+  CONFIG["MAKEDIRS"] = "mkdir -p"
+  CONFIG["CP"] = "cp"
+  CONFIG["RM"] = "rm -f"
+  CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
+  CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
+  CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
+  CONFIG["SET_MAKE"] = ""
+  CONFIG["LN_S"] = "ln -s"
+  CONFIG["DLLWRAP"] = ""
+  CONFIG["WINDRES"] = ""
+  CONFIG["NM"] = ""
+  CONFIG["OBJCOPY"] = "gobjcopy"
+  CONFIG["OBJDUMP"] = "gobjdump"
+  CONFIG["ASFLAGS"] = ""
+  CONFIG["AS"] = "as"
+  CONFIG["AR"] = "ar"
+  CONFIG["RANLIB"] = "ranlib"
+  CONFIG["COUTFLAG"] = "-o "
+  CONFIG["OUTFLAG"] = "-o "
+  CONFIG["CPPOUTFILE"] = "-o conftest.i"
+  CONFIG["GNU_LD"] = "no"
+  CONFIG["EGREP"] = "/opt/csw/bin/ggrep -E"
+  CONFIG["GREP"] = "/opt/csw/bin/ggrep"
+  CONFIG["CPP"] = "/opt/csw/gcc4/bin/gcc -E"
+  CONFIG["CXXFLAGS"] = "-mtune=i686 -O2 -pipe -m32 -march=i386 $(cxxflags)"
+  CONFIG["CXX"] = "/opt/csw/gcc4/bin/g++"
+  CONFIG["OBJEXT"] = "o"
+  CONFIG["CPPFLAGS"] = "-I/opt/csw/include $(DEFS) $(cppflags)"
+  CONFIG["LDFLAGS"] = "-L. -L/opt/csw/gcc4/lib/. -m32 -march=i386 -R /opt/csw/gcc4/lib -L/opt/csw/lib"
+  CONFIG["CFLAGS"] = "-mtune=i686 -O2 -pipe -m32 -march=i386 $(cflags)"
+  CONFIG["CC"] = "/opt/csw/gcc4/bin/gcc"
+  CONFIG["target_os"] = "solaris2.9"
+  CONFIG["target_vendor"] = "pc"
+  CONFIG["target_cpu"] = "i386"
+  CONFIG["target"] = "i386-pc-solaris2.9"
+  CONFIG["host_os"] = "solaris2.9"
+  CONFIG["host_vendor"] = "pc"
+  CONFIG["host_cpu"] = "i386"
+  CONFIG["host"] = "i386-pc-solaris2.9"
+  CONFIG["build_os"] = "solaris2.9"
+  CONFIG["build_vendor"] = "pc"
+  CONFIG["build_cpu"] = "i386"
+  CONFIG["build"] = "i386-pc-solaris2.9"
+  CONFIG["TEENY"] = "1"
+  CONFIG["MINOR"] = "9"
+  CONFIG["MAJOR"] = "1"
+  CONFIG["BASERUBY"] = "ruby"
+  CONFIG["target_alias"] = ""
+  CONFIG["host_alias"] = ""
+  CONFIG["build_alias"] = ""
+  CONFIG["LIBS"] = "-lpthread -lrt -lsocket -ldl -lcrypt -lm "
+  CONFIG["ECHO_T"] = ""
+  CONFIG["ECHO_N"] = "-n"
+  CONFIG["ECHO_C"] = ""
+  CONFIG["DEFS"] = "-D_FILE_OFFSET_BITS=64"
+  CONFIG["mandir"] = "$(DESTDIR)/opt/csw/share/man"
+  CONFIG["localedir"] = "$(datarootdir)/locale"
+  CONFIG["libdir"] = "$(DESTDIR)/opt/csw/lib"
+  CONFIG["psdir"] = "$(docdir)"
+  CONFIG["pdfdir"] = "$(docdir)"
+  CONFIG["dvidir"] = "$(docdir)"
+  CONFIG["htmldir"] = "$(docdir)"
+  CONFIG["infodir"] = "$(DESTDIR)/opt/csw/share/info"
+  CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
+  CONFIG["oldincludedir"] = "/usr/include"
+  CONFIG["includedir"] = "$(DESTDIR)/opt/csw/include"
+  CONFIG["localstatedir"] = "$(DESTDIR)/opt/csw/var"
+  CONFIG["sharedstatedir"] = "$(DESTDIR)/opt/csw/share"
+  CONFIG["sysconfdir"] = "$(DESTDIR)/opt/csw/etc"
+  CONFIG["datadir"] = "$(DESTDIR)/opt/csw/share"
+  CONFIG["datarootdir"] = "$(prefix)/share"
+  CONFIG["libexecdir"] = "$(DESTDIR)/opt/csw/libexec"
+  CONFIG["sbindir"] = "$(DESTDIR)/opt/csw/sbin"
+  CONFIG["bindir"] = "$(DESTDIR)/opt/csw/bin"
+  CONFIG["exec_prefix"] = "$(DESTDIR)/opt/csw"
+  CONFIG["PACKAGE_URL"] = ""
+  CONFIG["PACKAGE_BUGREPORT"] = ""
+  CONFIG["PACKAGE_STRING"] = ""
+  CONFIG["PACKAGE_VERSION"] = ""
+  CONFIG["PACKAGE_TARNAME"] = ""
+  CONFIG["PACKAGE_NAME"] = ""
+  CONFIG["PATH_SEPARATOR"] = ":"
+  CONFIG["SHELL"] = "/bin/bash"
+  CONFIG["rubylibdir"] = "$(libdir)/$(ruby_install_name)/$(ruby_version)"
+  CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
+  CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
+  CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
+  CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)"
+  CONFIG["vendorarchdir"] = "$(vendorlibdir)/$(sitearch)"
+  CONFIG["topdir"] = File.dirname(__FILE__)
+  MAKEFILE_CONFIG = {}
+  CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
+  def RbConfig::expand(val, config = CONFIG)
+    val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do
+      var = $&
+      if !(v = $1 || $2)
+	'$'
+      elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
+	pat, sub = $1, $2
+	config[v] = false
+	RbConfig::expand(key, config)
+	config[v] = key
+	key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
+	key
+      else
+	var
+      end
+    end
+    val
+  end
+  CONFIG.each_value do |val|
+    RbConfig::expand(val)
+  end
+end
+Config = RbConfig # compatibility for ruby-1.8.4 and older.
+CROSS_COMPILING = nil unless defined? CROSS_COMPILING

Added: csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.sparc
===================================================================
--- csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.sparc	                        (rev 0)
+++ csw/mgar/pkg/ruby19/trunk/files/rbconfig.rb.GCC4.sparc	2010-03-23 00:49:06 UTC (rev 9329)
@@ -0,0 +1,196 @@
+
+# This file was created by mkconfig.rb when ruby was built.  Any
+# changes made to this file will be lost the next time ruby is built.
+
+module RbConfig
+  RUBY_VERSION == "1.9.1" or
+    raise "ruby lib version (1.9.1) doesn't match executable version (#{RUBY_VERSION})"
+
+  TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.9.1/sparc-solaris2.9")
+  DESTDIR = '' unless defined? DESTDIR
+  CONFIG = {}
+  CONFIG["DESTDIR"] = DESTDIR
+  CONFIG["INSTALL"] = '/opt/csw/bin/ginstall -c'
+  CONFIG["EXEEXT"] = ""
+  CONFIG["prefix"] = (TOPDIR || DESTDIR + "/opt/csw")
+  CONFIG["ruby_install_name"] = "ruby19"
+  CONFIG["RUBY_INSTALL_NAME"] = "ruby19"
+  CONFIG["RUBY_SO_NAME"] = "ruby19"
+  CONFIG["BUILTIN_TRANSSRCS"] = " newline.c"
+  CONFIG["MANTYPE"] = "man"
+  CONFIG["NROFF"] = "/usr/bin/nroff"
+  CONFIG["vendorhdrdir"] = "$(rubyhdrdir)/vendor_ruby"
+  CONFIG["sitehdrdir"] = "$(rubyhdrdir)/site_ruby"
+  CONFIG["rubyhdrdir"] = "$(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)"
+  CONFIG["configure_args"] = " '--prefix=/opt/csw' '--exec_prefix=/opt/csw' '--bindir=/opt/csw/bin' '--sbindir=/opt/csw/sbin' '--libexecdir=/opt/csw/libexec' '--datadir=/opt/csw/share' '--sysconfdir=/opt/csw/etc' '--sharedstatedir=/opt/csw/share' '--localstatedir=/opt/csw/var' '--libdir=/opt/csw/lib' '--infodir=/opt/csw/share/info' '--includedir=/opt/csw/include' '--mandir=/opt/csw/share/man' '--program-suffix=19' '--enable-pthread' 'CC=/opt/csw/gcc4/bin/gcc' 'CFLAGS=-O2 -pipe -mcpu=v8' 'LDFLAGS=-L/opt/csw/gcc4/lib/. -mcpu=v8 -R /opt/csw/gcc4/lib -L/opt/csw/lib' 'CPPFLAGS=-I/opt/csw/include' 'CXX=/opt/csw/gcc4/bin/g++' 'CXXFLAGS=-O2 -pipe -mcpu=v8'"
+  CONFIG["vendordir"] = "$(libdir)/$(RUBY_INSTALL_NAME)/vendor_ruby"
+  CONFIG["sitedir"] = "$(libdir)/$(RUBY_INSTALL_NAME)/site_ruby"
+  CONFIG["ruby_version"] = "1.9.1"
+  CONFIG["sitearch"] = "sparc-solaris2.9"
+  CONFIG["arch"] = "sparc-solaris2.9"
+  CONFIG["MAKEFILES"] = "Makefile"
+  CONFIG["THREAD_MODEL"] = "pthread"
+  CONFIG["EXPORT_PREFIX"] = ""
+  CONFIG["COMMON_HEADERS"] = ""
+  CONFIG["COMMON_MACROS"] = ""
+  CONFIG["COMMON_LIBS"] = ""
+  CONFIG["MAINLIBS"] = ""
+  CONFIG["ENABLE_SHARED"] = "no"
+  CONFIG["DLDLIBS"] = " -lc"
+  CONFIG["SOLIBS"] = ""
+  CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)"
+  CONFIG["LIBRUBYARG_STATIC"] = "-l$(RUBY_SO_NAME)-static"
+  CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_STATIC)"
+  CONFIG["LIBRUBY"] = "$(LIBRUBY_A)"
+  CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_SO_NAME).so"
+  CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
+  CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
+  CONFIG["RUBYW_INSTALL_NAME"] = ""
+  CONFIG["rubyw_install_name"] = ""
+  CONFIG["LIBRUBY_DLDFLAGS"] = ""
+  CONFIG["LIBRUBY_LDSHARED"] = "$(CC) -shared"
+  CONFIG["warnflags"] = "-Wall -Wno-parentheses"
+  CONFIG["debugflags"] = "-g"
+  CONFIG["optflags"] = "-O2"
+  CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
+  CONFIG["cppflags"] = "-I/opt/csw/include"
+  CONFIG["RDOCTARGET"] = "install-doc"
+  CONFIG["ARCHFILE"] = ""
+  CONFIG["EXTOUT"] = ".ext"
+  CONFIG["PREP"] = "miniruby$(EXEEXT)"
+  CONFIG["setup"] = "Setup"
+  CONFIG["EXTSTATIC"] = ""
+  CONFIG["STRIP"] = "strip"
+  CONFIG["TRY_LINK"] = ""
+  CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
+  CONFIG["RPATHFLAG"] = ""
+  CONFIG["LIBPATHFLAG"] = " -L%s"
+  CONFIG["LINK_SO"] = ""
+  CONFIG["LIBEXT"] = "a"
+  CONFIG["DLEXT2"] = ""
+  CONFIG["DLEXT"] = "so"
+  CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
+  CONFIG["LDSHARED"] = "$(CC) -shared"
+  CONFIG["CCDLFLAGS"] = " -fPIC"
+  CONFIG["STATIC"] = ""
+  CONFIG["ARCH_FLAG"] = ""
+  CONFIG["DLDFLAGS"] = ""
+  CONFIG["ALLOCA"] = ""
+  CONFIG["RMALL"] = "rm -fr"
+  CONFIG["RMDIRS"] = "$(top_srcdir)/tool/rmdirs"
+  CONFIG["MAKEDIRS"] = "mkdir -p"
+  CONFIG["CP"] = "cp"
+  CONFIG["RM"] = "rm -f"
+  CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
+  CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
+  CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
+  CONFIG["SET_MAKE"] = ""
+  CONFIG["LN_S"] = "ln -s"
+  CONFIG["DLLWRAP"] = ""
+  CONFIG["WINDRES"] = ""
+  CONFIG["NM"] = ""
+  CONFIG["OBJCOPY"] = "gobjcopy"
+  CONFIG["OBJDUMP"] = "gobjdump"
+  CONFIG["ASFLAGS"] = ""
+  CONFIG["AS"] = "as"
+  CONFIG["AR"] = "ar"
+  CONFIG["RANLIB"] = "ranlib"
+  CONFIG["COUTFLAG"] = "-o "
+  CONFIG["OUTFLAG"] = "-o "
+  CONFIG["CPPOUTFILE"] = "-o conftest.i"
+  CONFIG["GNU_LD"] = "no"
+  CONFIG["EGREP"] = "/opt/csw/bin/ggrep -E"
+  CONFIG["GREP"] = "/opt/csw/bin/ggrep"
+  CONFIG["CPP"] = "/opt/csw/gcc4/bin/gcc -E"
+  CONFIG["CXXFLAGS"] = "-O2 -pipe -mcpu=v8 $(cxxflags)"
+  CONFIG["CXX"] = "/opt/csw/gcc4/bin/g++"
+  CONFIG["OBJEXT"] = "o"
+  CONFIG["CPPFLAGS"] = "-I/opt/csw/include $(DEFS) $(cppflags)"
+  CONFIG["LDFLAGS"] = "-L. -L/opt/csw/gcc4/lib/. -mcpu=v8 -R /opt/csw/gcc4/lib -L/opt/csw/lib"
+  CONFIG["CFLAGS"] = "-O2 -pipe -mcpu=v8 $(cflags)"
+  CONFIG["CC"] = "/opt/csw/gcc4/bin/gcc"
+  CONFIG["target_os"] = "solaris2.9"
+  CONFIG["target_vendor"] = "sun"
+  CONFIG["target_cpu"] = "sparc"
+  CONFIG["target"] = "sparc-sun-solaris2.9"
+  CONFIG["host_os"] = "solaris2.9"
+  CONFIG["host_vendor"] = "sun"
+  CONFIG["host_cpu"] = "sparc"
+  CONFIG["host"] = "sparc-sun-solaris2.9"
+  CONFIG["build_os"] = "solaris2.9"
+  CONFIG["build_vendor"] = "sun"
+  CONFIG["build_cpu"] = "sparc"
+  CONFIG["build"] = "sparc-sun-solaris2.9"
+  CONFIG["TEENY"] = "1"
+  CONFIG["MINOR"] = "9"
+  CONFIG["MAJOR"] = "1"
+  CONFIG["BASERUBY"] = "ruby"
+  CONFIG["target_alias"] = ""
+  CONFIG["host_alias"] = ""
+  CONFIG["build_alias"] = ""
+  CONFIG["LIBS"] = "-lpthread -lrt -lsocket -ldl -lcrypt -lm "
+  CONFIG["ECHO_T"] = ""
+  CONFIG["ECHO_N"] = "-n"
+  CONFIG["ECHO_C"] = ""
+  CONFIG["DEFS"] = "-D_FILE_OFFSET_BITS=64"
+  CONFIG["mandir"] = "$(DESTDIR)/opt/csw/share/man"
+  CONFIG["localedir"] = "$(datarootdir)/locale"
+  CONFIG["libdir"] = "$(DESTDIR)/opt/csw/lib"
+  CONFIG["psdir"] = "$(docdir)"
+  CONFIG["pdfdir"] = "$(docdir)"
+  CONFIG["dvidir"] = "$(docdir)"
+  CONFIG["htmldir"] = "$(docdir)"
+  CONFIG["infodir"] = "$(DESTDIR)/opt/csw/share/info"
+  CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
+  CONFIG["oldincludedir"] = "/usr/include"
+  CONFIG["includedir"] = "$(DESTDIR)/opt/csw/include"
+  CONFIG["localstatedir"] = "$(DESTDIR)/opt/csw/var"
+  CONFIG["sharedstatedir"] = "$(DESTDIR)/opt/csw/share"
+  CONFIG["sysconfdir"] = "$(DESTDIR)/opt/csw/etc"
+  CONFIG["datadir"] = "$(DESTDIR)/opt/csw/share"
+  CONFIG["datarootdir"] = "$(prefix)/share"
+  CONFIG["libexecdir"] = "$(DESTDIR)/opt/csw/libexec"
+  CONFIG["sbindir"] = "$(DESTDIR)/opt/csw/sbin"
+  CONFIG["bindir"] = "$(DESTDIR)/opt/csw/bin"
+  CONFIG["exec_prefix"] = "$(DESTDIR)/opt/csw"
+  CONFIG["PACKAGE_URL"] = ""
+  CONFIG["PACKAGE_BUGREPORT"] = ""
+  CONFIG["PACKAGE_STRING"] = ""
+  CONFIG["PACKAGE_VERSION"] = ""
+  CONFIG["PACKAGE_TARNAME"] = ""
+  CONFIG["PACKAGE_NAME"] = ""
+  CONFIG["PATH_SEPARATOR"] = ":"
+  CONFIG["SHELL"] = "/bin/bash"
+  CONFIG["rubylibdir"] = "$(libdir)/$(ruby_install_name)/$(ruby_version)"
+  CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
+  CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
+  CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
+  CONFIG["vendorlibdir"] = "$(vendordir)/$(ruby_version)"
+  CONFIG["vendorarchdir"] = "$(vendorlibdir)/$(sitearch)"
+  CONFIG["topdir"] = File.dirname(__FILE__)
+  MAKEFILE_CONFIG = {}
+  CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
+  def RbConfig::expand(val, config = CONFIG)
+    val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do
+      var = $&
+      if !(v = $1 || $2)
+	'$'
+      elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
+	pat, sub = $1, $2
+	config[v] = false
+	RbConfig::expand(key, config)
+	config[v] = key
+	key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
+	key
+      else
+	var
+      end
+    end
+    val
+  end
+  CONFIG.each_value do |val|
+    RbConfig::expand(val)
+  end
+end
+Config = RbConfig # compatibility for ruby-1.8.4 and older.
+CROSS_COMPILING = nil unless defined? CROSS_COMPILING


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list