OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / user / ser / version.h
1 /*
2  * $Id: version.h,v 1.2 2004/09/28 18:10:08 andrei Exp $
3  *
4  * version and compile flags macros 
5  *
6  *
7  * Copyright (C) 2004 FhG Fokus
8  *
9  * This file is part of ser, a free SIP server.
10  *
11  * ser is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version
15  *
16  * For a license to use the ser software under conditions
17  * other than those described here, or to purchase support for this
18  * software, please contact iptel.org by e-mail at the following addresses:
19  *    info@iptel.org
20  *
21  * ser is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License 
27  * along with this program; if not, write to the Free Software 
28  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29  */
30
31 #ifndef version_h
32 #define version_h
33
34 #define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS ")" 
35
36
37 #ifdef STATS
38 #define STATS_STR  "STATS: On"
39 #else
40 #define STATS_STR  "STATS: Off"
41 #endif
42
43 #ifdef USE_IPV6
44 #define USE_IPV6_STR ", USE_IPV6"
45 #else
46 #define USE_IPV6_STR ""
47 #endif
48
49 #ifdef USE_TCP
50 #define USE_TCP_STR ", USE_TCP"
51 #else
52 #define USE_TCP_STR ""
53 #endif
54
55 #ifdef USE_TLS
56 #define USE_TLS_STR ", USE_TLS"
57 #else 
58 #define USE_TLS_STR ""
59 #endif
60
61
62 #ifdef DISABLE_NAGLE
63 #define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
64 #else
65 #define DISABLE_NAGLE_STR ""
66 #endif
67
68 #ifdef USE_MCAST
69 #define USE_MCAST_STR ", USE_MCAST"
70 #else
71 #define USE_MCAST_STR ""
72 #endif
73
74
75 #ifdef NO_DEBUG
76 #define NO_DEBUG_STR ", NO_DEBUG"
77 #else
78 #define NO_DEBUG_STR ""
79 #endif
80
81 #ifdef NO_LOG
82 #define NO_LOG_STR ", NO_LOG"
83 #else
84 #define NO_LOG_STR ""
85 #endif
86
87 #ifdef EXTRA_DEBUG
88 #define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
89 #else
90 #define EXTRA_DEBUG_STR ""
91 #endif
92
93 #ifdef DNS_IP_HACK
94 #define DNS_IP_HACK_STR ", DNS_IP_HACK"
95 #else
96 #define DNS_IP_HACK_STR ""
97 #endif
98
99 #ifdef SHM_MEM
100 #define SHM_MEM_STR ", SHM_MEM"
101 #else
102 #define SHM_MEM_STR ""
103 #endif
104
105 #ifdef SHM_MMAP
106 #define SHM_MMAP_STR ", SHM_MMAP"
107 #else
108 #define SHM_MMAP_STR ""
109 #endif
110
111 #ifdef PKG_MALLOC
112 #define PKG_MALLOC_STR ", PKG_MALLOC"
113 #else
114 #define PKG_MALLOC_STR ""
115 #endif
116
117 #ifdef VQ_MALLOC
118 #define VQ_MALLOC_STR ", VQ_MALLOC"
119 #else
120 #define VQ_MALLOC_STR ""
121 #endif
122
123 #ifdef F_MALLOC
124 #define F_MALLOC_STR ", F_MALLOC"
125 #else
126 #define F_MALLOC_STR ""
127 #endif
128
129 #ifdef USE_SHM_MEM
130 #define USE_SHM_MEM_STR ", USE_SHM_MEM"
131 #else
132 #define USE_SHM_MEM_STR ""
133 #endif
134
135 #ifdef DBG_QM_MALLOC
136 #define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
137 #else
138 #define DBG_QM_MALLOC_STR ""
139 #endif
140
141 #ifdef DBG_F_MALLOC
142 #define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
143 #else
144 #define DBG_F_MALLOC_STR ""
145 #endif
146
147 #ifdef DEBUG_DMALLOC
148 #define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
149 #else
150 #define DEBUG_DMALLOC_STR ""
151 #endif
152
153 #ifdef FAST_LOCK
154 #ifdef BUSY_WAIT
155 #define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
156 #elif defined (ADAPTIVE_WAIT)
157 #define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
158 #else
159 #define FAST_LOCK_STR ", FAST_LOCK"
160 #endif
161 #else
162 #define FAST_LOCK_STR ""
163 #endif
164
165 #ifdef USE_PTHREAD_MUTEX
166 #define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
167 #else
168 #define USE_PTHREAD_MUTEX_STR ""
169 #endif
170
171 #ifdef USE_POSIX_SEM
172 #define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
173 #else
174 #define USE_POSIX_SEM_STR ""
175 #endif
176
177 #ifdef USE_SYSV_SEM
178 #define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
179 #else
180 #define USE_SYSV_SEM_STR ""
181 #endif
182
183
184 #ifdef NOSMP
185 #define NOSMP_STR "-NOSMP"
186 #else
187 #define NOSMP_STR ""
188 #endif
189
190
191 #define SER_COMPILE_FLAGS \
192         STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
193         DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
194         SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR VQ_MALLOC_STR F_MALLOC_STR \
195         USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
196         FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
197         USE_SYSV_SEM_STR
198
199
200 #endif