Bug #1334 » 0001-add-AC_ARG_WITH-rubylibprefix-which-defaults-to-libd.patch
Makefile.in | ||
---|---|---|
libexecdir = @libexecdir@
|
||
datarootdir = @datarootdir@
|
||
datadir = @datadir@
|
||
rubylibprefix = @rubylibprefix@
|
||
arch = @arch@
|
||
sitearch = @sitearch@
|
||
sitedir = @sitedir@
|
configure.in | ||
---|---|---|
rubyw_install_name="$RUBYW_INSTALL_NAME"
|
||
;;
|
||
esac
|
||
RUBY_LIB_PREFIX=`eval echo \\"${libdir}/${RUBY_INSTALL_NAME}\\"`
|
||
AC_ARG_WITH(rubylibprefix,
|
||
AS_HELP_STRING([--with-rubylibprefix=DIR], [prefix for ruby libraries [[LIBDIR/RUBY_INSTALL_NAME]]]),
|
||
[rubylibprefix=$withval],
|
||
[rubylibprefix='${libdir}/${RUBY_INSTALL_NAME}'])
|
||
RUBY_LIB_PREFIX=`eval echo \\"${rubylibprefix}\\"`
|
||
AC_SUBST(rubylibprefix)
|
||
AC_ARG_WITH(ruby-version,
|
||
[ --with-ruby-version=STR ruby version string for version specific directories [[full]] (full|minor|STR)],
|
||
... | ... | |
fi
|
||
AC_ARG_WITH(sitedir,
|
||
[ --with-sitedir=DIR site libraries in DIR [[LIBDIR/ruby/site_ruby]]],
|
||
[ --with-sitedir=DIR site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]]],
|
||
[sitedir=$withval],
|
||
[sitedir='${libdir}/${RUBY_INSTALL_NAME}/site_ruby'])
|
||
[sitedir='${rubylibprefix}/site_ruby'])
|
||
SITE_DIR=`eval echo \\"${sitedir}\\"`
|
||
AC_ARG_WITH(vendordir,
|
||
[ --with-vendordir=DIR vendor libraries in DIR [[LIBDIR/ruby/vendor_ruby]]],
|
||
[ --with-vendordir=DIR vendor libraries in DIR [[RUBY_LIB_PREFIX/vendor_ruby]]],
|
||
[vendordir=$withval],
|
||
[vendordir='${libdir}/${RUBY_INSTALL_NAME}/vendor_ruby'])
|
||
[vendordir='${rubylibprefix}/vendor_ruby'])
|
||
VENDOR_DIR=`eval echo \\"${vendordir}\\"`
|
||
if test "${LOAD_RELATIVE+set}"; then
|
mkconfig.rb | ||
---|---|---|
print(*v_fast)
|
||
print(*v_others)
|
||
print <<EOS
|
||
CONFIG["rubylibdir"] = "$(libdir)/$(ruby_install_name)/$(ruby_version)"
|
||
CONFIG["rubylibdir"] = "$(rubylibprefix)/$(ruby_version)"
|
||
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
|
||
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"
|
||
CONFIG["sitearchdir"] = "$(sitelibdir)/$(sitearch)"
|