
module Config

  VERSION == "1.4.6" or
    raise "ruby lib version (1.4.6) doesn't match executable version (#{VERSION})"

# This file was created by configrb when ruby was built. Any changes
# made to this file will be lost the next time ruby is built.
  CONFIG = {}
  CONFIG["srcdir"] = "/usr/ports/lang/ruby/work/ruby-1.4.6"
  CONFIG["prefix"] = "/usr/local"
  CONFIG["ruby_install_name"] = "ruby"
  CONFIG["EXEEXT"] = ""
  CONFIG["SHELL"] = "/bin/sh"
  CONFIG["CFLAGS"] = "-O2    -fPIC"
  CONFIG["CPPFLAGS"] = ""
  CONFIG["CXXFLAGS"] = "-O2   "
  CONFIG["FFLAGS"] = ""
  CONFIG["LDFLAGS"] = ""
  CONFIG["LIBS"] = "-lm "
  CONFIG["exec_prefix"] = "#{CONFIG[\"prefix\"]}"
  CONFIG["bindir"] = "#{CONFIG[\"exec_prefix\"]}/bin"
  CONFIG["sbindir"] = "#{CONFIG[\"exec_prefix\"]}/sbin"
  CONFIG["libexecdir"] = "#{CONFIG[\"exec_prefix\"]}/libexec"
  CONFIG["datadir"] = "#{CONFIG[\"prefix\"]}/share"
  CONFIG["sysconfdir"] = "/etc"
  CONFIG["sharedstatedir"] = "#{CONFIG[\"prefix\"]}/com"
  CONFIG["localstatedir"] = "#{CONFIG[\"prefix\"]}/var"
  CONFIG["libdir"] = "#{CONFIG[\"exec_prefix\"]}/lib"
  CONFIG["includedir"] = "#{CONFIG[\"prefix\"]}/include"
  CONFIG["oldincludedir"] = "/usr/include"
  CONFIG["infodir"] = "#{CONFIG[\"prefix\"]}/info"
  CONFIG["mandir"] = "#{CONFIG[\"prefix\"]}/man"
  CONFIG["MAJOR"] = "1"
  CONFIG["MINOR"] = "4"
  CONFIG["TEENY"] = "6"
  CONFIG["host"] = "i386-unknown-openbsd2.8"
  CONFIG["host_alias"] = "i386-unknown-openbsd2.8"
  CONFIG["host_cpu"] = "i386"
  CONFIG["host_vendor"] = "unknown"
  CONFIG["host_os"] = "openbsd2.8"
  CONFIG["CC"] = "cc"
  CONFIG["CPP"] = "cc -E"
  CONFIG["YACC"] = "yacc"
  CONFIG["RANLIB"] = "ranlib"
  CONFIG["AR"] = "ar"
  CONFIG["LN_S"] = "ln -s"
  CONFIG["SET_MAKE"] = ""
  CONFIG["OBJEXT"] = "o"
  CONFIG["LIBOBJS"] = ""
  CONFIG["ALLOCA"] = ""
  CONFIG["DEFAULT_KCODE"] = ""
  CONFIG["XLDFLAGS"] = ""
  CONFIG["DLDFLAGS"] = ""
  CONFIG["STATIC"] = ""
  CONFIG["CCDLFLAGS"] = "-fPIC"
  CONFIG["LDSHARED"] = "ld -Bforcearchive -Bshareable"
  CONFIG["DLEXT"] = "so"
  CONFIG["STRIP"] = "strip"
  CONFIG["EXTSTATIC"] = ""
  CONFIG["setup"] = "Setup"
  CONFIG["LIBRUBY_LDSHARED"] = "ld -Bforcearchive -Bshareable"
  CONFIG["LIBRUBY_DLDFLAGS"] = ""
  CONFIG["RUBY_INSTALL_NAME"] = "ruby"
  CONFIG["LIBRUBY_A"] = "lib$(RUBY_INSTALL_NAME).a"
  CONFIG["LIBRUBY_SO"] = "lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR).$(TEENY)"
  CONFIG["LIBRUBY_ALIASES"] = "lib$(RUBY_INSTALL_NAME).so"
  CONFIG["LIBRUBY"] = "$(LIBRUBY_SO)"
  CONFIG["LIBRUBYARG"] = "-L. -l$(RUBY_INSTALL_NAME)"
  CONFIG["SOLIBS"] = ""
  CONFIG["arch"] = "i386-openbsd2.8"
  CONFIG["sitedir"] = "/usr/local/lib/ruby/site_ruby"
  CONFIG["configure_args"] = "--enable-shared --with-tcl-include=/usr/local/include/tcl8.3 --with-tk-include=/usr/local/include/tk8.3 --with-X11-dir=/usr/X11R6 --prefix=/usr/local --sysconfdir=/etc"
  CONFIG["compile_dir"] = "/usr/obj/ports/lang/ruby/build-i386"
  CONFIG.each_value do |val|
    val.gsub!(/\$\(([^()]+)\)/) do |var|
      key = $1
      if CONFIG.key? key
        "#{CONFIG[\"#{key}\"]}"
      else
	var
      end
    end
  end
end
