|
Karsten Hopp |
64dcfe |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
64dcfe |
Subject: Patch 7.3.176
|
|
Karsten Hopp |
64dcfe |
Fcc: outbox
|
|
Karsten Hopp |
64dcfe |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
64dcfe |
Mime-Version: 1.0
|
|
Karsten Hopp |
64dcfe |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
64dcfe |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
64dcfe |
------------
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
Patch 7.3.176
|
|
Karsten Hopp |
64dcfe |
Problem: Ruby linking doesn't work properly on Mac OS X.
|
|
Karsten Hopp |
64dcfe |
Solution: Fix the configure check for Ruby. (Bjorn Winckler)
|
|
Karsten Hopp |
64dcfe |
Files: src/configure.in, src/auto/configure
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
*** ../vim-7.3.175/src/configure.in 2011-05-05 17:23:58.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
--- src/configure.in 2011-05-05 18:03:38.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
***************
|
|
Karsten Hopp |
64dcfe |
*** 1387,1396 ****
|
|
Karsten Hopp |
64dcfe |
AC_MSG_RESULT($enable_rubyinterp)
|
|
Karsten Hopp |
64dcfe |
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
|
Karsten Hopp |
64dcfe |
AC_MSG_CHECKING(--with-ruby-command argument)
|
|
Karsten Hopp |
64dcfe |
AC_ARG_WITH(ruby-command, [ --with-ruby-command=RUBY name of the Ruby command (default: ruby)],
|
|
Karsten Hopp |
64dcfe |
! RUBY_CMD="$withval"; AC_MSG_RESULT($RUBY_CMD),
|
|
Karsten Hopp |
64dcfe |
RUBY_CMD="ruby"; AC_MSG_RESULT(defaulting to $RUBY_CMD))
|
|
Karsten Hopp |
64dcfe |
- AC_SUBST(vi_cv_path_ruby)
|
|
Karsten Hopp |
64dcfe |
AC_PATH_PROG(vi_cv_path_ruby, $RUBY_CMD)
|
|
Karsten Hopp |
64dcfe |
if test "X$vi_cv_path_ruby" != "X"; then
|
|
Karsten Hopp |
64dcfe |
AC_MSG_CHECKING(Ruby version)
|
|
Karsten Hopp |
64dcfe |
--- 1387,1396 ----
|
|
Karsten Hopp |
64dcfe |
AC_MSG_RESULT($enable_rubyinterp)
|
|
Karsten Hopp |
64dcfe |
if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then
|
|
Karsten Hopp |
64dcfe |
AC_MSG_CHECKING(--with-ruby-command argument)
|
|
Karsten Hopp |
64dcfe |
+ AC_SUBST(vi_cv_path_ruby)
|
|
Karsten Hopp |
64dcfe |
AC_ARG_WITH(ruby-command, [ --with-ruby-command=RUBY name of the Ruby command (default: ruby)],
|
|
Karsten Hopp |
64dcfe |
! RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; AC_MSG_RESULT($RUBY_CMD),
|
|
Karsten Hopp |
64dcfe |
RUBY_CMD="ruby"; AC_MSG_RESULT(defaulting to $RUBY_CMD))
|
|
Karsten Hopp |
64dcfe |
AC_PATH_PROG(vi_cv_path_ruby, $RUBY_CMD)
|
|
Karsten Hopp |
64dcfe |
if test "X$vi_cv_path_ruby" != "X"; then
|
|
Karsten Hopp |
64dcfe |
AC_MSG_CHECKING(Ruby version)
|
|
Karsten Hopp |
64dcfe |
***************
|
|
Karsten Hopp |
64dcfe |
*** 1412,1429 ****
|
|
Karsten Hopp |
64dcfe |
RUBY_LIBS="$rubylibs"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["LIBRUBYARG"]])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubyhdrdir/$librubyarg"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$rubyhdrdir/$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! else
|
|
Karsten Hopp |
64dcfe |
! rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["libdir"]])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubylibdir/$librubyarg"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$rubylibdir/$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! elif test "$librubyarg" = "libruby.a"; then
|
|
Karsten Hopp |
64dcfe |
! dnl required on Mac OS 10.3 where libruby.a doesn't exist
|
|
Karsten Hopp |
64dcfe |
! librubyarg="-lruby"
|
|
Karsten Hopp |
64dcfe |
! else
|
|
Karsten Hopp |
64dcfe |
! librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
|
|
Karsten Hopp |
64dcfe |
! fi
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
if test "X$librubyarg" != "X"; then
|
|
Karsten Hopp |
64dcfe |
--- 1412,1426 ----
|
|
Karsten Hopp |
64dcfe |
RUBY_LIBS="$rubylibs"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["LIBRUBYARG"]])'`
|
|
Karsten Hopp |
64dcfe |
! librubya=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["LIBRUBY_A"]])'`
|
|
Karsten Hopp |
64dcfe |
! rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG[["libdir"]])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubylibdir/$librubya"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
|
|
Karsten Hopp |
64dcfe |
! elif test "$librubyarg" = "libruby.a"; then
|
|
Karsten Hopp |
64dcfe |
! dnl required on Mac OS 10.3 where libruby.a doesn't exist
|
|
Karsten Hopp |
64dcfe |
! librubyarg="-lruby"
|
|
Karsten Hopp |
64dcfe |
! RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
if test "X$librubyarg" != "X"; then
|
|
Karsten Hopp |
64dcfe |
*** ../vim-7.3.175/src/auto/configure 2011-05-05 17:23:58.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
--- src/auto/configure 2011-05-05 18:06:47.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
***************
|
|
Karsten Hopp |
64dcfe |
*** 6218,6233 ****
|
|
Karsten Hopp |
64dcfe |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo_n "checking --with-ruby-command argument... " >&6; }
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
# Check whether --with-ruby-command was given.
|
|
Karsten Hopp |
64dcfe |
if test "${with_ruby_command+set}" = set; then :
|
|
Karsten Hopp |
64dcfe |
! withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo "$RUBY_CMD" >&6; }
|
|
Karsten Hopp |
64dcfe |
else
|
|
Karsten Hopp |
64dcfe |
RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo "defaulting to $RUBY_CMD" >&6; }
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
-
|
|
Karsten Hopp |
64dcfe |
# Extract the first word of "$RUBY_CMD", so it can be a program name with args.
|
|
Karsten Hopp |
64dcfe |
set dummy $RUBY_CMD; ac_word=$2
|
|
Karsten Hopp |
64dcfe |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
Karsten Hopp |
64dcfe |
--- 6218,6233 ----
|
|
Karsten Hopp |
64dcfe |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo_n "checking --with-ruby-command argument... " >&6; }
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
+
|
|
Karsten Hopp |
64dcfe |
# Check whether --with-ruby-command was given.
|
|
Karsten Hopp |
64dcfe |
if test "${with_ruby_command+set}" = set; then :
|
|
Karsten Hopp |
64dcfe |
! withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo "$RUBY_CMD" >&6; }
|
|
Karsten Hopp |
64dcfe |
else
|
|
Karsten Hopp |
64dcfe |
RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
|
|
Karsten Hopp |
64dcfe |
$as_echo "defaulting to $RUBY_CMD" >&6; }
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
# Extract the first word of "$RUBY_CMD", so it can be a program name with args.
|
|
Karsten Hopp |
64dcfe |
set dummy $RUBY_CMD; ac_word=$2
|
|
Karsten Hopp |
64dcfe |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
Karsten Hopp |
64dcfe |
***************
|
|
Karsten Hopp |
64dcfe |
*** 6292,6308 ****
|
|
Karsten Hopp |
64dcfe |
RUBY_LIBS="$rubylibs"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubyhdrdir/$librubyarg"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$rubyhdrdir/$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! else
|
|
Karsten Hopp |
64dcfe |
! rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubylibdir/$librubyarg"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$rubylibdir/$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! elif test "$librubyarg" = "libruby.a"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="-lruby"
|
|
Karsten Hopp |
64dcfe |
! else
|
|
Karsten Hopp |
64dcfe |
! librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
|
|
Karsten Hopp |
64dcfe |
! fi
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
if test "X$librubyarg" != "X"; then
|
|
Karsten Hopp |
64dcfe |
--- 6292,6305 ----
|
|
Karsten Hopp |
64dcfe |
RUBY_LIBS="$rubylibs"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
|
|
Karsten Hopp |
64dcfe |
! librubya=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBY_A"])'`
|
|
Karsten Hopp |
64dcfe |
! rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
|
|
Karsten Hopp |
64dcfe |
! if test -f "$rubylibdir/$librubya"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="$librubyarg"
|
|
Karsten Hopp |
64dcfe |
! RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
|
|
Karsten Hopp |
64dcfe |
! elif test "$librubyarg" = "libruby.a"; then
|
|
Karsten Hopp |
64dcfe |
! librubyarg="-lruby"
|
|
Karsten Hopp |
64dcfe |
! RUBY_LIBS="$RUBY_LIBS -L$rubylibdir"
|
|
Karsten Hopp |
64dcfe |
fi
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
if test "X$librubyarg" != "X"; then
|
|
Karsten Hopp |
64dcfe |
*** ../vim-7.3.175/src/version.c 2011-05-05 17:32:40.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
--- src/version.c 2011-05-05 18:08:52.000000000 +0200
|
|
Karsten Hopp |
64dcfe |
***************
|
|
Karsten Hopp |
64dcfe |
*** 716,717 ****
|
|
Karsten Hopp |
64dcfe |
--- 716,719 ----
|
|
Karsten Hopp |
64dcfe |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
64dcfe |
+ /**/
|
|
Karsten Hopp |
64dcfe |
+ 176,
|
|
Karsten Hopp |
64dcfe |
/**/
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
--
|
|
Karsten Hopp |
64dcfe |
"I simultaneously try to keep my head in the clouds and my feet on the
|
|
Karsten Hopp |
64dcfe |
ground. Sometimes it's a stretch, though." -- Larry Wall
|
|
Karsten Hopp |
64dcfe |
|
|
Karsten Hopp |
64dcfe |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
64dcfe |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
64dcfe |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
64dcfe |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|