G'day,

I just noticed that the current ruby detection code won't pick up
anything later than, I think, 1.6.8 when VERSION was changed to
RUBY_VERSION.

Regards,
Doug
 
Index: config/m4/ruby.m4
===================================================================
RCS file: /var/cvs/elinks/elinks/config/m4/ruby.m4,v
retrieving revision 1.11
diff -u -r1.11 ruby.m4
--- config/m4/ruby.m4   15 Jun 2005 21:07:03 -0000      1.11
+++ config/m4/ruby.m4   17 Jun 2005 12:40:36 -0000
@@ -32,8 +32,8 @@
        if test "$CONFIG_RUBY" != "no"; then
 
                AC_MSG_CHECKING(Ruby version)
-               if $CONFIG_RUBY -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 
2>/dev/null; then
-                       ruby_version=`$CONFIG_RUBY -e 'puts VERSION'`
+               if $CONFIG_RUBY -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or 
exit 1' >/dev/null 2>/dev/null; then
+                       ruby_version=`$CONFIG_RUBY -e 'puts "#{VERSION rescue 
RUBY_VERSION}"'`
                        AC_MSG_RESULT($ruby_version)
 
                        AC_MSG_CHECKING(for Ruby header files)
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to