2011-07-12 14:06:23 -04:00
|
|
|
$OpenBSD: patch-rubynative_configure,v 1.3 2011/07/12 18:06:23 jeremy Exp $
|
2010-09-23 18:10:28 -04:00
|
|
|
--- rubynative/configure.orig Mon Dec 24 17:53:40 2007
|
2011-07-12 14:06:23 -04:00
|
|
|
+++ rubynative/configure Fri Jul 8 09:01:02 2011
|
|
|
|
@@ -1228,8 +1228,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2010-09-23 18:10:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
# Export variables
|
|
|
|
-RUBY="ruby"
|
|
|
|
-RDOC="rdoc"
|
|
|
|
MYRBLIBDIR=/usr/local/lib/ruby/site_ruby
|
|
|
|
MYRUNPATH=""
|
|
|
|
|
2011-07-12 14:06:23 -04:00
|
|
|
@@ -1258,7 +1256,7 @@ fi
|
2010-09-23 18:10:28 -04:00
|
|
|
# Setting the default prefix
|
|
|
|
if test "$prefix" = NONE
|
|
|
|
then
|
|
|
|
- prefix=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
|
2011-07-12 14:06:23 -04:00
|
|
|
+ prefix=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("prefix"))'`
|
2010-09-23 18:10:28 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-07-12 14:06:23 -04:00
|
|
|
@@ -1268,24 +1266,8 @@ fi
|
|
|
|
#================================================================
|
2010-09-23 18:10:28 -04:00
|
|
|
|
2011-07-12 14:06:23 -04:00
|
|
|
|
|
|
|
-# Ruby interpreter
|
|
|
|
-printf 'checking RUBY... '
|
2010-09-23 18:10:28 -04:00
|
|
|
-if which ruby > /dev/null
|
2011-07-12 14:06:23 -04:00
|
|
|
-then
|
2010-09-23 18:10:28 -04:00
|
|
|
- RUBY=`which ruby`
|
2011-07-12 14:06:23 -04:00
|
|
|
-fi
|
|
|
|
-printf '%s\n' "$RUBY"
|
|
|
|
-
|
|
|
|
-# Other building tools
|
|
|
|
-printf 'checking RDOC... '
|
2010-09-23 18:10:28 -04:00
|
|
|
-if which rdoc > /dev/null
|
2011-07-12 14:06:23 -04:00
|
|
|
-then
|
2010-09-23 18:10:28 -04:00
|
|
|
- RDOC=`which rdoc`
|
2011-07-12 14:06:23 -04:00
|
|
|
-fi
|
|
|
|
-printf '%s\n' "$RDOC"
|
|
|
|
-
|
2007-01-18 05:38:47 -05:00
|
|
|
# Librarh path
|
|
|
|
-myrblibdir=`ruby -rrbconfig -e 'puts(Config::CONFIG.fetch("sitelibdir"))'`
|
2011-07-12 14:06:23 -04:00
|
|
|
+myrblibdir=`$RUBY -rrbconfig -e 'puts(Config::CONFIG.fetch("sitearchdir"))'`
|
2007-01-18 05:38:47 -05:00
|
|
|
if test -n "$myrblibdir"
|
|
|
|
then
|
|
|
|
MYRBLIBDIR="$myrblibdir"
|