diff options
| -rw-r--r-- | luaconf.h | 28 | ||||
| -rw-r--r-- | makefile | 2 |
2 files changed, 16 insertions, 14 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.73 2005/11/16 11:56:28 roberto Exp $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -28,26 +28,24 @@ | |||
| 28 | #define LUA_ANSI | 28 | #define LUA_ANSI |
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | 31 | #if defined(LUA_USE_LINUX) | |
| 32 | #if !defined(LUA_ANSI) | ||
| 33 | |||
| 34 | #if defined(__linux__) | ||
| 35 | #define LUA_USE_POSIX | 32 | #define LUA_USE_POSIX |
| 33 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ | ||
| 34 | #define LUA_USE_READLINE /* needs some extra libraries */ | ||
| 36 | #endif | 35 | #endif |
| 37 | 36 | ||
| 38 | #if defined(__APPLE__) && defined(__MACH__) | 37 | #if defined(LUA_USE_MACOSX) |
| 39 | #define LUA_USE_POSIX | 38 | #define LUA_USE_POSIX |
| 40 | #define LUA_DL_DYLD | 39 | #define LUA_DL_DYLD /* does not need extra library */ |
| 41 | #endif | ||
| 42 | |||
| 43 | #if defined(_WIN32) | ||
| 44 | #define LUA_DL_DLL | ||
| 45 | #endif | ||
| 46 | |||
| 47 | #endif | 40 | #endif |
| 48 | 41 | ||
| 49 | 42 | ||
| 50 | 43 | ||
| 44 | /* | ||
| 45 | @@ LUA_USE_POSIX includes all functionallity listed as X/Open System | ||
| 46 | @* Interfaces Extension (XSI). | ||
| 47 | ** CHANGE it (define it) if your system is XSI compatible. | ||
| 48 | */ | ||
| 51 | #if defined(LUA_USE_POSIX) | 49 | #if defined(LUA_USE_POSIX) |
| 52 | #define LUA_USE_MKSTEMP | 50 | #define LUA_USE_MKSTEMP |
| 53 | #define LUA_USE_ISATTY | 51 | #define LUA_USE_ISATTY |
| @@ -677,6 +675,10 @@ union luai_Cast { double l_d; long l_l; }; | |||
| 677 | #define LUA_DL_DLOPEN | 675 | #define LUA_DL_DLOPEN |
| 678 | #endif | 676 | #endif |
| 679 | 677 | ||
| 678 | #if !defined(LUA_ANSI) && defined(_WIN32) | ||
| 679 | #define LUA_DL_DLL | ||
| 680 | #endif | ||
| 681 | |||
| 680 | 682 | ||
| 681 | /* | 683 | /* |
| 682 | @@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State | 684 | @@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State |
| @@ -29,7 +29,7 @@ MYLIBS= | |||
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | # enable Linux goodies | 31 | # enable Linux goodies |
| 32 | MYCFLAGS= $(LOCAL) -DLUA_USE_DLOPEN -DLUA_USE_READLINE | 32 | MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX |
| 33 | MYLDFLAGS= -Wl,-E | 33 | MYLDFLAGS= -Wl,-E |
| 34 | MYLIBS= -ldl -lreadline -lhistory -lncurses | 34 | MYLIBS= -ldl -lreadline -lhistory -lncurses |
| 35 | 35 | ||
