* Richard W.M. Jones:
These three patches ought to fix configure script detection of Ruby,
especially on Debian where the Ruby C extensions library can be
something like '-lruby1.8'.
I came up with a simpler patch. Just tested that it compiles. Will build
now and upload 1.18.3-1.
Cheers,
-Hilko
--- a/configure.ac
+++ b/configure.ac
@@ -1020,11 +1020,12 @@ AC_ARG_ENABLE([ruby],
AS_IF([test "x$enable_ruby" != "xno"],[
AC_CHECK_PROG([RUBY],[ruby],[ruby],[no])
AC_CHECK_PROG([RAKE],[rake],[rake],[no])
- AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=])
+ ruby_soname=`$RUBY -rrbconfig -e 'puts
RbConfig::CONFIG[["RUBY_SO_NAME"]]'`
+ AC_CHECK_LIB([$ruby_soname],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=])
AC_SUBST([RAKE])
AS_IF([test -n "$HAVE_LIBRUBY"],[
old_LIBS="$LIBS"
- LIBS="$LIBS -lruby"
+ LIBS="$LIBS -l$ruby_soname"
AC_CHECK_FUNCS([rb_hash_lookup])
LIBS="$old_LIBS"
])