Created
May 22, 2011 21:11
-
-
Save serialhex/985900 to your computer and use it in GitHub Desktop.
test of shogun ruby configure stuffs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# around line 580 | |
test_ruby() | |
{ | |
echocheck "Ruby" | |
if ruby -v >/dev/null 2>&1 | |
then | |
RUBYVER=`ruby -v 2>&1 | head -n 1 | cut -f 2 -d ' '` | |
echores "${RUBYVER}" | |
cat >$TMPRUBY << EOF | |
require('mkmf') | |
if RUBY_VERSION[0,3] == '1.8' | |
puts "-I#{Config::expand(CONFIG["archdir"])}" if CONFIG["archdir"] | |
else | |
puts "-I#{Config::expand(CONFIG['rubyhdrdir'])} -I#{Config::expand(CONFIG['rubyhdrdir'])}/#{Config::expand(CONFIG['arch'])}" if CONFIG['rubyhdrdir'] | |
end | |
EOF | |
echocheck "Ruby Developer Files" | |
if ruby $TMPRUBY >/dev/null 2>&1 | |
then | |
echores "yes" | |
INCLUDES_RUBY=`ruby $TMPRUBY` | |
LINKFLAGS_RUBY="-lruby -fPIC -shared" | |
EXT_IF_SWIG_RUBY_MODULAR='stop' | |
PRE_LIB_SWIG_RUBY_MODULAR= | |
EXT_LIB_SWIG_RUBY_MODULAR=.so | |
SWIGFLAGS_RUBY_MODULAR="-c++ -ruby" | |
_ruby=yes | |
else | |
echores "no" | |
fi | |
else | |
echores "not detected" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment