00001 /* gw-config.h. Generated by configure. */ 00002 /* ==================================================================== 00003 * The Kannel Software License, Version 1.0 00004 * 00005 * Copyright (c) 2001-2008 Kannel Group 00006 * Copyright (c) 1998-2001 WapIT Ltd. 00007 * All rights reserved. 00008 * 00009 * Redistribution and use in source and binary forms, with or without 00010 * modification, are permitted provided that the following conditions 00011 * are met: 00012 * 00013 * 1. Redistributions of source code must retain the above copyright 00014 * notice, this list of conditions and the following disclaimer. 00015 * 00016 * 2. Redistributions in binary form must reproduce the above copyright 00017 * notice, this list of conditions and the following disclaimer in 00018 * the documentation and/or other materials provided with the 00019 * distribution. 00020 * 00021 * 3. The end-user documentation included with the redistribution, 00022 * if any, must include the following acknowledgment: 00023 * "This product includes software developed by the 00024 * Kannel Group (http://www.kannel.org/)." 00025 * Alternately, this acknowledgment may appear in the software itself, 00026 * if and wherever such third-party acknowledgments normally appear. 00027 * 00028 * 4. The names "Kannel" and "Kannel Group" must not be used to 00029 * endorse or promote products derived from this software without 00030 * prior written permission. For written permission, please 00031 * contact org@kannel.org. 00032 * 00033 * 5. Products derived from this software may not be called "Kannel", 00034 * nor may "Kannel" appear in their name, without prior written 00035 * permission of the Kannel Group. 00036 * 00037 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 00038 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00039 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00040 * DISCLAIMED. IN NO EVENT SHALL THE KANNEL GROUP OR ITS CONTRIBUTORS 00041 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 00042 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00043 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 00044 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00045 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 00046 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00047 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00048 * ==================================================================== 00049 * 00050 * This software consists of voluntary contributions made by many 00051 * individuals on behalf of the Kannel Group. For more information on 00052 * the Kannel Group, please see <http://www.kannel.org/>. 00053 * 00054 * Portions of this software are based upon software originally written at 00055 * WapIT Ltd., Helsinki, Finland for the Kannel project. 00056 */ 00057 00058 #ifndef CONFIG_H 00059 #define CONFIG_H 00060 00061 /* Define one of these depending on which malloc wrapper you want to use. */ 00062 #define USE_GWMEM_NATIVE 1 00063 /* #undef USE_GWMEM_CHECK */ 00064 /* #undef USE_GWMEM_SLOW */ 00065 00066 /* Define if you want information about lock collisions to be collected. 00067 * These are useful for finding performance bottlenecks. */ 00068 /* #undef MUTEX_STATS */ 00069 00070 /* Define if you want log file timestamps in localtime instead of GMT. */ 00071 #define LOG_TIMESTAMP_LOCALTIME 1 00072 00073 /* Define if you have the ANSI C header files. */ 00074 #define STDC_HEADERS 1 00075 00076 /* Define if your compiler supports the __func__ magic symbol. This is 00077 part of C99. */ 00078 #define HAVE___FUNC__ 1 00079 00080 /* Define if your compiler supports the __FUNCTION__ magic symbol. */ 00081 #define HAVE___FUNCTION__ 1 00082 00083 /* Make sure __func__ does something useful. */ 00084 #if defined(HAVE___FUNC__) 00085 /* Nothing to do. Life is so wonderful. */ 00086 #elif defined(HAVE___FUNCTION__) 00087 #define __func__ __FUNCTION__ 00088 #else 00089 #define __func__ "unknown" 00090 #endif 00091 00092 /* Define if you have getopt.h. */ 00093 #define HAVE_GETOPT_H 1 00094 00095 /* Define if you have getopt(3). */ 00096 /* #undef HAVE_GETOPT */ 00097 00098 /* Define if you have a declaration for getopt(3) in <stdio.h>. */ 00099 /* #undef HAVE_GETOPT_IN_STDIO_H */ 00100 00101 /* Define if you have a declaration for getopt(3) in <unistd.h>. */ 00102 #define HAVE_GETOPT_IN_UNISTD_H 1 00103 00104 /* Define if you have getopt_long(3). */ 00105 #define HAVE_GETOPT_LONG 1 00106 00107 /* Define gateway name */ 00108 #define GW_NAME "Kannel" 00109 00110 /* Define which version we use */ 00111 #define GW_VERSION "cvs-20080429" 00112 00113 /* WMLScript debugging. */ 00114 /* #undef WS_DEBUG */ 00115 00116 /* Define if you have the gettimeofday function. */ 00117 #define HAVE_GETTIMEOFDAY 1 00118 00119 /* Define if you have the select function. */ 00120 #define HAVE_SELECT 1 00121 00122 /* Define if you have the socket function. */ 00123 #define HAVE_SOCKET 1 00124 00125 /* Define if you have the localtime_r function. */ 00126 #define HAVE_LOCALTIME_R 1 00127 00128 /* Define if you have the gmtime_r function. */ 00129 #define HAVE_GMTIME_R 1 00130 00131 /* Define if you have the backtrace function. */ 00132 #define HAVE_BACKTRACE 1 00133 00134 /* Define if you have the srandom function. */ 00135 #define HAVE_SRANDOM 1 00136 00137 /* Define if you have the <fcntl.h> header file. */ 00138 /* #undef HAVE_FCNTL_H */ 00139 00140 /* Define if you have the <pthread.h> header file. */ 00141 #define HAVE_PTHREAD_H 1 00142 00143 /* Define if you have the <sys/ioctl.h> header file. */ 00144 #define HAVE_SYS_IOCTL_H 1 00145 00146 /* Define if you have the <sys/types.h> header file. */ 00147 #define HAVE_SYS_TYPES_H 1 00148 00149 /* Define if you have the <unistd.h> header file. */ 00150 #define HAVE_UNISTD_H 1 00151 00152 /* Define if you have the <sys/poll.h> header file. */ 00153 #define HAVE_SYS_POLL_H 1 00154 00155 /* Define if you have the <stdlib.h> header file. */ 00156 #define HAVE_STDLIB_H 1 00157 00158 /* Define if you have the <sys/socket.h> header file. */ 00159 #define HAVE_SYS_SOCKET_H 1 00160 00161 /* Define if you have the <sys/sockio.h> header file. */ 00162 /* #undef HAVE_SYS_SOCKIO_H */ 00163 00164 /* Define if you have the <net/if.h> header file. */ 00165 #define HAVE_NET_IF_H 1 00166 00167 /* Define if you have the <netinet/in.h> header file. */ 00168 #define HAVE_NETINET_IN_H 1 00169 00170 /* Define if you have the m library (-lm). */ 00171 #define HAVE_LIBM 1 00172 00173 /* Define if you have the nsl library (-lnsl). */ 00174 #define HAVE_LIBNSL 1 00175 00176 /* Define if you have the pthread library (-lpthread). */ 00177 /* #undef HAVE_LIBPTHREAD */ 00178 00179 /* Define if you have the socket library (-lsocket). */ 00180 /* #undef HAVE_LIBSOCKET */ 00181 00182 /* Define if you have the xml library (-lxml). */ 00183 /* #undef HAVE_LIBXML */ 00184 00185 /* Define if you have the z library (-lz). */ 00186 /* #undef HAVE_LIBZ */ 00187 00188 /* Define if there is a socklen_t in <sys/socket.h> */ 00189 #define HAVE_SOCKLEN_T 1 00190 00191 /* Define if the PAM headers are on the local machine */ 00192 /* #undef HAVE_SECURITY_PAM_APPL_H */ 00193 00194 /* Define if you want to turn off assertion checking */ 00195 /* #undef NO_GWASSERT */ 00196 00197 /* Define if you have <syslog.h>. */ 00198 #define HAVE_SYSLOG_H 1 00199 00200 /* Define if you have <iconv.h>. */ 00201 #define HAVE_ICONV_H 1 00202 00203 /* Define if you have <execinfo.h>. */ 00204 #define HAVE_EXECINFO_H 1 00205 00206 /* Define if you have and want to use the ssl library (-lssl) */ 00207 #define HAVE_LIBSSL 1 00208 00209 /* Defined if we're using OpenSSL WTLS */ 00210 /* #undef HAVE_WTLS_OPENSSL */ 00211 00212 /* Define if you have and want to use the MySQL client library (-lmysqlclient) */ 00213 #define HAVE_MYSQL 1 00214 00215 /* Define if you have and want to use the sdb client library (-lsdb) */ 00216 /* #undef HAVE_SDB */ 00217 00218 /* Define if you have and want to use the OCI library */ 00219 /* #undef HAVE_ORACLE */ 00220 00221 /* Define if you have and want to use the SQLite database library (-lsqlite) */ 00222 /* #undef HAVE_SQLITE */ 00223 00224 /* Define if you have and want to use the SQLite3 database library (-lsqlite3) */ 00225 #define HAVE_SQLITE3 1 00226 00227 /* Define version of used libSDB */ 00228 /* #undef LIBSDB_VERSION */ 00229 00230 /* Define if you have and want to use the PostgreSQL dlr routines (-lpq) */ 00231 #define HAVE_PGSQL 1 00232 00233 /* Define if you want to have cookie support for the WSP */ 00234 #define ENABLE_COOKIES 1 00235 00236 /* Define if you want to have HTTP/1.1 keep-alive support */ 00237 #define USE_KEEPALIVE 1 00238 00239 /* Define not to include the WAP gateway parts */ 00240 /* #undef NO_WAP */ 00241 00242 /* Define not to include the SMS gateway parts */ 00243 /* #undef NO_SMS */ 00244 00245 /* Define for various gethostbyname_r functions */ 00246 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 00247 /* #undef HAVE_FUNC_GETHOSTBYNAME_R_5 */ 00248 /* #undef HAVE_FUNC_GETHOSTBYNAME_R_3 */ 00249 00250 /* Define if you have and want to use POSIX regular expressions */ 00251 #define HAVE_REGEX 1 00252 00253 /* Define if you have and want to use PCRE (Perl compatible regular expressions) */ 00254 #define HAVE_PCRE 1 00255 00256 /* Define version of used libpcre */ 00257 #define LIBPCRE_VERSION "4.5" 00258 00259 /* Define if you have pthread_spinlock_t type and spinlock support. */ 00260 #define HAVE_PTHREAD_SPINLOCK_T 1 00261 00262 /* Define if you have pthread_rwlock_t type and reader/writer lock support. */ 00263 #define HAVE_PTHREAD_RWLOCK 1 00264 00265 /* Define if you have working semaphore (sem_t). */ 00266 #define HAVE_SEMAPHORE 1 00267 00268 /* If we're using GCC, we can get it to check format function arguments. */ 00269 #ifdef __GNUC__ 00270 #define PRINTFLIKE(a,b) __attribute__((format(printf, a, b))) 00271 #else 00272 #define PRINTFLIKE(a, b) 00273 #endif 00274 00275 /* Define to `__inline__' or `__inline' if that's what the C compiler 00276 calls it, or to nothing if 'inline' is not supported under any name. */ 00277 #ifndef __cplusplus 00278 /* #undef inline */ 00279 #endif 00280 00281 #endif