config.h.in
author Myhailo Danylenko <isbear@ukrpost.net>
Thu, 21 May 2009 00:13:26 +0300
changeset 72 d049c92d0809
parent 30 2cf24aced294
child 78 1253cacc0f21
permissions -rw-r--r--
True print * print handles any arguments * copyright notices (not in examples yet)
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
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    25
// define this to enable lua-loudmouth log messages handler
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    26
#cmakedefine LLM_LOG_HANDLER
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    27
30
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    28
// size of background pipe reading buffer
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    29
#define MLUA_BGREAD_BUFFER   ( ${ML_BGREAD_BUFFER} )
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    30
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    31
// priority of glib event sources for timeout and bgread
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    32
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} )
2cf24aced294 Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents: 6
diff changeset
    33
1
7d87d323c889 Fixes and improvement
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    34
// hack for mcabber headers
7d87d323c889 Fixes and improvement
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    35
#define MODULES_ENABLE
7d87d323c889 Fixes and improvement
Myhailo Danylenko <isbear@ukrpost.net>
parents: 0
diff changeset
    36
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    37
#ifdef DEBUG
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    38
#  include <stdio.h>
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    39
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    40
#  ifndef MLUA_LOG_PREFIX
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    41
#    define MLUA_LOG_PREFIX ( NULL )
0
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    42
#  endif
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    43
3
a5f864d4207f Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1
diff changeset
    44
#  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
    45
#  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
    46
#  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
    47
#  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
    48
#else
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    49
#  define D(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    50
#  define I(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    51
#  define W(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    52
#  define E(FORMAT...) { /* FORMAT */ }
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    53
#endif
65cbecad22b4 Initial commit
Myhailo Danylenko <isbear@ukrpost.net>
parents:
diff changeset
    54
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