comparison src/configure.ac @ 30421:425b686c5244 v9.0.0546

patch 9.0.0546: supporting Ruby 1.8 makes code complicated Commit: https://github.com/vim/vim/commit/236ccbf6f8a671a45b773de4b34558ecfdf9ac02 Author: K.Takata <kentkt@csc.jp> Date: Thu Sep 22 16:12:06 2022 +0100 patch 9.0.0546: supporting Ruby 1.8 makes code complicated Problem: Supporting Ruby 1.8 makes code complicated. Solution: Drop Ruby 1.8 support, it is ancient. (Ken Takata, closes https://github.com/vim/vim/issues/11195)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 17:15:03 +0200
parents 029c59bf78f1
children 101f08b49ed3
comparison
equal deleted inserted replaced
30420:920fc6b9b395 30421:425b686c5244
1988 RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; AC_MSG_RESULT($RUBY_CMD), 1988 RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; AC_MSG_RESULT($RUBY_CMD),
1989 RUBY_CMD="ruby"; AC_MSG_RESULT(defaulting to $RUBY_CMD)) 1989 RUBY_CMD="ruby"; AC_MSG_RESULT(defaulting to $RUBY_CMD))
1990 AC_PATH_PROG(vi_cv_path_ruby, $RUBY_CMD) 1990 AC_PATH_PROG(vi_cv_path_ruby, $RUBY_CMD)
1991 if test "X$vi_cv_path_ruby" != "X"; then 1991 if test "X$vi_cv_path_ruby" != "X"; then
1992 AC_MSG_CHECKING(Ruby version) 1992 AC_MSG_CHECKING(Ruby version)
1993 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 1993 if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.9.1" or exit 1' >/dev/null 2>/dev/null; then
1994 AC_MSG_RESULT(OK) 1994 AC_MSG_RESULT(OK)
1995 AC_MSG_CHECKING(Ruby rbconfig) 1995 AC_MSG_CHECKING(Ruby rbconfig)
1996 ruby_rbconfig="RbConfig" 1996 ruby_rbconfig="RbConfig"
1997 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 1997 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then
1998 ruby_rbconfig="Config" 1998 ruby_rbconfig="Config"
2007 if test -d "$rubyarchdir"; then 2007 if test -d "$rubyarchdir"; then
2008 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 2008 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
2009 fi 2009 fi
2010 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"` 2010 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
2011 if test "X$rubyversion" = "X"; then 2011 if test "X$rubyversion" = "X"; then
2012 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[[0,2]]"` 2012 rubyversion=`$vi_cv_path_ruby -e "print RUBY_VERSION.gsub(/\./, '')[[0,2]]"`
2013 fi 2013 fi
2014 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 2014 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
2015 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['LIBS']]"` 2015 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['LIBS']]"`
2016 if test "X$rubylibs" != "X"; then 2016 if test "X$rubylibs" != "X"; then
2017 RUBY_LIBS="$rubylibs" 2017 RUBY_LIBS="$rubylibs"
2060 fi 2060 fi
2061 else 2061 else
2062 AC_MSG_RESULT(not found; disabling Ruby) 2062 AC_MSG_RESULT(not found; disabling Ruby)
2063 fi 2063 fi
2064 else 2064 else
2065 AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later) 2065 AC_MSG_RESULT(too old; need Ruby version 1.9.1 or later)
2066 fi 2066 fi
2067 fi 2067 fi
2068 2068
2069 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 2069 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then
2070 AC_MSG_ERROR([could not configure Ruby]) 2070 AC_MSG_ERROR([could not configure Ruby])