summaryrefslogtreecommitdiff
path: root/src/luaconf.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/luaconf.h.in')
-rw-r--r--src/luaconf.h.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luaconf.h.in b/src/luaconf.h.in
index 1e7c39a..027691d 100644
--- a/src/luaconf.h.in
+++ b/src/luaconf.h.in
@@ -63,11 +63,13 @@
** Any exclamation mark ('!') in the path is replaced by the
** path of the directory of the executable file of the current process.
*/
+#cmakedefine LUA_MODULE_SUFFIX "@LUA_MODULE_SUFFIX@"
#cmakedefine LUA_ROOT "@LUA_ROOT@"
#cmakedefine LUA_LDIR "@LUA_LDIR@"
#cmakedefine LUA_CDIR "@LUA_CDIR@"
-#cmakedefine LUA_PATH_DEFAULT "@LUA_PATH_DEFAULT@"
-#cmakedefine LUA_CPATH_DEFAULT "@LUA_CPATH_DEFAULT@"
+
+#define LUA_PATH_DEFAULT "./?.lua;" LUA_ROOT "/" LUA_LDIR "/?.lua;" LUA_ROOT "/" LUA_LDIR "/?/init.lua"
+#define LUA_CPATH_DEFAULT "./?" LUA_MODULE_SUFFIX ";" LUA_ROOT "/" LUA_CDIR "/?" LUA_MODULE_SUFFIX ";" LUA_ROOT "/" LUA_CDIR "/loadall" LUA_MODULE_SUFFIX
/*
@@ LUA_DIRSEP is the directory separator (for submodules).