config.h.in
changeset 148 b222f4d111d9
parent 147 66a63c9609de
child 151 5d90caa7fb2c
equal deleted inserted replaced
147:66a63c9609de 148:b222f4d111d9
     1 
     1 
     2 /* Copyright 2009-2012 Myhailo Danylenko
     2 /* Copyright 2009-2016 Myhailo Danylenko
     3 
     3 
     4 This file is part of mcabber-lua.
     4 This file is part of mcabber-lua.
     5 
     5 
     6 mcabber-lua is free software: you can redistribute it and/or modify
     6 mcabber-lua is free software: you can redistribute it and/or modify
     7 it under the terms of the GNU General Public License as published by
     7 it under the terms of the GNU General Public License as published by
    22 #include <mcabber/config.h>
    22 #include <mcabber/config.h>
    23 
    23 
    24 // define this to enable debugging output
    24 // define this to enable debugging output
    25 #cmakedefine DEBUG
    25 #cmakedefine DEBUG
    26 
    26 
    27 // define this if you are building with lua 5.2
       
    28 #cmakedefine HAVE_LUA52
       
    29 
       
    30 // define this if you want lua to create alias to '/lua' at module loading
    27 // define this if you want lua to create alias to '/lua' at module loading
    31 #cmakedefine ENABLE_LUA_ALIAS
    28 #cmakedefine ENABLE_LUA_ALIAS
    32 
    29 
    33 // define this to enable exporting mcabber connection for lua-loudmouth
    30 // define this to enable exporting mcabber connection for lua-loudmouth
    34 #cmakedefine LLM_CONNECTION_ENABLE
    31 #cmakedefine LLM_CONNECTION_ENABLE
    36 // define this to enable lua-loudmouth log messages handler
    33 // define this to enable lua-loudmouth log messages handler
    37 #cmakedefine LLM_LOG_HANDLER
    34 #cmakedefine LLM_LOG_HANDLER
    38 
    35 
    39 // indicates, whether mcabber have built-in carbons completion
    36 // indicates, whether mcabber have built-in carbons completion
    40 #cmakedefine HAVE_COMPL_CARBONS
    37 #cmakedefine HAVE_COMPL_CARBONS
       
    38 
       
    39 // name of module description struct
       
    40 #define MODULE_STRUCT info_${LUA_MODULENAME}
    41 
    41 
    42 // size of background pipe reading buffer
    42 // size of background pipe reading buffer
    43 #define MLUA_BGREAD_BUFFER   ( ${ML_BGREAD_BUFFER} )
    43 #define MLUA_BGREAD_BUFFER   ( ${ML_BGREAD_BUFFER} )
    44 
    44 
    45 // priority of glib event sources for timeout and bgread
    45 // priority of glib event sources for timeout and bgread
    49 
    49 
    50 #define MLUA_COMMAND_NAME "${LUA_MODULENAME}"
    50 #define MLUA_COMMAND_NAME "${LUA_MODULENAME}"
    51 #define OPT_MLUA_RC       "${OPT_MLUA_RC}"
    51 #define OPT_MLUA_RC       "${OPT_MLUA_RC}"
    52 #define OPT_MLUA_LM_DEBUG "${OPT_MLUA_LM_DEBUG}"
    52 #define OPT_MLUA_LM_DEBUG "${OPT_MLUA_LM_DEBUG}"
    53 
    53 
    54 #ifndef HAVE_LUA52
    54 // define if module is building againts lua 5.1
       
    55 #cmakedefine LUA51_COMPATIBILITY
       
    56 
       
    57 #ifdef LUA51_COMPATIBILITY
    55 #  define lua_rawlen lua_objlen
    58 #  define lua_rawlen lua_objlen
    56 #  define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
    59 #  define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
    57 #  define info_lua52 info_lua51
       
    58 #endif
    60 #endif
    59 
    61 
    60 #ifdef DEBUG
    62 #ifdef DEBUG
    61 #  include <stdio.h>
    63 #  include <stdio.h>
    62 
    64