mirror of https://github.com/rusefi/lua.git
no more "auto-detection"
This commit is contained in:
parent
7dd10a1d7e
commit
33b4dec1cb
28
luaconf.h
28
luaconf.h
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 roberto Exp roberto $
|
** $Id: luaconf.h,v 1.73 2005/11/16 11:56:28 roberto Exp $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -28,26 +28,24 @@
|
||||||
#define LUA_ANSI
|
#define LUA_ANSI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(LUA_USE_LINUX)
|
||||||
#if !defined(LUA_ANSI)
|
|
||||||
|
|
||||||
#if defined(__linux__)
|
|
||||||
#define LUA_USE_POSIX
|
#define LUA_USE_POSIX
|
||||||
|
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||||
|
#define LUA_USE_READLINE /* needs some extra libraries */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__) && defined(__MACH__)
|
#if defined(LUA_USE_MACOSX)
|
||||||
#define LUA_USE_POSIX
|
#define LUA_USE_POSIX
|
||||||
#define LUA_DL_DYLD
|
#define LUA_DL_DYLD /* does not need extra library */
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(_WIN32)
|
|
||||||
#define LUA_DL_DLL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
|
||||||
|
@* Interfaces Extension (XSI).
|
||||||
|
** CHANGE it (define it) if your system is XSI compatible.
|
||||||
|
*/
|
||||||
#if defined(LUA_USE_POSIX)
|
#if defined(LUA_USE_POSIX)
|
||||||
#define LUA_USE_MKSTEMP
|
#define LUA_USE_MKSTEMP
|
||||||
#define LUA_USE_ISATTY
|
#define LUA_USE_ISATTY
|
||||||
|
@ -677,6 +675,10 @@ union luai_Cast { double l_d; long l_l; };
|
||||||
#define LUA_DL_DLOPEN
|
#define LUA_DL_DLOPEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(LUA_ANSI) && defined(_WIN32)
|
||||||
|
#define LUA_DL_DLL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
|
@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
|
||||||
|
|
2
makefile
2
makefile
|
@ -29,7 +29,7 @@ MYLIBS=
|
||||||
|
|
||||||
|
|
||||||
# enable Linux goodies
|
# enable Linux goodies
|
||||||
MYCFLAGS= $(LOCAL) -DLUA_USE_DLOPEN -DLUA_USE_READLINE
|
MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX
|
||||||
MYLDFLAGS= -Wl,-E
|
MYLDFLAGS= -Wl,-E
|
||||||
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
MYLIBS= -ldl -lreadline -lhistory -lncurses
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue