chore(lua): Make LUA_DATADIR instead of PACKAGE_DATADIR

This commit is contained in:
PRESFIL
2025-07-07 08:50:07 +00:00
committed by Jari Sundell
parent 2829a73d8b
commit 7022722c64
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ AC_DEFUN([TORRENT_WITH_LUA], [
AX_LUA_LIBS
AX_LUA_HEADERS
AC_DEFINE(HAVE_LUA, 1, Use LUA.)
AC_DEFINE_UNQUOTED(PACKAGE_DATADIR, ["${prefix}/share/rtorrent"], Use LUA.)
AC_DEFINE_UNQUOTED(LUA_DATADIR, ["${prefix}/share/rtorrent/lua"], Use LUA.)
LIBS="$LIBS $LUA_LIB"
CXXFLAGS="$CXXFLAGS $LUA_INCLUDE"
fi
+1 -1
View File
@@ -25,7 +25,7 @@ namespace rpc {
const int LuaEngine::flag_string;
const std::string LuaEngine::module_name = "rtorrent";
const std::string LuaEngine::local_path = PACKAGE_DATADIR "/lua/?.lua;" PACKAGE_DATADIR "/lua/?/init.lua";
const std::string LuaEngine::local_path = LUA_DATADIR "/?.lua;" LUA_DATADIR "/?/init.lua";
#ifdef HAVE_LUA