diff -urN ruby-1.6.7/Makefile ruby-1.6.7-eo/Makefile --- ruby-1.6.7/Makefile Fri Jul 18 22:06:43 2003 +++ ruby-1.6.7-eo/Makefile Fri Jul 18 20:56:29 2003 @@ -6,20 +6,33 @@ srcdir = . VPATH = $(srcdir):$(srcdir)/missing +ROOT = $(HOME)/EOTA/eota/kernel +NEWLIB = $(HOME)/EOTA/libc/newlib-1.8.1/eota/newlib +LIBS = $(NEWLIB)/crt0.o $(NEWLIB)/libc.a $(NEWLIB)/libm.a +KERNLIBS = $(ROOT)/POSIX/libc/libnative.a +GCCLIB = /usr/lib/gcc-lib/i386-linux/2.95.2/libgcc.a +STARTADDR = 0x00001000 +ENTRY = _start +CFLAGS = -g -I. -I$(NEWLIB)/targ-include \ + -I$(NEWLIB)/libc/include -DEOTA +LDFLAGS = -s -Bstatic -e ${ENTRY} -Ttext=$(STARTADDR) + CC = gcc YACC = bison -y PURIFY = AUTOCONF = autoconf +LD = ld -prefix = /usr/local -CFLAGS = -g -O2 +prefix = /home/shin/EOTA/temp/usr +## CFLAGS = -g -O2 CPPFLAGS = -I. -I$(srcdir) -I${prefix}/include -LDFLAGS = $(CFLAGS) -rdynamic +#LDFLAGS = $(CFLAGS) -rdynamic +## LDFLAGS = $(CFLAGS) XLDFLAGS = EXTLIBS = -LIBS = -ldl -lcrypt -lm $(EXTLIBS) -MISSING = +## LIBS = -ldl -lcrypt -lm $(EXTLIBS) +MISSING = crypt.o LDSHARED = gcc -shared DLDFLAGS = SOLIBS = @@ -82,28 +95,29 @@ util.o \ variable.o \ version.o \ - $(MISSING) + $(MISSING) \ + eota.o all: miniruby$(EXEEXT) rbconfig.rb $(LIBRUBY) @./miniruby$(EXEEXT) -Cext extmk.rb miniruby$(EXEEXT): config.status $(LIBRUBY_A) $(MAINOBJ) dmyext.o @rm -f $@ - $(PURIFY) $(CC) $(LDFLAGS) $(MAINOBJ) dmyext.o $(LIBRUBY_A) $(LIBS) -o $@ + $(PURIFY) $(LD) $(LDFLAGS) $(MAINOBJ) dmyext.o $(LIBRUBY_A) $(LIBS) $(KERNLIBS) $(GCCLIB) -o $@ $(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(EXTOBJS) @rm -f $@ - $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@ + $(PURIFY) $(LD) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) $(KERNLIBS) $(GCCLIB) -o $@ $(LIBRUBY_A): $(OBJS) dmyext.o ar rcu $@ $(OBJS) dmyext.o @-ranlib $@ 2> /dev/null || true -$(LIBRUBY_SO): $(OBJS) dmyext.o miniruby$(EXEEXT) - $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.o $(SOLIBS) -o $@ - @-./miniruby$(EXEEXT) -e 'ARGV.each{|link| File.delete link if File.exist? link; \ - File.symlink "$(LIBRUBY_SO)", link}' \ - $(LIBRUBY_ALIASES) || true +#$(LIBRUBY_SO): $(OBJS) dmyext.o miniruby$(EXEEXT) +# $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.o $(SOLIBS) -o $@ +# @-./miniruby$(EXEEXT) -e 'ARGV.each{|link| File.delete link if #File.exist? link; \ +# File.symlink "$(LIBRUBY_SO)",# link}' \ +# $(LIBRUBY_ALIASES) || true install: rbconfig.rb ./miniruby$(EXEEXT) $(srcdir)/instruby.rb $(DESTDIR) diff -urN ruby-1.6.7/config.h ruby-1.6.7-eo/config.h --- ruby-1.6.7/config.h Fri Jul 18 22:06:41 2003 +++ ruby-1.6.7-eo/config.h Wed Feb 26 15:37:51 2003 @@ -9,37 +9,37 @@ #define SIZEOF_DOUBLE 8 #define HAVE_PROTOTYPES 1 #define TOKEN_PASTE(x,y) x##y -#define HAVE_STDARG_PROTOTYPES 1 +/* #define HAVE_STDARG_PROTOTYPES 1 */ #define HAVE_ATTR_NORETURN 1 -#define HAVE_LIBCRYPT 1 -#define HAVE_LIBDL 1 +/* #define HAVE_LIBCRYPT 1 */ +/* #define HAVE_LIBDL 1 */ #define HAVE_DIRENT_H 1 #define STDC_HEADERS 1 #define HAVE_SYS_WAIT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_UNISTD_H 1 -#define HAVE_LIMITS_H 1 +/* #define HAVE_LIMITS_H 1 */ #define HAVE_SYS_FILE_H 1 -#define HAVE_SYS_IOCTL_H 1 +/* #define HAVE_SYS_IOCTL_H 1 */ #define HAVE_FCNTL_H 1 #define HAVE_SYS_FCNTL_H 1 -#define HAVE_SYS_SELECT_H 1 +/* #define HAVE_SYS_SELECT_H 1 */ #define HAVE_SYS_TIME_H 1 #define HAVE_SYS_TIMES_H 1 #define HAVE_SYS_PARAM_H 1 -#define HAVE_SYSCALL_H 1 +/* #define HAVE_SYSCALL_H 1 */ #define HAVE_PWD_H 1 -#define HAVE_A_OUT_H 1 +/* #define HAVE_A_OUT_H 1 */ #define HAVE_UTIME_H 1 -#define HAVE_MEMORY_H 1 +/* #define HAVE_MEMORY_H 1 */ #define HAVE_SYS_RESOURCE_H 1 #define HAVE_ST_BLKSIZE 1 #define HAVE_ST_BLOCKS 1 #define HAVE_ST_RDEV 1 #define GETGROUPS_T gid_t #define RETSIGTYPE void -#define HAVE_ALLOCA_H 1 +/* #define HAVE_ALLOCA_H 1 */ #define HAVE_ALLOCA 1 #define HAVE_DUP2 1 #define HAVE_MEMMOVE 1 @@ -51,52 +51,52 @@ #define HAVE_STRCHR 1 #define HAVE_STRSTR 1 #define HAVE_STRTOUL 1 -#define HAVE_CRYPT 1 -#define HAVE_FLOCK 1 -#define HAVE_VSNPRINTF 1 +/* #define HAVE_CRYPT 1 */ +/* #define HAVE_FLOCK 1 */ +/* #define HAVE_VSNPRINTF 1 */ #define HAVE_ISINF 1 #define HAVE_ISNAN 1 #define HAVE_FINITE 1 #define HAVE_FMOD 1 -#define HAVE_KILLPG 1 -#define HAVE_DRAND48 1 -#define HAVE_RANDOM 1 -#define HAVE_WAIT4 1 +/* #define HAVE_KILLPG 1 */ +/* #define HAVE_DRAND48 1*/ +/* #define HAVE_RANDOM 1 */ +/* #define HAVE_WAIT4 1 */ #define HAVE_WAITPID 1 -#define HAVE_SYSCALL 1 +/* #define HAVE_SYSCALL 1 */ #define HAVE_GETCWD 1 -#define HAVE_CHROOT 1 -#define HAVE_TRUNCATE 1 +/* #define HAVE_CHROOT 1 */ +/* #define HAVE_TRUNCATE 1 */ #define HAVE_TIMES 1 -#define HAVE_UTIMES 1 +/* #define HAVE_UTIMES 1 */ #define HAVE_FCNTL 1 -#define HAVE_LOCKF 1 -#define HAVE_LSTAT 1 -#define HAVE_SYMLINK 1 -#define HAVE_READLINK 1 -#define HAVE_SETITIMER 1 -#define HAVE_SETEUID 1 -#define HAVE_SETREUID 1 -#define HAVE_SETEGID 1 -#define HAVE_SETREGID 1 -#define HAVE_PAUSE 1 -#define HAVE_GETPGRP 1 -#define HAVE_SETPGRP 1 -#define HAVE_GETPGID 1 -#define HAVE_SETPGID 1 -#define HAVE_GETGROUPS 1 -#define HAVE_GETPRIORITY 1 -#define HAVE_GETRLIMIT 1 -#define HAVE_DLOPEN 1 +/* #define HAVE_LOCKF 1 */ +/* #define HAVE_LSTAT 1 */ +/* #define HAVE_SYMLINK 1 */ +/* #define HAVE_READLINK 1 */ +/* #define HAVE_SETITIMER 1 */ +/* #define HAVE_SETEUID 1 */ +/* #define HAVE_SETREUID 1 */ +/* #define HAVE_SETEGID 1 */ +/* #define HAVE_SETREGID 1 */ +/* #define HAVE_PAUSE 1 */ +/* #define HAVE_GETPGRP 1 */ +/* #define HAVE_SETPGRP 1 */ +/* #define HAVE_GETPGID 1 */ +/* #define HAVE_SETPGID 1 */ +/* #define HAVE_GETGROUPS 1 */ +/* #define HAVE_GETPRIORITY 1 */ +/* #define HAVE_GETRLIMIT 1 */ +/* #define HAVE_DLOPEN 1 */ #define HAVE_SIGPROCMASK 1 #define HAVE_SIGACTION 1 -#define HAVE__SETJMP 1 +/* #define HAVE__SETJMP 1 */ #define HAVE_SETSID 1 #define HAVE_TELLDIR 1 #define HAVE_SEEKDIR 1 -#define HAVE_FCHMOD 1 -#define HAVE_TM_ZONE 1 -#define HAVE_STRUCT_TM_TM_GMTOFF 1 +/* #define HAVE_FCHMOD 1 */ +/* #define HAVE_TM_ZONE 1 */ +/* #define HAVE_STRUCT_TM_TM_GMTOFF 1 */ #define HAVE_DAYLIGHT 1 #define POSIX_SIGNAL 1 #define GETPGRP_VOID 1 @@ -105,9 +105,18 @@ #define DEFAULT_KCODE KCODE_NONE #define USE_ELF 1 #define DLEXT ".so" -#define RUBY_LIB "/usr/local/lib/ruby/1.6" -#define RUBY_SITE_LIB "/usr/local/lib/ruby/site_ruby" -#define RUBY_SITE_LIB2 "/usr/local/lib/ruby/site_ruby/1.6" +#ifndef EOTA +#define RUBY_LIB "/home/shin/EOTA/temp/usr/lib/ruby/1.6" +#define RUBY_SITE_LIB "/home/shin/EOTA/temp/usr/lib/ruby/site_ruby" +#define RUBY_SITE_LIB2 "/home/shin/EOTA/temp/usr/lib/ruby/site_ruby/1.6" #define RUBY_PLATFORM "i586-linux" -#define RUBY_ARCHLIB "/usr/local/lib/ruby/1.6/i586-linux" -#define RUBY_SITE_ARCHLIB "/usr/local/lib/ruby/site_ruby/1.6/i586-linux" +#define RUBY_ARCHLIB "/home/shin/EOTA/temp/usr/lib/ruby/1.6/i586-linux" +#define RUBY_SITE_ARCHLIB "/home/shin/EOTA/temp/usr/lib/ruby/site_ruby/1.6/i586-linux" +#endif /* not EOTA */ + +#define RUBY_LIB "/usr/lib/ruby/1.6" +#define RUBY_SITE_LIB "/usr/lib/ruby/site_ruby" +#define RUBY_SITE_LIB2 "/usr/lib/ruby/site_ruby/1.6" +#define RUBY_PLATFORM "i586-linux" +#define RUBY_ARCHLIB "/usr/lib/ruby/1.6/i586-linux" +#define RUBY_SITE_ARCHLIB "/usr/lib/ruby/site_ruby/1.6/i586-linux" diff -urN ruby-1.6.7/config.status ruby-1.6.7-eo/config.status --- ruby-1.6.7/config.status Fri Jul 18 22:06:42 2003 +++ ruby-1.6.7-eo/config.status Sat Dec 7 12:27:33 2002 @@ -4,7 +4,7 @@ # This directory was configured as follows, # on host TP760: # -# ./configure +# ./configure --prefix=/home/shin/EOTA/temp/usr # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. @@ -14,8 +14,8 @@ do case "$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion" - exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;; + echo "running ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/home/shin/EOTA/temp/usr --no-create --no-recursion" + exec ${CONFIG_SHELL-/bin/sh} ./configure --prefix=/home/shin/EOTA/temp/usr --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "./config.status generated by autoconf version 2.13" exit 0 ;; @@ -43,7 +43,7 @@ s%@LDFLAGS@%-rdynamic%g s%@LIBS@%-ldl -lcrypt -lm %g s%@exec_prefix@%${prefix}%g -s%@prefix@%/usr/local%g +s%@prefix@%/home/shin/EOTA/temp/usr%g s%@program_transform_name@%s,x,x,%g s%@bindir@%${exec_prefix}/bin%g s%@sbindir@%${exec_prefix}/sbin%g @@ -118,7 +118,7 @@ s%@MAINLIBS@%%g s%@arch@%i586-linux%g s%@sitedir@%${prefix}/lib/ruby/site_ruby%g -s%@configure_args@%%g +s%@configure_args@% --prefix=/home/shin/EOTA/temp/usr%g CEOF diff -urN ruby-1.6.7/dir.c ruby-1.6.7-eo/dir.c --- ruby-1.6.7/dir.c Mon Jan 21 16:43:39 2002 +++ ruby-1.6.7-eo/dir.c Thu Jul 17 17:45:15 2003 @@ -381,7 +381,9 @@ DIR *dirp; GetDIR(dir, dirp); +#ifndef EOTA rewinddir(dirp); +#endif /* not EOTA */ return dir; } diff -urN ruby-1.6.7/eota.c ruby-1.6.7-eo/eota.c --- ruby-1.6.7/eota.c Thu Jan 1 09:00:00 1970 +++ ruby-1.6.7-eo/eota.c Fri Jul 18 21:35:15 2003 @@ -0,0 +1,27 @@ +#include +#include + +int snprintf(char *str, size_t size, char *format, __gnuc_va_list i) +{ + return sprintf(str, format, i); +} + +int vsnprintf(char *str, size_t size, const char *format, va_list ap) +{ + return vsprintf(str, format, ap); +} + +int select() { return -1; } +int FD_CLR() { return NULL; } +int FD_SET() { return NULL; } +int FD_ISSET() { return NULL; } +int FD_ZERO() { return NULL; } + +int fchown() { return -1; } +int getpwnam() { return 0; } +int flock() { return -1; } +int ioctl() { return -1; } + +int getpwuid() { return 0; } +int endpwent() { return 0; } +int ReadDataPending() { return 0; } diff -urN ruby-1.6.7/error.c ruby-1.6.7-eo/error.c --- ruby-1.6.7/error.c Mon Jan 21 16:43:39 2002 +++ ruby-1.6.7-eo/error.c Thu Jul 17 17:39:53 2003 @@ -472,6 +472,11 @@ extern int sys_nerr; #endif +#ifdef EOTA +#undef sys_nerr +extern int sys_nerr = 0; +#endif /* EOTA */ + static VALUE set_syserr(i, name) int i; diff -urN ruby-1.6.7/eval.c ruby-1.6.7-eo/eval.c --- ruby-1.6.7/eval.c Wed Feb 27 13:50:29 2002 +++ ruby-1.6.7-eo/eval.c Sat Dec 7 13:47:44 2002 @@ -120,6 +120,10 @@ #define SCOPE_SET(f) do {scope_vmode=(f);} while(0) #define SCOPE_TEST(f) (scope_vmode&(f)) +#ifdef EOTA +#define fd_set int +#endif + int ruby_safe_level = 0; /* safe-level: 0 - strings from streams/environment/ARGV are tainted (default) diff -urN ruby-1.6.7/ext/Setup ruby-1.6.7-eo/ext/Setup --- ruby-1.6.7/ext/Setup Mon Dec 3 19:04:46 2001 +++ ruby-1.6.7-eo/ext/Setup Sat Dec 7 14:35:06 2002 @@ -1,4 +1,4 @@ -#option nodynamic +option nodynamic #GD #curses @@ -10,7 +10,7 @@ #digest/sha2 #etc #fcntl -#kconv +kconv #pty #sdbm #socket diff -urN ruby-1.6.7/ext/nkf/Makefile ruby-1.6.7-eo/ext/nkf/Makefile --- ruby-1.6.7/ext/nkf/Makefile Thu Jan 1 09:00:00 1970 +++ ruby-1.6.7-eo/ext/nkf/Makefile Sat Dec 7 13:36:39 2002 @@ -0,0 +1,80 @@ +SHELL = /bin/sh + +#### Start of system configuration section. #### + +srcdir = /usr/local/shin/EOTA/app/ruby-1.6.7/ext/nkf + +topdir = /usr/local/shin/EOTA/app/ruby-1.6.7 +hdrdir = /usr/local/shin/EOTA/app/ruby-1.6.7 + +NEWLIB = $(HOME)/EOTA/libc/newlib-1.8.1/eota/newlib +CFLAGS = -g -O2 -Wall -I. -I$(NEWLIB)/targ-include \ + -I$(NEWLIB)/libc/include -DEOTA +NLIBS = $(NEWLIB)/crt0.o $(NEWLIB)/libc.a + +CC = gcc + +## CFLAGS = -fPIC -g -O2 +CPPFLAGS = -I$(topdir) -I$(hdrdir) -I${prefix}/include +DLDFLAGS = -L/usr/local/shin/EOTA/app/ruby-1.6.7 +LDSHARED = gcc -shared + +RUBY_INSTALL_NAME = ruby +RUBY_SO_NAME = + +prefix = /home/shin/EOTA/temp/usr +exec_prefix = ${prefix} +libdir = ${exec_prefix}/lib +#pkglibdir = $(libdir)/$(RUBY_INSTALL_NAME)/1.6 +pkglibdir = $(libdir)/ruby/1.6 +archdir = $(pkglibdir)/i586-linux +target_prefix = + + +#### End of system configuration section. #### + +LOCAL_LIBS = +LIBS = -L${prefix}/lib $(LIBRUBY_A) $(NLIBS) +OBJS = nkf.o +TARGET = nkf +DLLIB = $(TARGET).so + +RUBY = $(topdir)/miniruby -I$(topdir) -I$(hdrdir)/lib +RM = $(RUBY) -rftools -e "File::rm_f(*ARGV.map{|x|Dir[x]}.flatten.uniq)" + +EXEEXT = + +all: $(DLLIB) + +clean:; @$(RM) *.o *.so *.sl *.a $(DLLIB) + @$(RM) *.ilk *.exp *.pdb *.bak $(CLEANFILES) + +distclean: clean + @$(RM) Makefile extconf.h conftest.* + @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) + +realclean: distclean + +install: + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(libdir) $(DESTDIR)$(pkglibdir) $(DESTDIR)$(archdir)$(target_prefix) + + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(DESTDIR)$(archdir)$(target_prefix)/$(DLLIB) + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(DESTDIR)$(pkglibdir)$(target_prefix) + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' $(srcdir)/lib/kconv.rb $(DESTDIR)$(pkglibdir)$(target_prefix)/kconv.rb + + +.cc.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< +.cpp.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< +.cxx.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< +.C.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< + +.c.o: + $(CC) $(CFLAGS) $(CPPFLAGS) -c $< +$(DLLIB): $(OBJS) + $(LDSHARED) $(DLDFLAGS) -o $(DLLIB) $(OBJS) $(LIBS) $(LOCAL_LIBS) +### +nkf.o : nkf.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(srcdir)/nkf1.7/nkf.c diff -urN ruby-1.6.7/file.c ruby-1.6.7-eo/file.c --- ruby-1.6.7/file.c Wed Nov 7 18:01:31 2001 +++ ruby-1.6.7-eo/file.c Thu Jul 17 14:44:10 2003 @@ -63,6 +63,10 @@ char *strrchr _((const char*,const char)); #endif +#ifdef EOTA +#define EACCES 13 +#endif /* EOTA */ + #include #include diff -urN ruby-1.6.7/io.c ruby-1.6.7-eo/io.c --- ruby-1.6.7/io.c Wed Feb 27 13:47:51 2002 +++ ruby-1.6.7-eo/io.c Sat Dec 7 13:49:59 2002 @@ -126,6 +126,10 @@ }\ } while(0) +#ifdef EOTA +#define fd_set int +#endif + void rb_eof_error() { diff -urN ruby-1.6.7/rbconfig.rb ruby-1.6.7-eo/rbconfig.rb --- ruby-1.6.7/rbconfig.rb Thu Jan 1 09:00:00 1970 +++ ruby-1.6.7-eo/rbconfig.rb Fri Jul 18 21:35:32 2003 @@ -0,0 +1,119 @@ + +module Config + + RUBY_VERSION == "1.8.0" or + raise "ruby lib version (1.8.0) doesn't match executable version (#{RUBY_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. + DESTDIR = '' if not defined? DESTDIR + CONFIG = {} + TOPDIR = File.dirname(__FILE__).sub!(%r'/lib/ruby/1\.8/i586\-linux\Z', '') + CONFIG["srcdir"] = "/tmp/ruby-1.6.7-eo" + CONFIG["prefix"] = (TOPDIR || DESTDIR + "/home/shin/EOTA/temp/usr") + CONFIG["ruby_install_name"] = "ruby" + CONFIG["EXEEXT"] = "" + CONFIG["SHELL"] = "/bin/sh" + CONFIG["CFLAGS"] = "-g -O2" + CONFIG["CPPFLAGS"] = "" + CONFIG["CXXFLAGS"] = "" + CONFIG["FFLAGS"] = "" + CONFIG["LDFLAGS"] = "-rdynamic" + CONFIG["LIBS"] = "-ldl -lcrypt -lm" + CONFIG["exec_prefix"] = "$(prefix)" + CONFIG["bindir"] = "$(exec_prefix)/bin" + CONFIG["sbindir"] = "$(exec_prefix)/sbin" + CONFIG["libexecdir"] = "$(exec_prefix)/libexec" + CONFIG["datadir"] = "$(prefix)/share" + CONFIG["sysconfdir"] = "$(prefix)/etc" + CONFIG["sharedstatedir"] = "$(prefix)/com" + CONFIG["localstatedir"] = "$(prefix)/var" + CONFIG["libdir"] = "$(exec_prefix)/lib" + CONFIG["includedir"] = "$(prefix)/include" + CONFIG["oldincludedir"] = "/usr/include" + CONFIG["infodir"] = "$(prefix)/info" + CONFIG["mandir"] = "$(prefix)/man" + CONFIG["MAJOR"] = "1" + CONFIG["MINOR"] = "6" + CONFIG["TEENY"] = "7" + CONFIG["host"] = "i586-pc-linux" + CONFIG["host_alias"] = "i586-pc-linux" + CONFIG["host_cpu"] = "i586" + CONFIG["host_vendor"] = "pc" + CONFIG["host_os"] = "linux" + CONFIG["target"] = "i586-pc-linux" + CONFIG["target_alias"] = "i586-pc-linux" + CONFIG["target_cpu"] = "i586" + CONFIG["target_vendor"] = "pc" + CONFIG["target_os"] = "linux" + CONFIG["build"] = "i586-pc-linux" + CONFIG["build_alias"] = "i586-pc-linux" + CONFIG["build_cpu"] = "i586" + CONFIG["build_vendor"] = "pc" + CONFIG["build_os"] = "linux" + CONFIG["CC"] = "gcc" + CONFIG["CPP"] = "gcc -E" + CONFIG["YACC"] = "bison -y" + CONFIG["RANLIB"] = "ranlib" + CONFIG["AR"] = "ar" + CONFIG["NM"] = "" + CONFIG["DLLWRAP"] = "" + CONFIG["AS"] = "" + CONFIG["DLLTOOL"] = "" + CONFIG["WINDRES"] = "" + CONFIG["LN_S"] = "ln -s" + CONFIG["SET_MAKE"] = "" + CONFIG["OBJEXT"] = "o" + CONFIG["LIBOBJS"] = "" + CONFIG["ALLOCA"] = "" + CONFIG["XLDFLAGS"] = "" + CONFIG["DLDFLAGS"] = "" + CONFIG["STATIC"] = "" + CONFIG["CCDLFLAGS"] = "-fPIC" + CONFIG["LDSHARED"] = "gcc -shared" + CONFIG["DLEXT"] = "so" + CONFIG["DLEXT2"] = "" + CONFIG["STRIP"] = "strip -S -x" + CONFIG["EXTSTATIC"] = "" + CONFIG["setup"] = "Setup" + CONFIG["MINIRUBY"] = "./miniruby$(EXEEXT)" + CONFIG["PREP"] = "" + CONFIG["LIBRUBY_LDSHARED"] = "gcc -shared" + CONFIG["LIBRUBY_DLDFLAGS"] = "" + CONFIG["RUBY_INSTALL_NAME"] = "ruby" + CONFIG["RUBY_SO_NAME"] = "" + 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_A)" + CONFIG["LIBRUBYARG"] = "$(LIBRUBY_A)" + CONFIG["SOLIBS"] = "" + CONFIG["DLDLIBS"] = "-lc" + CONFIG["ENABLE_SHARED"] = "no" + CONFIG["MAINLIBS"] = "" + CONFIG["arch"] = "i586-linux" + CONFIG["sitedir"] = "$(prefix)/lib/ruby/site_ruby" + CONFIG["configure_args"] = "--prefix=/home/shin/EOTA/temp/usr" + CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)" + CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)" + CONFIG["archdir"] = "$(rubylibdir)/$(arch)" + CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)" + CONFIG["sitearchdir"] = "$(sitelibdir)/$(arch)" + CONFIG["compile_dir"] = "/tmp/ruby-1.6.7-eo" + MAKEFILE_CONFIG = {} + CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup} + def Config::expand(val) + val.gsub!(/\$\(([^()]+)\)/) do |var| + key = $1 + if CONFIG.key? key + Config::expand(CONFIG[key]) + else + var + end + end + val + end + CONFIG.each_value do |val| + Config::expand(val) + end +end