patch-src_configure_ac 1.2 KB

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-src_configure_ac,v 1.2 2017/04/29 21:04:29 sthen Exp $
  2. --- src/configure.ac.orig Fri Apr 28 14:45:46 2017
  3. +++ src/configure.ac Fri Apr 28 22:58:13 2017
  4. @@ -568,10 +568,10 @@ if test "$enable_luainterp" = "yes" -o "$enable_luaint
  5. AC_MSG_RESULT(yes)
  6. else
  7. AC_MSG_RESULT(no)
  8. - AC_MSG_CHECKING(if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua)
  9. - if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then
  10. + AC_MSG_CHECKING(if lua.h can be found in $vi_cv_path_lua_pfx/include/lua-$vi_cv_version_lua)
  11. + if test -f "$vi_cv_path_lua_pfx/include/lua-$vi_cv_version_lua/lua.h"; then
  12. AC_MSG_RESULT(yes)
  13. - LUA_INC=/lua$vi_cv_version_lua
  14. + LUA_INC=/lua-$vi_cv_version_lua
  15. else
  16. AC_MSG_RESULT(no)
  17. vi_cv_path_lua_pfx=
  18. @@ -596,9 +596,9 @@ if test "$enable_luainterp" = "yes" -o "$enable_luaint
  19. else
  20. if test "X$LUA_INC" != "X"; then
  21. dnl Test alternate location using version
  22. - LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
  23. + LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua -lm"
  24. else
  25. - LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
  26. + LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua -lm"
  27. fi
  28. fi
  29. if test "$enable_luainterp" = "dynamic"; then