1 /**********************************************************************
6 created at: Wed May 15 14:19:50 JST 2013
8 Copyright (C) 2013 Yukihiro Matsumoto
10 **********************************************************************/
13 #include "ruby/ruby.h"
15 /* Define RUBY_REVISION to avoid revision.h inclusion via version.h. */
16 #define RUBY_REVISION 0
20 #define RUBY_ARCH RUBY_PLATFORM
23 #define RUBY_SITEARCH RUBY_ARCH
25 #ifdef RUBY_PLATFORM_CPU
26 #define RUBY_THINARCH RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
28 #ifndef RUBY_LIB_PREFIX
29 #ifndef RUBY_EXEC_PREFIX
30 #error RUBY_EXEC_PREFIX must be defined
32 #define RUBY_LIB_PREFIX RUBY_EXEC_PREFIX"/lib/ruby"
35 #define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby"
37 #ifndef RUBY_VENDOR_LIB
38 #define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
41 typedef char ruby_lib_version_string
[(int)sizeof(RUBY_LIB_VERSION
) - 2];
44 #define RUBY_LIB RUBY_LIB_PREFIX "/"RUBY_LIB_VERSION
46 #define RUBY_SITE_LIB2 RUBY_SITE_LIB "/"RUBY_LIB_VERSION
47 #define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB "/"RUBY_LIB_VERSION
48 #ifndef RUBY_ARCH_LIB_FOR
49 #define RUBY_ARCH_LIB_FOR(arch) RUBY_LIB "/"arch
51 #ifndef RUBY_SITE_ARCH_LIB_FOR
52 #define RUBY_SITE_ARCH_LIB_FOR(arch) RUBY_SITE_LIB2 "/"arch
54 #ifndef RUBY_VENDOR_ARCH_LIB_FOR
55 #define RUBY_VENDOR_ARCH_LIB_FOR(arch) RUBY_VENDOR_LIB2 "/"arch
58 #if !defined(LOAD_RELATIVE) || !LOAD_RELATIVE
59 const char ruby_exec_prefix
[] = RUBY_EXEC_PREFIX
;
62 const char ruby_initial_load_paths
[] =
63 #ifndef NO_INITIAL_LOAD_PATH
64 #ifdef RUBY_SEARCH_PATH
67 #ifndef NO_RUBY_SITE_LIB
70 RUBY_SITE_ARCH_LIB_FOR(RUBY_THINARCH
) "\0"
72 RUBY_SITE_ARCH_LIB_FOR(RUBY_SITEARCH
) "\0"
76 #ifndef NO_RUBY_VENDOR_LIB
79 RUBY_VENDOR_ARCH_LIB_FOR(RUBY_THINARCH
) "\0"
81 RUBY_VENDOR_ARCH_LIB_FOR(RUBY_SITEARCH
) "\0"
87 RUBY_ARCH_LIB_FOR(RUBY_THINARCH
) "\0"
89 RUBY_ARCH_LIB_FOR(RUBY_ARCH
) "\0"