-
Notifications
You must be signed in to change notification settings - Fork 24
/
confopt.h
141 lines (131 loc) · 3.12 KB
/
confopt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*
* confopt.h -- string version of binkd options
*
* confopt.h is a part of binkd project
*
* Copyright (C) 2003 Alexander Reznikov, [email protected] (Fido 2:4600/220)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. See COPYING.
*/
/* Optional and compilation options */
/* Compiler: */
#if defined(__MINGW32__)
# define _DBNKD_COMPILER "mingw32"
#elif defined(_MSC_VER)
# define _DBNKD_COMPILER "msvc"
#elif defined(__WATCOMC__)
# define _DBNKD_COMPILER "watcom"
#elif defined(IBMC)
# define _DBNKD_COMPILER "ibmc"
#elif defined(__EMX__)
# if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 2))
# define _DBNKD_COMPILER "gcc (klibc)"
# else
# define _DBNKD_COMPILER "gcc (emx)"
# endif
#elif defined(__MSC__)
# define _DBNKD_COMPILER "msc"
#elif defined(__PCC__)
# define _DBNKD_COMPILER "pcc"
#elif defined(__clang__)
# define _DBNKD_COMPILER "clang"
#elif defined(__GNUC__)
# define _DBNKD_COMPILER "gcc"
#else
# define _DBNKD_COMPILER "unknown compiler"
#endif
/* binkd9x: */
#if defined(WIN32) && defined(BINKD9X)
# define _DBNKD_BINKD9X ", binkd9x"
#else
# define _DBNKD_BINKD9X
#endif
/* rtlstatic: */
#if defined(WIN32) && defined(RTLSTATIC)
# define _DBNKD_RTLSTATIC ", static"
#else
# define _DBNKD_RTLSTATIC
#endif
/* debug: */
#if defined(DEBUG)
# define _DBNKD_DEBUG ", debug"
#else
# define _DBNKD_DEBUG
#endif
#if defined(DEBUGCHILD)
# define _DBNKD_DEBUGCHILD ", debugchild (no fork)"
#else
# define _DBNKD_DEBUGCHILD
#endif
/* zlib, bzlib2: */
#ifdef WITH_ZLIB
# ifdef ZLIBDL
# define _DBNKD_ZLIB ", zlibdl"
# else
# define _DBNKD_ZLIB ", zlib"
# endif
#else
# define _DBNKD_ZLIB
#endif
#ifdef WITH_BZLIB2
# ifdef ZLIBDL
# define _DBNKD_BZLIB2 ", bzlib2dl"
# else
# define _DBNKD_BZLIB2 ", bzlib2"
# endif
#else
# define _DBNKD_BZLIB2
#endif
/* perl: */
#ifdef WITH_PERL
# ifdef PERLDL
# define _DBNKD_PERL ", perldl"
# else
# define _DBNKD_PERL ", perl"
# endif
#else
# define _DBNKD_PERL
#endif
/* core options: */
#ifdef HTTPS
# define _DBNKD_HTTPS ", https"
#else
# define _DBNKD_HTTPS
#endif
#ifdef NTLM
# define _DBNKD_NTLM ", ntlm"
#else
# define _DBNKD_NTLM
#endif
#ifdef AMIGADOS_4D_OUTBOUND
# define _DBNKD_AMIGADOS_4D_OUTBOUND ", amiga_4d_outbound"
#else
# define _DBNKD_AMIGADOS_4D_OUTBOUND
#endif
#ifdef BW_LIM
# define _DBNKD_BW_LIM ", bwlim"
#else
# define _DBNKD_BW_LIM
#endif
#ifdef IPV6
# define _DBNKD_IPV6 ", ipv6"
#else
# define _DBNKD_IPV6
#endif
#ifdef AF_FORCE
# define _DBNKD_AF_FORCE ", af_force"
#else
# define _DBNKD_AF_FORCE
#endif
#ifdef WITH_FSP1035
# define _DBNKD_FSP1035 ", fsp1035"
#else
# define _DBNKD_FSP1035
#endif
#define _DBNKD _DBNKD_COMPILER _DBNKD_BINKD9X _DBNKD_RTLSTATIC _DBNKD_DEBUG \
_DBNKD_DEBUGCHILD _DBNKD_ZLIB _DBNKD_BZLIB2 _DBNKD_PERL \
_DBNKD_HTTPS _DBNKD_NTLM _DBNKD_AMIGADOS_4D_OUTBOUND \
_DBNKD_BW_LIM _DBNKD_IPV6 _DBNKD_AF_FORCE _DBNKD_FSP1035