@ -40,11 +40,14 @@ if test "x$compile_kross" = "xyes" ; then
fi
fi
RUBY_SERIES="$RUBY_MAJOR$RUBY_MINOR"
RUBY_SERIES="$RUBY_MAJOR$RUBY_MINOR"
RUBY_VERSION_DEFS=""
if test "$RUBY_SERIES" -ge "19"; then
if test "$RUBY_SERIES" -ge "19"; then
AC_DEFINE_UNQUOTED(HAVE_RUBY_1_9, 1, [Defines if your system has Ruby 1.9.x])
AC_DEFINE_UNQUOTED(HAVE_RUBY_1_9, 1, [Defines if your system has Ruby 1.9.x])
RUBY_VERSION_DEFS="${RUBY_VERSION_DEFS} -DHAVE_RUBY_1_9"
fi
fi
if test "$RUBY_SERIES" -ge "30"; then
if test "$RUBY_SERIES" -ge "30"; then
AC_DEFINE_UNQUOTED(HAVE_RUBY_3, 1, [Defines if your system has Ruby 3.x])
AC_DEFINE_UNQUOTED(HAVE_RUBY_3, 1, [Defines if your system has Ruby 3.x])
RUBY_VERSION_DEFS="${RUBY_VERSION_DEFS} -DHAVE_RUBY_3"
fi
fi
if test `${RUBY_EXECUTABLE} -r rbconfig -e "puts RbConfig::CONFIG.key?(%q(rubyhdrdir))"` = "true"; then
if test `${RUBY_EXECUTABLE} -r rbconfig -e "puts RbConfig::CONFIG.key?(%q(rubyhdrdir))"` = "true"; then
@ -85,6 +88,7 @@ if test "x$compile_kross" = "xyes" ; then
AC_SUBST(RUBY_LIBRUBYARG)
AC_SUBST(RUBY_LIBRUBYARG)
AC_SUBST(RUBY_CFLAGS)
AC_SUBST(RUBY_CFLAGS)
AC_SUBST(RUBY_ENABLESHARED)
AC_SUBST(RUBY_ENABLESHARED)
AC_SUBST(RUBY_VERSION_DEFS)
AC_MSG_CHECKING(Ruby shared library)
AC_MSG_CHECKING(Ruby shared library)