config.h.in 13.5 KB
Newer Older
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
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

/**@file win32/config.h.in
 * @brief <config.h> used by Windows.
 *
28
 * Use this on WIN32.
29 30 31 32 33 34
 *
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>
 *
 * @date Created: Tue Sep 12 19:22:54 2000 ppessi
 */

Pekka Pessi's avatar
Pekka Pessi committed
35
/* Define to as the random number source name. */
36 37
#undef DEV_URANDOM

Pekka Pessi's avatar
Pekka Pessi committed
38
/* Define to 1 if you have addrinfo structure. */
39 40 41 42 43 44 45 46 47 48 49 50 51 52
#define HAVE_ADDRINFO 1

/* Define to 1 if you have the `alarm' function. */
#undef HAVE_ALARM

/* Define to 1 if you have the <arpa/inet.h> header file. */
#undef HAVE_ARPA_INET_H

/* Define to 1 if you have the `clock_getcpuclockid' function. */
#undef HAVE_CLOCK_GETCPUCLOCKID

/* Define to 1 if you have the `clock_gettime' function. */
#undef HAVE_CLOCK_GETTIME

Pekka Pessi's avatar
Pekka Pessi committed
53
/* Define to 1 if you have /dev/urandom. */
54 55
#undef HAVE_DEV_URANDOM

Pekka Pessi's avatar
Pekka Pessi committed
56 57 58
/* Define to 1 if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H

59 60 61
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

Pekka Pessi's avatar
Pekka Pessi committed
62
/* Define to 1 if you have epoll interface. */
63 64
#undef HAVE_EPOLL

Pekka Pessi's avatar
Pekka Pessi committed
65 66 67
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H

68 69 70 71 72 73 74 75 76 77
/* Define this as 1 if you have WIN32 FILETIME type and
   GetSystemTimeAsFileTime(). */
#define HAVE_FILETIME 1

/* Define to 1 if you have the `flock' function. */
#undef HAVE_FLOCK

/* Define to 1 if you have the `freeaddrinfo' function. */
#define HAVE_FREEADDRINFO 1

Pekka Pessi's avatar
Pekka Pessi committed
78
/* Define to 1 if the C compiler supports __func__ */
79 80
#undef HAVE_FUNC

Pekka Pessi's avatar
Pekka Pessi committed
81
/* Define to 1 if the C compiler supports __FUNCTION__ */
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
#undef HAVE_FUNCTION

/* Define to 1 if you have the `gai_strerror' function. */
#define HAVE_GAI_STRERROR 1

/* Define to 1 if you have the `getaddrinfo' function. */
#define HAVE_GETADDRINFO 1

/* Define to 1 if you have the `getdelim' function. */
#undef HAVE_GETDELIM

/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1

/* Define to 1 if you have the `gethostname' function. */
#define HAVE_GETHOSTNAME 1

/* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS

/* Define to 1 if you have the `getipnodebyname' function. */
#undef HAVE_GETIPNODEBYNAME

/* Define to 1 if you have the `getline' function. */
#undef HAVE_GETLINE

/* Define to 1 if you have the `getnameinfo' function. */
#define HAVE_GETNAMEINFO 1

/* Define to 1 if you have the `getpass' function. */
#undef HAVE_GETPASS

/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY

/* Define to 1 if you have the <ifaddr.h> header file. */
#undef HAVE_IFADDR_H

Pekka Pessi's avatar
Pekka Pessi committed
120
/* Define to 1 if you have SIOCGIFCONF */
121 122
#undef HAVE_IFCONF

Pekka Pessi's avatar
Pekka Pessi committed
123
/* Define to 1 if you have SIOCGIFNUM ioctl */
124 125
#undef HAVE_IFNUM

Pekka Pessi's avatar
Pekka Pessi committed
126
/* Define to 1 if you have ifr_ifindex in <net/if.h> */
127 128
#undef HAVE_IFR_IFINDEX

Pekka Pessi's avatar
Pekka Pessi committed
129
/* Define to 1 if you have ifr_index in <net/if.h> */
130 131 132 133 134 135 136 137 138 139 140 141 142 143
#undef HAVE_IFR_INDEX

/* Define to 1 if you have the `if_nameindex' function. */
#undef HAVE_IF_NAMEINDEX

/* Define to 1 if you have the `inet_ntop' function. */
#undef HAVE_INET_NTOP

/* Define to 1 if you have the `inet_pton' function. */
#undef HAVE_INET_PTON

/* Define to 1 if you have the `initstate' function. */
#undef HAVE_INITSTATE

Pekka Pessi's avatar
Pekka Pessi committed
144
/* Define to 1 if you have inlining compiler */
145 146
#define HAVE_INLINE 1

Pekka Pessi's avatar
Pekka Pessi committed
147
/* Define to 1 if you have WIN32 INTERFACE_INFO_EX type. */
148 149 150 151 152
#undef HAVE_INTERFACE_INFO_EX

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

Pekka Pessi's avatar
Pekka Pessi committed
153
/* Define to 1 if you have the <iphlpapi.h> header file. */
154
#if _MSC_VER > 1200
155 156 157
#define HAVE_IPHLPAPI_H 1
#else
// XXX: vehmanek-win32-fix for VC6
158
#undef HAVE_IPHLPAPI_H
159
#endif
160

Pekka Pessi's avatar
Pekka Pessi committed
161
/* Define to 1 if you have IPV6_RECVERR in <netinet/in6.h> */
162 163
#undef HAVE_IPV6_RECVERR

Pekka Pessi's avatar
Pekka Pessi committed
164
/* Define to 1 if you have IP_RECVERR in <netinet/in.h> */
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
#undef HAVE_IP_RECVERR

/* Define to 1 if you have the `crypto' library (-lcrypto). */
#undef HAVE_LIBCRYPTO

/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1

/* Define to 1 if you have the `socket' library (-lsocket). */
#undef HAVE_LIBSOCKET

/* Define to 1 if you have the `ssl' library (-lssl). */
#undef HAVE_LIBSSL

/* Define to 1 if you have the `memccpy' function. */
#undef HAVE_MEMCCPY

/* Define to 1 if you have the `memcspn' function. */
#undef HAVE_MEMCSPN

/* Define to 1 if you have the `memmem' function. */
#undef HAVE_MEMMEM

/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the `memspn' function. */
#undef HAVE_MEMSPN

Pekka Pessi's avatar
Pekka Pessi committed
194
/* Define to 1 if you are compiling in MinGW environment */
195 196
#undef HAVE_MINGW

Pekka Pessi's avatar
Pekka Pessi committed
197 198 199
/* Define to 1 if you have MSG_TRUNC flag */
#undef HAVE_MSG_TRUNC

200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
/* Define to 1 if you have the <netdb.h> header file. */
#undef HAVE_NETDB_H

/* Define to 1 if you have the <netinet/in.h> header file. */
#undef HAVE_NETINET_IN_H

/* Define to 1 if you have the <netinet/sctp.h> header file. */
#undef HAVE_NETINET_SCTP_H

/* Define to 1 if you have the <netinet/tcp.h> header file. */
#undef HAVE_NETINET_TCP_H

/* Define to 1 if you have the <netpacket/packet.h> header file. */
#undef HAVE_NETPACKET_PACKET_H

/* Define to 1 if you have the <net/if.h> header file. */
#undef HAVE_NET_IF_H

/* Define to 1 if you have the <net/if_types.h> header file. */
#undef HAVE_NET_IF_TYPES_H

Pekka Pessi's avatar
Pekka Pessi committed
221
/* Define to 1 if you have OpenSSL */
222 223 224 225 226 227 228 229
#undef HAVE_OPENSSL

/* Define to 1 if you have the <openssl/tls1.h> header file. */
#undef HAVE_OPENSSL_TLS1_H

/* Define to 1 if you have the `poll' function. */
#undef HAVE_POLL

Pekka Pessi's avatar
Pekka Pessi committed
230
/* Define to 1 if you use poll in su_port. */
231
#undef HAVE_POLL_PORT
Pekka Pessi's avatar
Pekka Pessi committed
232 233

/* Define to 1 if you have /proc/net/if_inet6 control file */
234 235
#undef HAVE_PROC_NET_IF_INET6

Pekka Pessi's avatar
Pekka Pessi committed
236 237 238 239 240 241 242
/* Define to 1 if you have working pthread_rwlock_t implementation. A thread
   may hold multiple concurrent read locks on rwlock - that is, successfully
   call the pthread_rwlock_rdlock() function n times. If so, the application
   shall ensure that the thread performs matching unlocks - that is, it calls
   the pthread_rwlock_unlock() function n times. */
#undef HAVE_PTHREAD_RWLOCK

243 244 245 246 247 248 249
/* Define to 1 if you have the <pthread.h> header file. */
#define HAVE_PTHREAD_H 1

/* Define to 1 if you have the `random' function. */
/* See later */
#define HAVE_RANDOM 1

Pekka Pessi's avatar
Pekka Pessi committed
250
/* Define to 1 if you have sa_len in struct sockaddr */
251 252
#undef HAVE_SA_LEN

Pekka Pessi's avatar
Pekka Pessi committed
253
/* Define to 1 if you have SCTP */
254 255 256 257 258
#undef HAVE_SCTP

/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT

Pekka Pessi's avatar
Pekka Pessi committed
259
/* Define to 1 if you have Sofia sigcomp >= 2.5 */
260 261 262 263 264
#undef HAVE_SIGCOMP

/* Define to 1 if you have the <sigcomp.h> header file. */
#undef HAVE_SIGCOMP_H

Pekka Pessi's avatar
Pekka Pessi committed
265 266 267 268
/* Define to 1 if you have the `signal' function. */
#define HAVE_SIGNAL 1

/* Define to 1 if you have SIGPIPE */
269 270
#undef HAVE_SIGPIPE

Pekka Pessi's avatar
Pekka Pessi committed
271
/* Define to 1 if you have IPv6 structures and constants */
272 273
#define HAVE_SIN6 1

Pekka Pessi's avatar
Pekka Pessi committed
274
/* Define to 1 if you have WIN32 WSAIoctl SIO_ADDRESS_LIST_QUERY. */
275 276 277 278 279
#define HAVE_SIO_ADDRESS_LIST_QUERY 1

/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR

280 281 282
/* Define to 1 if we use NTH library */
#define HAVE_SOFIA_NTH 1

Pekka Pessi's avatar
Pekka Pessi committed
283 284 285 286
/* Define to 1 if we use NTLM library */
#undef HAVE_SOFIA_NTLM

/* Define to 1 if you have Sofia sigcomp >= 2.5 */
287 288
#undef HAVE_SOFIA_SIGCOMP

Pekka Pessi's avatar
Pekka Pessi committed
289
/* Define to 1 always */
290 291
#define HAVE_SOFIA_SIP 1

Pekka Pessi's avatar
Pekka Pessi committed
292
/* Define to 1 if we use S/MIME library */
293 294
#undef HAVE_SOFIA_SMIME

Pekka Pessi's avatar
Pekka Pessi committed
295
/* Define to 1 if we use DNS library */
296 297
#define HAVE_SOFIA_SRESOLV 1

Pekka Pessi's avatar
Pekka Pessi committed
298
/* Define to 1 if we use STUN library */
299 300
#undef HAVE_SOFIA_STUN

Pekka Pessi's avatar
Pekka Pessi committed
301
/* Define to 1 always */
302 303
#define HAVE_SOFIA_SU 1

Pekka Pessi's avatar
Pekka Pessi committed
304
/* Define to 1 if we use SRTP */
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
#undef HAVE_SRTP

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strcasestr' function. */
#undef HAVE_STRCASESTR

/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strtoull' function. */
#undef HAVE_STRTOULL

Pekka Pessi's avatar
Pekka Pessi committed
328
/* Define to 1 if your CC supports C99 struct initialization */
329 330 331 332 333
#undef HAVE_STRUCT_KEYWORDS

/* Define to 1 if you have the <sofia-sip/su_wait.h> header file. */
#define HAVE_SU_WAIT_H 1

Pekka Pessi's avatar
Pekka Pessi committed
334 335 336
/* Define to 1 if you have the <sys/epoll.h> header file. */
#undef HAVE_SYS_EPOLL_H

337 338 339
/* Define to 1 if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H

Pekka Pessi's avatar
Pekka Pessi committed
340 341 342
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H

343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H

/* Define to 1 if you have the <sys/socket.h> header file. */
#undef HAVE_SYS_SOCKET_H

/* Define to 1 if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the `tcsetattr' function. */
#undef HAVE_TCSETATTR

Pekka Pessi's avatar
Pekka Pessi committed
364
/* Define to 1 if you have TLS */
365 366 367 368 369
#undef HAVE_TLS

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

Pekka Pessi's avatar
Pekka Pessi committed
370
/* Define to 1 if we use UPnP */
371 372
#undef HAVE_UPNP

Pekka Pessi's avatar
Pekka Pessi committed
373
/* Define to 1 you have WIN32 */
374 375 376 377 378 379 380 381 382 383 384
#define HAVE_WIN32 1

/* Define to 1 if you have the <windef.h> header file. */
#define HAVE_WINDEF_H 1

/* Define to 1 if you have the <winsock2.h> header file. */
#define HAVE_WINSOCK2_H 1

/* Define to 1 if you have the <ws2tcpip.h> header file. */
#define HAVE_WS2TCPIP_H 1

Pekka Pessi's avatar
Pekka Pessi committed
385
/* Define to format (%lli) for long long */
386 387
#define LLI "%I64i"

Pekka Pessi's avatar
Pekka Pessi committed
388
/* Define to format (%llu) for unsigned long long */
389 390
#define LLU "%I64u"

Pekka Pessi's avatar
Pekka Pessi committed
391
/* Define to format (%llx) for long long hex */
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
#define LLX "%I64x"

/* Name of package */
#define PACKAGE "@PACKAGE@"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"

/* Define to the full name of this package. */
#define PACKAGE_NAME "@PACKAGE_NAME@"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "@PACKAGE_STRING@"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"

/* Define to the version of this package. */
#define PACKAGE_VERSION "@PACKAGE_VERSION@"

/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME

/* Version number of package */
#define VERSION "@PACKAGE_VERSION@"

/* Define to 1 if your processor stores words with the most significant byte
   first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN

/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif

/* Define to empty if `const' does not conform to ANSI C. */
#undef const

/* Define to `__inline__' or `__inline' if that's what the C compiler
   calls it, or to nothing if 'inline' is not supported under any name.  */
#ifndef __cplusplus
#define inline __inline
#endif

/* Define as at least 64-bit int type */
#define longlong __int64

/* Define to `unsigned' if <sys/types.h> does not define. */
/* PPe: defined in stddef.h */
#undef size_t

#define HOSTTYPE "pc-xp-win32"
/* #define HOSTTYPE "pc-98-win32" */
/* #define HOSTTYPE "pc-nt-win32" */

/* Define this as locale-independent strcmp().  */
#define strcasecmp  _stricmp

/* Define this as locale-independent strncmp().  */
#define strncasecmp _strnicmp

#define snprintf _snprintf
Michael Jerris's avatar
Michael Jerris committed
460

461
#ifndef _MSC_VER
Michael Jerris's avatar
Michael Jerris committed
462 463 464
#define vsnprintf _vsnprintf
#endif
#if _MSC_VER < 1500
465
#define vsnprintf _vsnprintf
Michael Jerris's avatar
Michael Jerris committed
466
#endif
467 468 469 470 471 472 473

#define srandom(x)    srand((x))
#define random()      rand()

/* This is GCC magic  */
#define __attribute__(x)

Pekka Pessi's avatar
Pekka Pessi committed
474
/* Define to 1 if you have TimeGetTime() */
475 476 477 478 479 480
#define HAVE_TIMEGETTIME     1

#define PATH_MAX _MAX_PATH

#define HAVE_WINMM 1

Pekka Pessi's avatar
Pekka Pessi committed
481
/* Define to 1 if you have FILETIME */
482 483
#define HAVE_FILETIME 1

Pekka Pessi's avatar
Pekka Pessi committed
484
/* Define to 1 if you have WinSock2 ioctl SIO_ADDRESS_LIST_QUERY */
485 486
#define HAVE_SIO_ADDRESS_LIST_QUERY 1

Pekka Pessi's avatar
Pekka Pessi committed
487
/* Define to 1 if you have INTERFACE_INFO ioctl */
488
#define HAVE_INTERFACE_INFO 	   (1)
489 490 491 492 493 494

/* Ignore certain warnings */
#ifdef _MSC_VER
#pragma warning( disable : 4090 4204 4244 4018 4514 4706 4761)
/* VC does not grok const */
#pragma warning( disable : 4022 4028 )
495
/* Temporarily disable high frequency, low value warnings.
496
   We may still want to re-enable and fix these */
497
#pragma warning( disable : 4132 4100 4127 4152)
498 499 500 501 502 503 504 505
#if (_MSC_VER >= 1400) // VC8+
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#endif // VC8+
506
#endif
507

508
/* size_t/ssize_t modifiers
509 510 511
 * ref: http://msdn2.microsoft.com/en-us/library/tcxf1dw6.aspx */
#define MOD_ZD "%ld"
#define MOD_ZU "%lu"