config.h.in
changeset 143 4232a5da1af2
parent 115 47bed161e3b0
child 144 690b5524b895
equal deleted inserted replaced
142:7e8f523b66af 143:4232a5da1af2
     1 
     1 
     2 /* Copyright 2009 Myhailo Danylenko
     2 /* Copyright 2009-2012 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 
    27 // define this to enable exporting mcabber connection for lua-loudmouth
    30 // define this to enable exporting mcabber connection for lua-loudmouth
    28 #cmakedefine LLM_CONNECTION_ENABLE
    31 #cmakedefine LLM_CONNECTION_ENABLE
    29 
    32 
    30 // define this to enable lua-loudmouth log messages handler
    33 // define this to enable lua-loudmouth log messages handler
    31 #cmakedefine LLM_LOG_HANDLER
    34 #cmakedefine LLM_LOG_HANDLER
    35 
    38 
    36 // priority of glib event sources for timeout and bgread
    39 // priority of glib event sources for timeout and bgread
    37 #define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} )
    40 #define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} )
    38 
    41 
    39 #define PROJECT_VERSION ( "${PROJECT_VERSION}" )
    42 #define PROJECT_VERSION ( "${PROJECT_VERSION}" )
       
    43 
       
    44 #ifndef HAVE_LUA52
       
    45 #  define lua_rawlen lua_objlen
       
    46 #  define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
       
    47 #endif
    40 
    48 
    41 #ifdef DEBUG
    49 #ifdef DEBUG
    42 #  include <stdio.h>
    50 #  include <stdio.h>
    43 
    51 
    44 #  ifndef MLUA_LOG_PREFIX
    52 #  ifndef MLUA_LOG_PREFIX