Pārlūkot izejas kodu

* Use autotools for Ruby bindings (2nd part)

tags/v0.99.beta14
Pascal Terjan pterjan pirms 17 gadiem
vecāks
revīzija
cd8c7c2c26
1 mainītis faili ar 9 papildinājumiem un 7 dzēšanām
  1. +9
    -7
      configure.ac

+ 9
- 7
configure.ac Parādīt failu

@@ -336,13 +336,15 @@ ac_cv_my_have_ruby="no"
if test "${enable_ruby}" != "no"; then
AC_PATH_PROG(RUBY, ruby, no)
if test "${RUBY}" != "no"; then
AC_MSG_CHECKING(for mkmf.rb)
if "${RUBY}" -e 'require "mkmf"' >/dev/null 2>&1; then
AC_MSG_RESULT(yes)
ac_cv_my_have_ruby="yes"
else
AC_MSG_RESULT(no)
fi
RUBY_ARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"archdir"@:>@'`
RUBY_SITEARCHDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"sitearchdir"@:>@'`
RUBY_LIBDIR=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"libdir"@:>@'`
RUBY_SO_NAME=`ruby -r rbconfig -e 'print Config::CONFIG@<:@"RUBY_SO_NAME"@:>@'`
AC_SUBST(RUBY_ARCHDIR)
AC_SUBST(RUBY_SITEARCHDIR)
AC_SUBST(RUBY_LIBDIR)
AC_SUBST(RUBY_SO_NAME)
AC_CHECK_HEADERS($RUBY_ARCHDIR/ruby.h, [ac_cv_my_have_ruby="yes"])
fi
fi
AM_CONDITIONAL(USE_RUBY, test "${ac_cv_my_have_ruby}" = "yes")


Notiek ielāde…
Atcelt
Saglabāt