2 * $Id: version.h,v 1.2 2004/09/28 18:10:08 andrei Exp $
4 * version and compile flags macros
7 * Copyright (C) 2004 FhG Fokus
9 * This file is part of ser, a free SIP server.
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
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:
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.
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
34 #define SER_FULL_VERSION NAME " " VERSION " (" ARCH "/" OS ")"
38 #define STATS_STR "STATS: On"
40 #define STATS_STR "STATS: Off"
44 #define USE_IPV6_STR ", USE_IPV6"
46 #define USE_IPV6_STR ""
50 #define USE_TCP_STR ", USE_TCP"
52 #define USE_TCP_STR ""
56 #define USE_TLS_STR ", USE_TLS"
58 #define USE_TLS_STR ""
63 #define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
65 #define DISABLE_NAGLE_STR ""
69 #define USE_MCAST_STR ", USE_MCAST"
71 #define USE_MCAST_STR ""
76 #define NO_DEBUG_STR ", NO_DEBUG"
78 #define NO_DEBUG_STR ""
82 #define NO_LOG_STR ", NO_LOG"
88 #define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
90 #define EXTRA_DEBUG_STR ""
94 #define DNS_IP_HACK_STR ", DNS_IP_HACK"
96 #define DNS_IP_HACK_STR ""
100 #define SHM_MEM_STR ", SHM_MEM"
102 #define SHM_MEM_STR ""
106 #define SHM_MMAP_STR ", SHM_MMAP"
108 #define SHM_MMAP_STR ""
112 #define PKG_MALLOC_STR ", PKG_MALLOC"
114 #define PKG_MALLOC_STR ""
118 #define VQ_MALLOC_STR ", VQ_MALLOC"
120 #define VQ_MALLOC_STR ""
124 #define F_MALLOC_STR ", F_MALLOC"
126 #define F_MALLOC_STR ""
130 #define USE_SHM_MEM_STR ", USE_SHM_MEM"
132 #define USE_SHM_MEM_STR ""
136 #define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
138 #define DBG_QM_MALLOC_STR ""
142 #define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
144 #define DBG_F_MALLOC_STR ""
148 #define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
150 #define DEBUG_DMALLOC_STR ""
155 #define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
156 #elif defined (ADAPTIVE_WAIT)
157 #define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
159 #define FAST_LOCK_STR ", FAST_LOCK"
162 #define FAST_LOCK_STR ""
165 #ifdef USE_PTHREAD_MUTEX
166 #define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
168 #define USE_PTHREAD_MUTEX_STR ""
172 #define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
174 #define USE_POSIX_SEM_STR ""
178 #define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
180 #define USE_SYSV_SEM_STR ""
185 #define NOSMP_STR "-NOSMP"
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 \