dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.093
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.093
dcaee6
Problem:    Configure can't use LuaJIT on ubuntu 12.04.
dcaee6
Solution:   Adjust the configure regexp that locates the version number.
dcaee6
	    (Charles Strahan)
dcaee6
Files:	    src/configure.in, src/auto/configure
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.092/src/configure.in	2013-11-04 04:57:46.000000000 +0100
dcaee6
--- src/configure.in	2013-11-17 20:12:04.000000000 +0100
dcaee6
***************
dcaee6
*** 496,502 ****
dcaee6
        if test "X$vi_cv_path_luajit" != "X"; then
dcaee6
  	dnl -- find LuaJIT version
dcaee6
  	AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit,
dcaee6
! 	[ vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]] .*/\1/'` ])
dcaee6
  	AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit,
dcaee6
  	[ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ])
dcaee6
  	vi_cv_path_lua="$vi_cv_path_luajit"
dcaee6
--- 496,502 ----
dcaee6
        if test "X$vi_cv_path_luajit" != "X"; then
dcaee6
  	dnl -- find LuaJIT version
dcaee6
  	AC_CACHE_CHECK(LuaJIT version, vi_cv_version_luajit,
dcaee6
! 	[ vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([[0-9.]]*\)\.[[0-9]]\(-[[a-z0-9]]\+\)\? .*/\1/'` ])
dcaee6
  	AC_CACHE_CHECK(Lua version of LuaJIT, vi_cv_version_lua_luajit,
dcaee6
  	[ vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` ])
dcaee6
  	vi_cv_path_lua="$vi_cv_path_luajit"
dcaee6
*** ../vim-7.4.092/src/auto/configure	2013-11-04 04:57:46.000000000 +0100
dcaee6
--- src/auto/configure	2013-11-17 20:13:30.000000000 +0100
dcaee6
***************
dcaee6
*** 4743,4749 ****
dcaee6
  if test "${vi_cv_version_luajit+set}" = set; then :
dcaee6
    $as_echo_n "(cached) " >&6
dcaee6
  else
dcaee6
!    vi_cv_version_luajit=`${vi_cv_path_luajit} -v | sed 's/LuaJIT \([0-9.]*\)\.[0-9] .*/\1/'`
dcaee6
  fi
dcaee6
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
dcaee6
  $as_echo "$vi_cv_version_luajit" >&6; }
dcaee6
--- 4743,4749 ----
dcaee6
  if test "${vi_cv_version_luajit+set}" = set; then :
dcaee6
    $as_echo_n "(cached) " >&6
dcaee6
  else
dcaee6
!    vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]\+\)\? .*/\1/'`
dcaee6
  fi
dcaee6
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5
dcaee6
  $as_echo "$vi_cv_version_luajit" >&6; }
dcaee6
*** ../vim-7.4.092/src/version.c	2013-11-14 03:54:02.000000000 +0100
dcaee6
--- src/version.c	2013-11-17 20:13:43.000000000 +0100
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     93,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
"Beware of bugs in the above code; I have only proved
dcaee6
it correct, not tried it." -- Donald Knuth
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///