config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Wed, 31 Mar 2010 00:09:47 +0300
changeset 96 270ce1cfc823
parent 95 f2f4c7810a72
child 109 2d2111cb5109
permissions -rw-r--r--
Enable compiler warnings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
72
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     1
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     2
/* Copyright 2009 Myhailo Danylenko
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     3
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     4
This file is part of mcabber-lua.
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     5
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     6
mcabber-lua is free software: you can redistribute it and/or modify
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     7
it under the terms of the GNU General Public License as published by
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     8
the Free Software Foundation, either version 2 of the License, or
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
     9
(at your option) any later version.
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    10
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    11
This program is distributed in the hope that it will be useful,
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    12
but WITHOUT ANY WARRANTY; without even the implied warranty of
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    14
GNU General Public License for more details.
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    15
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    16
You should have received a copy of the GNU General Public License
d049c92d0809 True print
Myhailo Danylenko <isbear@ukrpost.net>
parents: 30
diff changeset
    17
along with this program.  If not, see <http://www.gnu.org/licenses/>. */
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    18
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    19
#ifndef MLUA_CONFIG_H
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    20
#define MLUA_CONFIG_H
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    21
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    22
// define this to enable debugging output
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    23
#cmakedefine DEBUG
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    24
78
1253cacc0f21 Build system updates
Myhailo Danylenko <isbear@ukrpost.net>
parents: 72
diff changeset
    25
// define this to enable exporting mcabber connection for lua-loudmouth
1253cacc0f21 Build system updates
Myhailo Danylenko <isbear@ukrpost.net>
parents: 72
diff changeset
    26
#cmakedefine LLM_CONNECTION_ENABLE
1253cacc0f21 Build system updates
Myhailo Danylenko <isbear@ukrpost.net>
parents: 72
diff changeset
    27
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    28
// define this to enable lua-loudmouth log messages handler
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    29
#cmakedefine LLM_LOG_HANDLER
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    30
30
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    31
// size of background pipe reading buffer
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    32
#define MLUA_BGREAD_BUFFER   ( ${ML_BGREAD_BUFFER} )
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    33
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    34
// priority of glib event sources for timeout and bgread
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    35
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} )
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    36
95
f2f4c7810a72 Use new module struct with api version
Myhailo Danylenko <isbear@ukrpost.net>
parents: 92
diff changeset
    37
#define PROJECT_VERSION ( "${PROJECT_VERSION}" )
f2f4c7810a72 Use new module struct with api version
Myhailo Danylenko <isbear@ukrpost.net>
parents: 92
diff changeset
    38
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    39
#ifdef DEBUG
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    40
#  include <stdio.h>
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    41
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    42
#  ifndef MLUA_LOG_PREFIX
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    43
#    define MLUA_LOG_PREFIX ( NULL )
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    44
#  endif
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    45
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    46
#  define D(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    47
#  define I(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    48
#  define W(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    49
#  define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    50
#else
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    51
#  define D(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    52
#  define I(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    53
#  define W(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    54
#  define E(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    55
#endif
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    56
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    57
#endif
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    58