diff -r b7a636503298 -r 34efcb0681d8 hedgewars/LuaPas.pas --- a/hedgewars/LuaPas.pas Wed Mar 03 11:38:02 2010 +0000 +++ b/hedgewars/LuaPas.pas Wed Mar 03 14:35:48 2010 +0000 @@ -19,9 +19,17 @@ lua_State = record end; Plua_State = ^lua_State; -// only looking for "lua" might be dangerous but including version numbers -// unfortunately causes trouble on some linux/unix systems. -const LuaLibName = 'lua'; +const +{$IFDEF UNIX} + {$IFDEF DARWIN} + LuaLibName = 'lua'; + {$ELSE} + LuaLibName = 'lua5.1.so'; + {$ENDIF} +{$ELSE} + LuaLibName = 'lua.dll'; +{$ENDIF} + (*****************************************************************************) (* luaconfig.h *)