diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-04-15 14:44:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-04-15 14:44:57 +0200 |
commit | 768baacdc8f64d4ff8add87b5e1b96b36b266149 (patch) | |
tree | 675aaa041aa0804f51258f01d72d0dddf4dda8cc | |
parent | b376647bb1dfa856613ef17945a4c97b0bcc2e56 (diff) | |
download | vim-git-768baacdc8f64d4ff8add87b5e1b96b36b266149.tar.gz |
updated for version 7.3.897v7.3.897
Problem: Configure doesn't always find the shared library.
Solution: Change the configure script. (Ken Takata)
-rwxr-xr-x | src/auto/configure | 23 | ||||
-rw-r--r-- | src/configure.in | 27 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 36 insertions, 16 deletions
diff --git a/src/auto/configure b/src/auto/configure index 463529757..38539ad38 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -4737,15 +4737,24 @@ $as_echo "no" >&6; } if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" else - for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do - for i in 0 1 2 3 4 5 6 7 8 9; do - if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then - LUA_SONAME=".$i" - break - fi + multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` + if test "X$multiarch" != "X"; then + lib_multiarch="lib/${multiarch}" + fi + for subdir in "${lib_multiarch}" lib64 lib; do + if test -z "$subdir"; then + continue + fi + for sover in "${vi_cv_version_lua}.so" "-${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do + for i in .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 ""; do + if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${sover}$i"; then + sover2="$i" + break 3 + fi + done done - vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME" done + vi_cv_dll_name_lua="liblua${sover}$sover2" fi $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h diff --git a/src/configure.in b/src/configure.in index 3d53a43fc..d4cd310b6 100644 --- a/src/configure.in +++ b/src/configure.in @@ -494,17 +494,26 @@ if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" else - dnl Determine the SONAME for the current version, but fallback to - dnl liblua${vi_cv_version_lua}.so if no SONAME-versioned file is found. - for LUA_SOVER in "${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do - for i in 0 1 2 3 4 5 6 7 8 9; do - if test -f "${vi_cv_path_lua_pfx}/lib/liblua${LUA_SOVER}.$i"; then - LUA_SONAME=".$i" - break - fi + multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` + if test "X$multiarch" != "X"; then + lib_multiarch="lib/${multiarch}" + fi + dnl Determine the sover for the current version, but fallback to + dnl liblua${vi_cv_version_lua}.so if no sover-versioned file is found. + for subdir in "${lib_multiarch}" lib64 lib; do + if test -z "$subdir"; then + continue + fi + for sover in "${vi_cv_version_lua}.so" "-${vi_cv_version_lua}.so" ".so.${vi_cv_version_lua}"; do + for i in .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 ""; do + if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${sover}$i"; then + sover2="$i" + break 3 + fi + done done - vi_cv_dll_name_lua="liblua${LUA_SOVER}$LUA_SONAME" done + vi_cv_dll_name_lua="liblua${sover}$sover2" fi AC_DEFINE(DYNAMIC_LUA) LUA_LIBS="" diff --git a/src/version.c b/src/version.c index 121923a2f..fcc6e5eb6 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 897, +/**/ 896, /**/ 895, |