Karsten Hopp fbc001
To: vim_dev@googlegroups.com
Karsten Hopp fbc001
Subject: Patch 7.4.222
Karsten Hopp fbc001
Fcc: outbox
Karsten Hopp fbc001
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fbc001
Mime-Version: 1.0
Karsten Hopp fbc001
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fbc001
Content-Transfer-Encoding: 8bit
Karsten Hopp fbc001
------------
Karsten Hopp fbc001
Karsten Hopp fbc001
Patch 7.4.222
Karsten Hopp fbc001
Problem:    The Ruby directory is constructed from parts.
Karsten Hopp fbc001
Solution:   Use 'rubyarchhdrdir' if it exists. (James McCoy)
Karsten Hopp fbc001
Files:	    src/configure.in, src/auto/configure
Karsten Hopp fbc001
Karsten Hopp fbc001
Karsten Hopp fbc001
*** ../vim-7.4.221/src/configure.in	2014-02-23 22:52:33.356764716 +0100
Karsten Hopp fbc001
--- src/configure.in	2014-03-27 17:13:09.624670867 +0100
Karsten Hopp fbc001
***************
Karsten Hopp fbc001
*** 1692,1700 ****
Karsten Hopp fbc001
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp fbc001
  	AC_MSG_RESULT($rubyhdrdir)
Karsten Hopp fbc001
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp fbc001
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['arch']]"`
Karsten Hopp fbc001
!         if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp fbc001
!           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp fbc001
          fi
Karsten Hopp fbc001
          rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
Karsten Hopp fbc001
  	if test "X$rubyversion" = "X"; then
Karsten Hopp fbc001
--- 1692,1700 ----
Karsten Hopp fbc001
        if test "X$rubyhdrdir" != "X"; then
Karsten Hopp fbc001
  	AC_MSG_RESULT($rubyhdrdir)
Karsten Hopp fbc001
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp fbc001
!         rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG[['rubyarchhdrdir']] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG[['arch']]"`
Karsten Hopp fbc001
!         if test -d "$rubyarchdir"; then
Karsten Hopp fbc001
!           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
Karsten Hopp fbc001
          fi
Karsten Hopp fbc001
          rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
Karsten Hopp fbc001
  	if test "X$rubyversion" = "X"; then
Karsten Hopp fbc001
*** ../vim-7.4.221/src/auto/configure	2014-02-23 22:52:33.364764715 +0100
Karsten Hopp fbc001
--- src/auto/configure	2014-03-27 17:14:25.256672026 +0100
Karsten Hopp fbc001
***************
Karsten Hopp fbc001
*** 6777,6785 ****
Karsten Hopp fbc001
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
Karsten Hopp fbc001
  $as_echo "$rubyhdrdir" >&6; }
Karsten Hopp fbc001
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp fbc001
!         rubyarch=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['arch']"`
Karsten Hopp fbc001
!         if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp fbc001
!           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp fbc001
          fi
Karsten Hopp fbc001
          rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
Karsten Hopp fbc001
  	if test "X$rubyversion" = "X"; then
Karsten Hopp fbc001
--- 6777,6785 ----
Karsten Hopp fbc001
  	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
Karsten Hopp fbc001
  $as_echo "$rubyhdrdir" >&6; }
Karsten Hopp fbc001
  	RUBY_CFLAGS="-I$rubyhdrdir"
Karsten Hopp fbc001
!         rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"`
Karsten Hopp fbc001
!         if test -d "$rubyarchdir"; then
Karsten Hopp fbc001
!           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir"
Karsten Hopp fbc001
          fi
Karsten Hopp fbc001
          rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"`
Karsten Hopp fbc001
  	if test "X$rubyversion" = "X"; then
Karsten Hopp fbc001
*** ../vim-7.4.221/src/version.c	2014-03-27 17:02:22.084660944 +0100
Karsten Hopp fbc001
--- src/version.c	2014-03-27 17:13:29.220671167 +0100
Karsten Hopp fbc001
***************
Karsten Hopp fbc001
*** 736,737 ****
Karsten Hopp fbc001
--- 736,739 ----
Karsten Hopp fbc001
  {   /* Add new patch number below this line */
Karsten Hopp fbc001
+ /**/
Karsten Hopp fbc001
+     222,
Karsten Hopp fbc001
  /**/
Karsten Hopp fbc001
Karsten Hopp fbc001
-- 
Karsten Hopp fbc001
Engineers are always delighted to share wisdom, even in areas in which they
Karsten Hopp fbc001
have no experience whatsoever.  Their logic provides them with inherent
Karsten Hopp fbc001
insight into any field of expertise.  This can be a problem when dealing with
Karsten Hopp fbc001
the illogical people who believe that knowledge can only be derived through
Karsten Hopp fbc001
experience.
Karsten Hopp fbc001
				(Scott Adams - The Dilbert principle)
Karsten Hopp fbc001
Karsten Hopp fbc001
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fbc001
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fbc001
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fbc001
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///