Karsten Hopp c91c20
To: vim_dev@googlegroups.com
Karsten Hopp c91c20
Subject: Patch 7.3.805
Karsten Hopp c91c20
Fcc: outbox
Karsten Hopp c91c20
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c91c20
Mime-Version: 1.0
Karsten Hopp c91c20
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c91c20
Content-Transfer-Encoding: 8bit
Karsten Hopp c91c20
------------
Karsten Hopp c91c20
Karsten Hopp c91c20
Patch 7.3.805
Karsten Hopp c91c20
Problem:    Lua version 5.2 is not detected properly on Arch Linux.
Karsten Hopp c91c20
Solution:   Adjust autoconf. (lilydjwg)
Karsten Hopp c91c20
Files:	    src/configure.in, src/auto/configure
Karsten Hopp c91c20
Karsten Hopp c91c20
Karsten Hopp c91c20
*** ../vim-7.3.804/src/configure.in	2013-01-30 14:55:34.000000000 +0100
Karsten Hopp c91c20
--- src/configure.in	2013-02-06 19:22:17.000000000 +0100
Karsten Hopp c91c20
***************
Karsten Hopp c91c20
*** 496,508 ****
Karsten Hopp c91c20
        else
Karsten Hopp c91c20
  	dnl Determine the SONAME for the current version, but fallback to
Karsten Hopp c91c20
  	dnl liblua${vi_cv_version_lua}.so if no SONAME-versioned file is found.
Karsten Hopp c91c20
! 	for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp c91c20
! 	  if test -f "${vi_cv_path_lua_pfx}/lib/liblua${vi_cv_version_lua}.so.$i"; then
Karsten Hopp c91c20
! 	    LUA_SONAME=".$i"
Karsten Hopp c91c20
! 	    break
Karsten Hopp c91c20
! 	  fi
Karsten Hopp c91c20
  	done
Karsten Hopp c91c20
- 	vi_cv_dll_name_lua="liblua${vi_cv_version_lua}.so$LUA_SONAME"
Karsten Hopp c91c20
        fi
Karsten Hopp c91c20
        AC_DEFINE(DYNAMIC_LUA)
Karsten Hopp c91c20
        LUA_LIBS=""
Karsten Hopp c91c20
--- 496,510 ----
Karsten Hopp c91c20
        else
Karsten Hopp c91c20
  	dnl Determine the SONAME for the current version, but fallback to
Karsten Hopp c91c20
  	dnl liblua${vi_cv_version_lua}.so if no SONAME-versioned file is found.
Karsten Hopp c91c20
! 	for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp c91c20
! 	  for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp c91c20
! 	    if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then
Karsten Hopp c91c20
! 	      LUA_SONAME=".$i"
Karsten Hopp c91c20
! 	      break
Karsten Hopp c91c20
! 	    fi
Karsten Hopp c91c20
! 	  done
Karsten Hopp c91c20
! 	  vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME"
Karsten Hopp c91c20
  	done
Karsten Hopp c91c20
        fi
Karsten Hopp c91c20
        AC_DEFINE(DYNAMIC_LUA)
Karsten Hopp c91c20
        LUA_LIBS=""
Karsten Hopp c91c20
*** ../vim-7.3.804/src/auto/configure	2013-01-30 14:55:34.000000000 +0100
Karsten Hopp c91c20
--- src/auto/configure	2013-02-06 19:24:11.000000000 +0100
Karsten Hopp c91c20
***************
Karsten Hopp c91c20
*** 4737,4749 ****
Karsten Hopp c91c20
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp c91c20
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp c91c20
        else
Karsten Hopp c91c20
! 			for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp c91c20
! 	  if test -f "${vi_cv_path_lua_pfx}/lib/liblua${vi_cv_version_lua}.so.$i"; then
Karsten Hopp c91c20
! 	    LUA_SONAME=".$i"
Karsten Hopp c91c20
! 	    break
Karsten Hopp c91c20
! 	  fi
Karsten Hopp c91c20
  	done
Karsten Hopp c91c20
- 	vi_cv_dll_name_lua="liblua${vi_cv_version_lua}.so$LUA_SONAME"
Karsten Hopp c91c20
        fi
Karsten Hopp c91c20
        $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
Karsten Hopp c91c20
  
Karsten Hopp c91c20
--- 4737,4751 ----
Karsten Hopp c91c20
        if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then
Karsten Hopp c91c20
  	vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll"
Karsten Hopp c91c20
        else
Karsten Hopp c91c20
! 			for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do
Karsten Hopp c91c20
! 	  for i in 0 1 2 3 4 5 6 7 8 9; do
Karsten Hopp c91c20
! 	    if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then
Karsten Hopp c91c20
! 	      LUA_SONAME=".$i"
Karsten Hopp c91c20
! 	      break
Karsten Hopp c91c20
! 	    fi
Karsten Hopp c91c20
! 	  done
Karsten Hopp c91c20
! 	  vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME"
Karsten Hopp c91c20
  	done
Karsten Hopp c91c20
        fi
Karsten Hopp c91c20
        $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h
Karsten Hopp c91c20
  
Karsten Hopp c91c20
*** ../vim-7.3.804/src/version.c	2013-02-06 18:44:57.000000000 +0100
Karsten Hopp c91c20
--- src/version.c	2013-02-06 19:26:37.000000000 +0100
Karsten Hopp c91c20
***************
Karsten Hopp c91c20
*** 727,728 ****
Karsten Hopp c91c20
--- 727,730 ----
Karsten Hopp c91c20
  {   /* Add new patch number below this line */
Karsten Hopp c91c20
+ /**/
Karsten Hopp c91c20
+     805,
Karsten Hopp c91c20
  /**/
Karsten Hopp c91c20
Karsten Hopp c91c20
-- 
Karsten Hopp c91c20
Permission is granted to read this message out aloud on Kings Cross Road,
Karsten Hopp c91c20
London, under the condition that the orator is properly dressed.
Karsten Hopp c91c20
Karsten Hopp c91c20
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c91c20
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c91c20
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c91c20
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///