config.h

Go to the documentation of this file.
00001 /* include/config.h.  Generated by configure.  */
00002 /* include/config.h.in.  Generated from configure.ac by autoheader.  */
00003 
00004 #ifndef CCXX_CONFIG_H_
00005 #define CCXX_CONFIG_H_
00006 #define __DLL
00007 #define __EXPORT
00008 #define __DLLRTL
00009 #define __EXPORT_TEMPLATE(x)
00010 /* #undef CCXX_EMPTY */
00011 #define CCXX_EMPTY
00012 #define CCXX_CLASS_EXPORT __EXPORT
00013 
00014 #define COMMON_64_CLEAN
00015 #define COMMON_ASYNC_OVERRIDE
00016 #define COMMON_OST_NAMESPACE
00017 #define COMMON_THREAD_SLEEP
00018 #define COMMON_NET_DEVICES
00019 #define COMMON_THREAD_DEBUG
00020 #define COMMON_DEADLOCK_DEBUG
00021 #define COMMON_NAMED_MUTEX
00022 #define COMMON_PROCESS_ATTACH
00023 #define COMMON_XML_PARSING
00024 
00025 #if     __GNUC__ > 1 && !defined(__STRICT_ANSI__) && !defined(__PEDANTIC__)
00026 #define DYNAMIC_LOCAL_ARRAYS
00027 #endif
00028 
00029 #if defined(__CYGWIN__)
00030 #define _POSIX_REALTIME_SIGNALS
00031 #define _POSIX_THREADS
00032 #endif
00033 
00034 #if defined(__APPLE__) && defined(__MACH__)
00035 #ifndef MACOSX
00036 #define MACOSX
00037 #define _P1003_1B_VISIBLE
00038 #endif
00039 #ifndef _PTHREADS
00040 #define _PTHREADS 1
00041 #endif
00042 #endif
00043 
00044 #if defined(__FreeBSD__)
00045 #ifndef __BSD_VISIBLE
00046 #define __BSD_VISIBLE 1
00047 #endif
00048 #endif
00049 
00050 #ifdef _AIX
00051 #ifndef _ALL_SOURCE
00052 #define _ALL_SOURCE
00053 #endif
00054 #endif
00055 
00056 #ifdef  __hpux
00057 #ifndef _XOPEN_SOURCE_EXTENDED
00058 #define _XOPEN_SOURCE_EXTENDED
00059 #endif
00060 #ifndef _INCLUDE_LONGLONG
00061 #define _INCLUDE_LONGLONG
00062 #endif
00063 #endif
00064 
00065 #define CCXX_PACKING
00066 #if defined(__GNUC__)
00067 #define CCXX_PACKED
00068 #elif !defined(__hpux) && !defined(_AIX)
00069 #define CCXX_PACKED
00070 #endif
00071 
00072 #if defined(__sun) || defined(__SUN__)
00073 #define __EXTENSIONS__ 1
00074 #endif
00075 
00076 #ifndef _REENTRANT
00077 #define _REENTRANT 1
00078 #endif
00079 
00080 #ifndef _THREAD_SAFE
00081 #define _THREAD_SAFE 1
00082 #endif
00083 
00084 #ifndef _GNU_SOURCE
00085 #define _GNU_SOURCE 1
00086 #endif
00087 
00088 #if     !defined(_XOPEN_SOURCE) && !defined(__FreeBSD__) &&!defined(__OpenBSD__) && !defined(__MACH__) && !defined(__NetBSD__)
00089 #define _XOPEN_SOURCE 600
00090 #endif
00091 
00092 
00093 
00094 /* hack for BROKEN autoheader, since it will not predicitably order
00095    macros by any obvious means. */
00096 
00097 #define HAVE_UNISTD_H 1
00098 #define HAVE_FEATURES_H 1
00099 #define HAVE_SYS_TYPES_H 1
00100 
00101 #ifdef HAVE_UNISTD_H
00102 #include <unistd.h>
00103 #endif
00104 
00105 #ifndef WIN32
00106 #ifdef  HAVE_FEATURES_H
00107 #include <features.h>
00108 #endif
00109 #endif
00110 
00111 #ifdef HAVE_SYS_TYPES_H
00112 #include <sys/types.h>
00113 #endif
00114 
00115 
00116 
00117 #define HAVE_SYS_TIME_H 1
00118 #define TIME_WITH_SYS_TIME 1
00119 #if TIME_WITH_SYS_TIME
00120 #include <sys/time.h>
00121 #else
00122 #if HAVE_SYS_TIME_H
00123 #include <sys/time.h>
00124 #endif
00125 #endif
00126 
00127 
00128 
00129 
00130 #define HAVE_SYS_TYPES_STD 1
00131 #define HAVE_SYS_TYPES_64 1
00132 #define HAVE_LONG_LONG 1
00133 /* #undef HAVE_SYS_TYPES */
00134 
00135 #ifdef HAVE_SYS_TYPES_H
00136 #include <sys/types.h>
00137 #endif
00138 
00139 #ifdef  HAVE_BITS_WORSIZE_H
00140 #include <bits/wordtypes.h>
00141 #endif
00142 
00143 #ifdef HAVE_SYS_TYPES_STD
00144 typedef int8_t int8;
00145 typedef u_int8_t uint8;
00146 typedef int16_t int16;
00147 typedef u_int16_t uint16;
00148 typedef int32_t int32;
00149 typedef u_int32_t uint32;
00150 #ifdef HAVE_SYS_TYPES_64
00151 #define HAVE_64_BITS
00152 typedef int64_t int64;
00153 typedef u_int64_t uint64;
00154 #endif
00155 #else
00156 typedef char int8;
00157 typedef unsigned char uint8;
00158 typedef short int16;
00159 typedef unsigned short uint16;
00160 typedef int int32;
00161 typedef unsigned int uint32;
00162 #endif
00163 
00164 #ifndef HAVE_SYS_TYPES_64
00165 #if defined(__WORDSIZE) || defined(__arch64__)
00166 #if __WORDSIZE >= 64 || defined(__arch64__)
00167 typedef long int int64;
00168 typedef unsigned long int uint64;
00169 #define HAVE_SYS_TYPES_64
00170 #define HAVE_64_BITS
00171 #endif
00172 #endif
00173 #endif
00174 
00175 #ifndef HAVE_SYS_TYPES_64
00176 #ifdef  __GNUC__
00177 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
00178 __extension__
00179 typedef long long int int64;
00180 __extension__
00181 typedef unsigned long long int uint64;
00182 #define HAVE_SYS_TYPES_64
00183 #define HAVE_64_BITS
00184 #endif
00185 #endif
00186 #endif
00187 
00188 #ifndef HAVE_SYS_TYPES_64
00189 #if defined(HAVE_LONG_LONG) || defined(_LONGLONG)
00190 #define HAVE_64_BITS
00191 typedef long long int64;
00192 typedef unsigned long long uint64;
00193 #endif
00194 #endif
00195 
00196 
00197 /* has c++ exception handling */
00198 #define CCXX_EXCEPTIONS 1
00199 
00200 /* have new with init */
00201 #define CCXX_HAVE_NEW_INIT 1
00202 
00203 /* has c++ namespaces */
00204 #define CCXX_NAMESPACES 1
00205 
00206 /* NAT support */
00207 #define CCXX_NAT 1
00208 
00209 /* define openssl */
00210 /* #undef CCXX_OPENSSL */
00211 
00212 /* defines ssl */
00213 /* #undef CCXX_SSL */
00214 
00215 /* aix fixes needed */
00216 /* #undef COMMON_AIX_FIXES */
00217 
00218 /* enable auditing */
00219 /* #undef COMMON_MEMORY_AUDIT */
00220 
00221 /* cygwin environment */
00222 /* #undef CYGWIN_IMPORTS */
00223 
00224 /* primary config prefix */
00225 #define ETC_CONFDIR "/usr/etc/"
00226 
00227 /* system config prefix */
00228 /* #undef ETC_PREFIX */
00229 
00230 /* Define to 1 if you have the <alloca.h> header file. */
00231 #define HAVE_ALLOCA_H 1
00232 
00233 /* Define to 1 if you have the <arpa/inet.h> header file. */
00234 #define HAVE_ARPA_INET_H 1
00235 
00236 /* atomic aix operations */
00237 /* #undef HAVE_ATOMIC_AIX */
00238 
00239 /* Define to 1 if you have the <bits/atomicity.h> header file. */
00240 #define HAVE_BITS_ATOMICITY_H 1
00241 
00242 /* Define to 1 if you have the <bits/wordsize.h> header file. */
00243 #define HAVE_BITS_WORDSIZE_H 1
00244 
00245 /* have bool type */
00246 #define HAVE_BOOL_TYPE 1
00247 
00248 /* Define to 1 if you have the <bsd/signal.h> header file. */
00249 /* #undef HAVE_BSD_SIGNAL_H */
00250 
00251 /* Define to 1 if you have the <dlfcn.h> header file. */
00252 #define HAVE_DLFCN_H 1
00253 
00254 /* have endian header */
00255 #define HAVE_ENDIAN_H 1
00256 
00257 /* Define to 1 if you have the <errno.h> header file. */
00258 #define HAVE_ERRNO_H 1
00259 
00260 /* Define to 1 if you have the <exception> header file. */
00261 #define HAVE_EXCEPTION 1
00262 
00263 /* Enable extras */
00264 #define HAVE_EXTRAS 1
00265 
00266 /* Define to 1 if you have the <fcntl.h> header file. */
00267 #define HAVE_FCNTL_H 1
00268 
00269 /* Define to 1 if you have the <features.h> header file. */
00270 #define HAVE_FEATURES_H 1
00271 
00272 /* has gcc atomic functions */
00273 /* #undef HAVE_GCC_BITS_ATOMIC */
00274 
00275 /* has __gnu_cxx atomic functions */
00276 #define HAVE_GCC_CXX_BITS_ATOMIC 1
00277 
00278 /* getaddrinfo interface support */
00279 #define HAVE_GETADDRINFO 1
00280 
00281 /* reentrant getgrnam */
00282 #define HAVE_GETGRNAM_R 1
00283 
00284 /* ipv6 host lookup */
00285 #define HAVE_GETHOSTBYNAME2 1
00286 
00287 /* have getopt header */
00288 #define HAVE_GETOPT 1
00289 
00290 /* Define to 1 if you have the <getopt.h> header file. */
00291 #define HAVE_GETOPT_H 1
00292 
00293 /* Define to 1 if you have the `getopt_long' function. */
00294 #define HAVE_GETOPT_LONG 1
00295 
00296 /* Define to 1 if you have the `getpagesize' function. */
00297 #define HAVE_GETPAGESIZE 1
00298 
00299 /* reentrant getnam */
00300 #define HAVE_GETPWNAM_R 1
00301 
00302 /* reentrant getuid */
00303 #define HAVE_GETPWUID_R 1
00304 
00305 /* Define to 1 if you have the `gettimeofday' function. */
00306 #define HAVE_GETTIMEOFDAY 1
00307 
00308 /* has inet_aton */
00309 #define HAVE_INET_ATON 1
00310 
00311 /* ipv6 support */
00312 #define HAVE_INET_PTON 1
00313 
00314 /* inet sockets */
00315 #define HAVE_INET_SOCKETS 1
00316 
00317 /* Define to 1 if you have the <inttypes.h> header file. */
00318 #define HAVE_INTTYPES_H 1
00319 
00320 /* Define to 1 if you have the <ioctl.h> header file. */
00321 /* #undef HAVE_IOCTL_H */
00322 
00323 /* Define to 1 if you have the <ip_compat.h> header file. */
00324 /* #undef HAVE_IP_COMPAT_H */
00325 
00326 /* Define to 1 if you have the <ip_fil_compat.h> header file. */
00327 /* #undef HAVE_IP_FIL_COMPAT_H */
00328 
00329 /* Define to 1 if you have the <ip_fil.h> header file. */
00330 /* #undef HAVE_IP_FIL_H */
00331 
00332 /* Define to 1 if you have the <ip_nat.h> header file. */
00333 /* #undef HAVE_IP_NAT_H */
00334 
00335 /* Define to 1 if you have the `malloc' library (-lmalloc). */
00336 /* #undef HAVE_LIBMALLOC */
00337 
00338 /* uses libxml2 */
00339 #define HAVE_LIBXML 1
00340 
00341 /* Define to 1 if you have the <limits.h> header file. */
00342 #define HAVE_LIMITS_H 1
00343 
00344 /* Define to 1 if you have the <linux/in6.h> header file. */
00345 #define HAVE_LINUX_IN6_H 1
00346 
00347 /* Define to 1 if you have the <linux/netfilter_ipv4.h> header file. */
00348 #define HAVE_LINUX_NETFILTER_IPV4_H 1
00349 
00350 /* Define to 1 if you have the <linux/netfilter_ipv6.h> header file. */
00351 #define HAVE_LINUX_NETFILTER_IPV6_H 1
00352 
00353 /* reentrant localtime */
00354 #define HAVE_LOCALTIME_R 1
00355 
00356 /* Define to 1 if you have the `lockf' function. */
00357 #define HAVE_LOCKF 1
00358 
00359 /* have long longs */
00360 #define HAVE_LONG_LONG 1
00361 
00362 /* Define to 1 if you have the `lstat' function. */
00363 #define HAVE_LSTAT 1
00364 
00365 /* mach dybloader */
00366 /* #undef HAVE_MACH_DYLD */
00367 
00368 /* Define to 1 if you have the <mach-o/dyld.h> header file. */
00369 /* #undef HAVE_MACH_O_DYLD_H */
00370 
00371 /* Define to 1 if you have the `memmove' function. */
00372 #define HAVE_MEMMOVE 1
00373 
00374 /* Define to 1 if you have the <memory.h> header file. */
00375 #define HAVE_MEMORY_H 1
00376 
00377 /* Define to 1 if you have the `mlock' function. */
00378 #define HAVE_MLOCK 1
00379 
00380 /* Define to 1 if you have the `mlockall' function. */
00381 #define HAVE_MLOCKALL 1
00382 
00383 /* support for plugin modules */
00384 #define HAVE_MODULES 1
00385 
00386 /* IPF NAT support */
00387 /* #undef HAVE_NAT_IPF */
00388 
00389 /* NetFilter NAT support */
00390 #define HAVE_NAT_NETFILTER 1
00391 
00392 /* PF NAT support */
00393 /* #undef HAVE_NAT_PF */
00394 
00395 /* Define to 1 if you have the <netinet6/in6.h> header file. */
00396 /* #undef HAVE_NETINET6_IN6_H */
00397 
00398 /* Define to 1 if you have the <netinet/inet.h> header file. */
00399 /* #undef HAVE_NETINET_INET_H */
00400 
00401 /* Define to 1 if you have the <netinet/in.h> header file. */
00402 #define HAVE_NETINET_IN_H 1
00403 
00404 /* Define to 1 if you have the <netinet/in_systm.h> header file. */
00405 #define HAVE_NETINET_IN_SYSTM_H 1
00406 
00407 /* Define to 1 if you have the <netinet/ip_compat.h> header file. */
00408 /* #undef HAVE_NETINET_IP_COMPAT_H */
00409 
00410 /* Define to 1 if you have the <netinet/ip_fil_compat.h> header file. */
00411 /* #undef HAVE_NETINET_IP_FIL_COMPAT_H */
00412 
00413 /* Define to 1 if you have the <netinet/ip_fil.h> header file. */
00414 /* #undef HAVE_NETINET_IP_FIL_H */
00415 
00416 /* Define to 1 if you have the <netinet/ip.h> header file. */
00417 #define HAVE_NETINET_IP_H 1
00418 
00419 /* Define to 1 if you have the <netinet/ip_nat.h> header file. */
00420 /* #undef HAVE_NETINET_IP_NAT_H */
00421 
00422 /* Define to 1 if you have the <net/if.h> header file. */
00423 #define HAVE_NET_IF_H 1
00424 
00425 /* Define to 1 if you have the <net/pfvar.h> header file. */
00426 /* #undef HAVE_NET_PFVAR_H */
00427 
00428 /* old style iostreams */
00429 /* #undef HAVE_OLD_IOSTREAM */
00430 
00431 /* Define to 1 if you have the `poll' function. */
00432 #define HAVE_POLL 1
00433 
00434 /* Define to 1 if you have the <poll.h> header file. */
00435 #define HAVE_POLL_H 1
00436 
00437 /* Define to 1 if you have the `posix_memalign' function. */
00438 #define HAVE_POSIX_MEMALIGN 1
00439 
00440 /* has pwrite */
00441 #define HAVE_PREAD_PWRITE 1
00442 
00443 /* has stack size */
00444 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
00445 
00446 /* has cancel */
00447 #define HAVE_PTHREAD_CANCEL 1
00448 
00449 /* has non portable delay */
00450 /* #undef HAVE_PTHREAD_DELAY_NP */
00451 
00452 /* posix thread header */
00453 #define HAVE_PTHREAD_H 1
00454 
00455 /* has mach link */
00456 /* #undef HAVE_PTHREAD_MACH_THREAD_NP */
00457 
00458 /* has non portable setkind */
00459 /* #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP */
00460 
00461 /* has setttype */
00462 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1
00463 
00464 /* has non portable settype */
00465 /* #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP */
00466 
00467 /* has nanosleep */
00468 #define HAVE_PTHREAD_NANOSLEEP 1
00469 
00470 /* Define to 1 if you have the <pthread_np.h> header file. */
00471 /* #undef HAVE_PTHREAD_NP_H */
00472 
00473 /* has rwlock support */
00474 #define HAVE_PTHREAD_RWLOCK 1
00475 
00476 /* has sched yield */
00477 /* #undef HAVE_PTHREAD_SCHED_YIELD */
00478 
00479 /* has setcancel */
00480 /* #undef HAVE_PTHREAD_SETCANCEL */
00481 
00482 /* has setcanceltype */
00483 #define HAVE_PTHREAD_SETCANCELTYPE 1
00484 
00485 /* has suspend */
00486 /* #undef HAVE_PTHREAD_SUSPEND */
00487 
00488 /* has yield */
00489 #define HAVE_PTHREAD_YIELD 1
00490 
00491 /* has np yield */
00492 /* #undef HAVE_PTHREAD_YIELD_NP */
00493 
00494 /* reentrant readdir */
00495 #define HAVE_READDIR_R 1
00496 
00497 /* Define to 1 if you have the `realpath' function. */
00498 #define HAVE_REALPATH 1
00499 
00500 /* Define to 1 if you have the `sched_getscheduler' function. */
00501 #define HAVE_SCHED_GETSCHEDULER 1
00502 
00503 /* Define to 1 if you have the <sched.h> header file. */
00504 #define HAVE_SCHED_H 1
00505 
00506 /* Define to 1 if you have the <select.h> header file. */
00507 /* #undef HAVE_SELECT_H */
00508 
00509 /* Define to 1 if you have the <semaphore.h> header file. */
00510 #define HAVE_SEMAPHORE_H 1
00511 
00512 /* Define to 1 if you have the `setegid' function. */
00513 #define HAVE_SETEGID 1
00514 
00515 /* Define to 1 if you have the `setenv' function. */
00516 #define HAVE_SETENV 1
00517 
00518 /* Define to 1 if you have the `setitimer' function. */
00519 #define HAVE_SETITIMER 1
00520 
00521 /* Define to 1 if you have the `setpgrp' function. */
00522 #define HAVE_SETPGRP 1
00523 
00524 /* have shload plugins */
00525 /* #undef HAVE_SHL_LOAD */
00526 
00527 /* Define to 1 if you have the `sigaction' function. */
00528 #define HAVE_SIGACTION 1
00529 
00530 /* Define to 1 if you have the `sigwait' function. */
00531 #define HAVE_SIGWAIT 1
00532 
00533 /* 2 argument form */
00534 #define HAVE_SIGWAIT2 1
00535 
00536 /* Define to 1 if you have the `snprintf' function. */
00537 #define HAVE_SNPRINTF 1
00538 
00539 /* has socklen_t type */
00540 #define HAVE_SOCKLEN_T 1
00541 
00542 /* Define to 1 if you have the <sstream> header file. */
00543 #define HAVE_SSTREAM 1
00544 
00545 /* Define to 1 if you have the <ss.h> header file. */
00546 /* #undef HAVE_SS_H */
00547 
00548 /* Define to 1 if you have the <stdint.h> header file. */
00549 #define HAVE_STDINT_H 1
00550 
00551 /* Define to 1 if you have the <stdlib.h> header file. */
00552 #define HAVE_STDLIB_H 1
00553 
00554 /* Define to 1 if you have the `strcasecmp' function. */
00555 #define HAVE_STRCASECMP 1
00556 
00557 /* Define to 1 if you have the `strdup' function. */
00558 #define HAVE_STRDUP 1
00559 
00560 /* reentrant strerror */
00561 #define HAVE_STRERROR_R 1
00562 
00563 /* Define to 1 if you have the <strings.h> header file. */
00564 #define HAVE_STRINGS_H 1
00565 
00566 /* Define to 1 if you have the <string.h> header file. */
00567 #define HAVE_STRING_H 1
00568 
00569 /* reentrant strtok */
00570 #define HAVE_STRTOK_R 1
00571 
00572 /* Define to 1 if you have the <syslog.h> header file. */
00573 #define HAVE_SYSLOG_H 1
00574 
00575 /* Define to 1 if you have the <syslog.hposix_evlog.h> header file. */
00576 /* #undef HAVE_SYSLOG_HPOSIX_EVLOG_H */
00577 
00578 /* Define to 1 if you have the <sys/atomic.h> header file. */
00579 /* #undef HAVE_SYS_ATOMIC_H */
00580 
00581 /* Define to 1 if you have the <sys/atomic_op.h> header file. */
00582 /* #undef HAVE_SYS_ATOMIC_OP_H */
00583 
00584 /* Define to 1 if you have the <sys/fcntl.h> header file. */
00585 #define HAVE_SYS_FCNTL_H 1
00586 
00587 /* Define to 1 if you have the <sys/file.h> header file. */
00588 #define HAVE_SYS_FILE_H 1
00589 
00590 /* Define to 1 if you have the <sys/ioctl.h> header file. */
00591 #define HAVE_SYS_IOCTL_H 1
00592 
00593 /* solaris endian */
00594 /* #undef HAVE_SYS_ISA_DEFS_H */
00595 
00596 /* Define to 1 if you have the <sys/libcsys.h> header file. */
00597 /* #undef HAVE_SYS_LIBCSYS_H */
00598 
00599 /* Define to 1 if you have the <sys/param.h> header file. */
00600 #define HAVE_SYS_PARAM_H 1
00601 
00602 /* Define to 1 if you have the <sys/poll.h> header file. */
00603 #define HAVE_SYS_POLL_H 1
00604 
00605 /* Define to 1 if you have the <sys/sched.h> header file. */
00606 /* #undef HAVE_SYS_SCHED_H */
00607 
00608 /* Define to 1 if you have the <sys/select.h> header file. */
00609 #define HAVE_SYS_SELECT_H 1
00610 
00611 /* Define to 1 if you have the <sys/socket.h> header file. */
00612 #define HAVE_SYS_SOCKET_H 1
00613 
00614 /* Define to 1 if you have the <sys/sockio.h> header file. */
00615 /* #undef HAVE_SYS_SOCKIO_H */
00616 
00617 /* Define to 1 if you have the <sys/stat.h> header file. */
00618 #define HAVE_SYS_STAT_H 1
00619 
00620 /* Define to 1 if you have the <sys/stream.h> header file. */
00621 /* #undef HAVE_SYS_STREAM_H */
00622 
00623 /* Define to 1 if you have the <sys/time.h> header file. */
00624 #define HAVE_SYS_TIME_H 1
00625 
00626 /* have 64 bit longs */
00627 #define HAVE_SYS_TYPES_64 1
00628 
00629 /* Define to 1 if you have the <sys/types.h> header file. */
00630 #define HAVE_SYS_TYPES_H 1
00631 
00632 /* have systypes */
00633 #define HAVE_SYS_TYPES_STD 1
00634 
00635 /* Define to 1 if you have the <sys/un.h> header file. */
00636 #define HAVE_SYS_UN_H 1
00637 
00638 /* Define to 1 if you have the <sys/wait.h> header file. */
00639 #define HAVE_SYS_WAIT_H 1
00640 
00641 /* Define to 1 if you have the <thread.h> header file. */
00642 /* #undef HAVE_THREAD_H */
00643 
00644 /* Define to 1 if you have the <unistd.h> header file. */
00645 #define HAVE_UNISTD_H 1
00646 
00647 /* has unix domain sockets */
00648 #define HAVE_UNIX_SOCKETS 1
00649 
00650 /* Define to 1 if you have the `wait4' function. */
00651 #define HAVE_WAIT4 1
00652 
00653 /* Define to 1 if you have the `waitpid' function. */
00654 #define HAVE_WAITPID 1
00655 
00656 /* Define to 1 if you have the <winsock2.h> header file. */
00657 /* #undef HAVE_WINSOCK2_H */
00658 
00659 /* Define to 1 if you have the <winsock.h> header file. */
00660 /* #undef HAVE_WINSOCK_H */
00661 
00662 /* has usable atomic functions */
00663 /* #undef HAVE_WORKING_SYS_ATOMIC_H */
00664 
00665 /* have zlib header */
00666 #define HAVE_ZLIB_H 1
00667 
00668 /* Name of package */
00669 #define CCXX_PACKAGE "commoncpp2"
00670 
00671 /* Define to the address where bug reports for this package should be sent. */
00672 #define CCXX_PACKAGE_BUGREPORT ""
00673 
00674 /* Define to the full name of this package. */
00675 #define CCXX_PACKAGE_NAME ""
00676 
00677 /* Define to the full name and version of this package. */
00678 #define CCXX_PACKAGE_STRING ""
00679 
00680 /* Define to the one symbol short name of this package. */
00681 #define CCXX_PACKAGE_TARNAME ""
00682 
00683 /* Define to the version of this package. */
00684 #define CCXX_PACKAGE_CCXX_VERSION ""
00685 
00686 /* mutex type */
00687 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
00688 
00689 /* Define as the return type of signal handlers (`int' or `void'). */
00690 #define RETSIGTYPE void
00691 
00692 /* Define to 1 if you have the ANSI C header files. */
00693 #define STDC_HEADERS 1
00694 
00695 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
00696 #define TIME_WITH_SYS_TIME 1
00697 
00698 /* Version number of package */
00699 #define CCXX_VERSION "1.4.3"
00700 
00701 /* bsd system using linuxthreads */
00702 /* #undef WITH_LINUXTHREADS */
00703 
00704 /* darwin6 environment */
00705 /* #undef _DARWIN6_ */
00706 
00707 /* Define to 1 if on MINIX. */
00708 /* #undef _MINIX */
00709 
00710 /* Define to 2 if the system does not provide POSIX.1 features except with
00711    this defined. */
00712 /* #undef _POSIX_1_SOURCE */
00713 
00714 /* Define to 1 if you need to in order for `stat' and other things to work. */
00715 /* #undef _POSIX_SOURCE */
00716 
00717 /* endian byte order */
00718 /* #undef __BYTE_ORDER */
00719 
00720 
00721 
00722 #ifndef HAVE_STRERROR_R
00723 #define strerror_r(e, b, l) b = ::strerror(e)
00724 #endif
00725 
00726 #ifndef HAVE_GETPWUID_R
00727 #define getpwuid_r(uid, rec, buf, size, ptr) ptr = ::getpwuid(uid)
00728 #define getpwnam_r(name, rec, buf, size, ptr) ptr = ::getpwnam(name)
00729 #endif
00730 
00731 
00732 
00733 
00734 #ifdef HAVE_POLL_H
00735 #include <poll.h>
00736 #else
00737 #ifdef HAVE_SYS_POLL_H
00738 #include <sys/poll.h>
00739 #endif
00740 #endif
00741 
00742 #if defined(HAVE_POLL) && defined(POLLRDNORM)
00743 #define USE_POLL
00744 #endif
00745 
00746 
00747 
00748 
00749 
00750 #ifdef HAVE_SYS_LIBCSYS_H
00751 #include <sys/libcsys.h>
00752 #endif
00753 
00754 #ifdef HAVE_WINSOCK2_H
00755 #include <winsock2.h>
00756 #else
00757 #ifdef HAVE_WINSOCK_H
00758 #include <winsock.h>
00759 #else
00760 #ifdef HAVE_SYS_SOCKET_H
00761 #include <sys/socket.h>
00762 #ifdef HAVE_SELECT_H
00763 #include <select.h>
00764 #else
00765 #ifdef HAVE_SYS_SELECT_H
00766 #include <sys/select.h>
00767 #endif
00768 #endif
00769 
00770 #ifdef HAVE_NETINET_IN_H
00771 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
00772 /* #undef _XOPEN_SOURCE_EXTENDED */
00773 #endif
00774 #include <netinet/in.h>
00775 #ifdef  __hpux
00776 #define _XOPEN_SOURCE_EXTENDED
00777 #endif
00778 #endif
00779 #ifdef HAVE_ARPA_INET_H
00780 #include <arpa/inet.h>
00781 #include <netdb.h>
00782 #endif
00783 
00784 #ifdef  HAVE_NETINET6_IN6_H
00785 #include <netinet6/in6.h>
00786 #endif
00787 
00788 #ifdef  HAVE_LINIX_IN6_H
00789 #include <linux/in6.h>
00790 #endif
00791 
00792 #ifdef HAVE_NETINET_IN_SYSTM_H
00793 #include <netinet/in_systm.h>
00794 #endif
00795 #ifdef HAVE_NETINET_IP_H
00796 #include <netinet/ip.h>
00797 #endif
00798 #ifdef HAVE_SYS_UN_H
00799 #include <sys/un.h>
00800 #endif
00801 #endif
00802 #endif
00803 #endif
00804 
00805 #ifndef HAVE_INET_ATON
00806 #define inet_aton(cp, addr) (((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)
00807 #endif
00808 
00809 #ifndef SUN_LEN
00810 #ifdef SCM_RIGHTS
00811 #define HAVE_UN_LEN
00812 #endif
00813 #ifdef __linux__
00814 #define HAVE_UN_LEN
00815 #endif
00816 #ifdef HAVE_UN_LEN
00817 #define SUN_LEN(ptr) sizeof(sockaddr_un.sun_len) + sizeof(sockaddr_un.sun_family) + sizeof(sockaddr_un.sun_path) + 1
00818 #else
00819 #define SUN_LEN(ptr) ((size_t)((struct sockaddr_un *)0)->sun_path) + strlen((ptr)->sun_path))
00820 #endif
00821 #endif
00822 
00823 #ifndef _OSF_SOURCE
00824 #ifndef HAVE_SOCKLEN_T
00825 #if defined(i386) && defined(__svr4__)
00826 #define HAVE_SOCKLEN_U
00827 #else
00828 #if defined(__CYGWIN32__)
00829 #define socklen_t int
00830 #else
00831 typedef int socklen_t;
00832 #endif
00833 #endif
00834 
00835 #ifdef HAVE_SOCKLEN_U
00836 #if !defined(__CYGWIN32__) && !defined(__MINGW32__)
00837 typedef unsigned socklen_t;
00838 #else
00839 typedef int socklen_t;
00840 #endif
00841 #endif
00842 #endif
00843 #endif
00844 
00845 #ifdef  __hpux
00846 #ifdef  mutable
00847 /* #undef  mutable */
00848 #endif
00849 #endif
00850 
00851 #if defined(AF_INET6) && defined(HAVE_INET_PTON)
00852 #define CCXX_IPV6
00853 #endif
00854 
00855 #define CCXX_MULTIFAMILY_IP
00856 
00857 
00858 
00859 
00860 #ifndef HAVE_BOOL_TYPE
00861 typedef enum { true=1, false=0 } bool;
00862 #endif
00863 
00864 
00865 
00866 
00867 
00868 #ifndef CCXX_EXCEPTIONS
00869 /* disable HAVE_EXCEPTION */
00870 #ifdef  HAVE_EXCEPTION
00871 #define  HAVE_EXCEPTION 1
00872 #endif
00873 /* throw - replacement to throw an exception */
00874 #define THROW(x) abort()
00875 /* throw - replacement to declare an exception */
00876 #define THROWS(x)
00877 /* throw - for empty list */
00878 #define NEW_THROWS
00879 #define THROWS_EMPTY
00880 /*
00881  * work around dangeling if/else combinations:
00882  */
00883 #else
00884 #define THROW(x) throw x
00885 #define THROWS(x) throw(x)
00886 #define NEW_THROWS throw()
00887 #define THROWS_EMPTY throw()
00888 #endif
00889 
00890 
00891 
00892 
00893 #ifdef CCXX_NAMESPACES
00894 #define USING(x) using namespace x;
00895 #else
00896 #define USING(x)
00897 #endif
00898 
00899 #ifdef  __KCC
00900 #define KAI_NONSTD_IOSTREAM 1
00901 #endif
00902 
00903 
00904 
00905 
00906 #ifdef  HAVE_SS_H
00907 #include <ss.h>
00908 #define COMMON_SECURE
00909 #endif
00910 
00911 #ifndef ETC_PREFIX
00912 #ifdef  WIN32
00913 #define ETC_PREFIX "C:\\WINDOWS\\"
00914 #endif
00915 
00916 #ifndef ETC_PREFIX
00917 #define ETC_PREFIX "/etc/"
00918 #endif
00919 #endif
00920 
00921 #endif
00922 
00923 
00924 
00925 
00926 
00927 #ifndef HAVE_FCNTL_H
00928 #ifdef HAVE_SYS_FCNTL_H
00929 #include <sys/fcntl.h>
00930 #endif
00931 #else
00932 #include <fcntl.h>
00933 #ifndef O_NDELAY
00934 #ifdef HAVE_SYS_FCNTL_H
00935 #include <sys/fcntl.h>
00936 #endif
00937 #endif
00938 #endif
00939 
00940 
00941 
00942 #if defined(HAVE_ENDIAN_H)
00943  #include <endian.h>
00944 #elif defined(HAVE_SYS_ISA_DEFS_H)
00945  #include <sys/isa_defs.h>
00946  #ifdef _LITTLE_ENDIAN
00947   #define       __BYTE_ORDER 1234
00948  #else
00949   #define       __BYTE_ORDER 4321
00950  #endif
00951  #if _ALIGNMENT_REQUIRED > 0
00952   #define       __BYTE_ALIGNMENT _MAX_ALIGNMENT
00953  #else
00954   #define       __BYTE_ALIGNMENT 1
00955  #endif
00956 #endif
00957 
00958 #ifndef __LITTLE_ENDIAN
00959 #define __LITTLE_ENDIAN 1234
00960 #define __BIG_ENDIAN 4321
00961 #endif
00962 
00963 #ifndef __BYTE_ORDER
00964 #define __BYTE_ORDER 1234
00965 #endif
00966 
00967 #ifndef __BYTE_ALIGNMENT
00968 #if defined(SPARC) || defined(sparc)
00969 #if defined(__arch64__) || defined(__sparcv9)
00970 #define __BYTE_ALIGNMENT 8
00971 #else
00972 #define __BYTE_ALIGNMENT 4
00973 #endif
00974 #endif
00975 #endif
00976 
00977 #ifndef __BYTE_ALIGNMENT
00978 #define __BYTE_ALIGNMENT 1
00979 #endif
00980 
00981 
00982 
00983 
00984 #ifdef HAVE_SIGACTION
00985 #ifdef HAVE_BSD_SIGNAL_H
00986 /* #undef HAVE_BSD_SIGNAL_H */
00987 #endif
00988 #endif
00989 
00990 /* Cause problem with Solaris... and perhaps Digital Unix?
00991   However, the autoconf test in ost_signal defines _POSIX_PTHREAD_SEMANTICS
00992  when trying to compile sigwait2. */
00993 
00994 #ifdef  HAVE_SIGWAIT2
00995 #ifndef _POSIX_PTHREAD_SEMANTICS
00996 #define _POSIX_PTHREAD_SEMANTICS
00997 #endif
00998 #endif
00999 
01000 #ifdef HAVE_BSD_SIGNAL_H
01001 #include <bsd/signal.h>
01002 #else
01003 #include <signal.h>
01004 #endif
01005 #ifndef SA_ONESHOT
01006 #define SA_ONESHOT SA_RESETHAND
01007 #endif
01008 
01009 
01010 
01011 
01012 #include <string.h>
01013 #ifdef HAVE_STRINGS_H
01014 #ifndef _AIX
01015 #include <strings.h>
01016 #endif
01017 #endif
01018 
01019 #ifdef HAVE_ALLOCA_H
01020 #include <alloca.h>
01021 #endif
01022 
01023 #ifndef HAVE_SNPRINTF
01024 #ifdef  WIN32
01025 #define snprintf        _snprintf
01026 #define vsnprintf       _vsnprintf
01027 #endif
01028 #endif
01029 
01030 #ifdef HAVE_STRCASECMP
01031 #ifndef stricmp
01032 #define stricmp(x,y) strcasecmp(x,y)
01033 #endif
01034 #ifndef strnicmp
01035 #define strnicmp(x,y,n) strncasecmp(x,y,n)
01036 #endif
01037 #ifndef stristr
01038 #define stristr(x, y) strcasestr(x,y)
01039 #endif
01040 #endif
01041 
01042 
01043 
01044 
01045 #ifdef HAVE_THREAD_H
01046 #include "/usr/include/thread.h"
01047 #if defined(i386) && defined(__svr4__) && !defined(__sun)
01048 #define _THR_UNIXWARE
01049 #endif
01050 #if defined(__SVR4) && defined(__sun)
01051 #define _THR_SUNOS5
01052 #else
01053 #if defined(__SVR4__) && defined(__SUN__)
01054 #define _THR_SUNOS5
01055 #endif
01056 #endif
01057 #endif
01058 
01059 #ifdef HAVE_WORKING_SYS_ATOMIC_H
01060 #include <sys/atomic.h>
01061 #define HAVE_ATOMIC
01062 #elif defined(HAVE_ATOMIC_AIX)
01063 #include <sys/atomic_op.h>
01064 #ifndef HAVE_ATOMIC
01065 #define HAVE_ATOMIC
01066 #endif
01067 #endif
01068 
01069 #if defined(__cplusplus)
01070 #if defined(HAVE_GCC_BITS_ATOMIC) || defined(HAVE_GCC_CXX_BITS_ATOMIC)
01071 #include <bits/atomicity.h>
01072 #define HAVE_ATOMIC
01073 #endif
01074 #endif
01075 
01076 #if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REENTRANT) )
01077 
01078 #ifdef  __QNX__
01079 #define __EXT_QNX
01080 #endif
01081 
01082 #include <pthread.h>
01083 
01084 #ifdef HAVE_PTHREAD_NP_H
01085 #include <pthread_np.h>
01086 #endif
01087 
01088 #ifdef HAVE_SEMAPHORE_H
01089 #include <semaphore.h>
01090 #endif
01091 #ifdef _POSIX_PRIORITY_SCHEDULING
01092 #ifdef HAVE_SCHED_H
01093 #include <sched.h>
01094 #else
01095 #ifdef HAVE_SYS_SCHED_H
01096 #include <sys/sched.h>
01097 #endif
01098 #endif
01099 #endif
01100 
01101 #define __PTHREAD_H__
01102 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01103 #ifdef  MUTEX_TYPE_COUNTING_FAST
01104 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01105 #endif
01106 #endif
01107 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01108 #ifdef  PTHREAD_MUTEX_RECURSIVE
01109 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01110 #endif
01111 #endif
01112 #ifndef HAVE_PTHREAD_MUTEXATTR_SETTYPE
01113 #if     HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
01114 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01115 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01116 #endif
01117 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_getkind_np(x, y)
01118 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_setkind_np(x, y)
01119 #endif
01120 #if     HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP
01121 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
01122 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
01123 #endif
01124 #define pthread_mutexattr_settype(x, y) pthread_mutexattr_settype_np(x, y)
01125 #define pthread_mutexattr_gettype(x, y) pthread_mutexattr_gettype_np(x, y)
01126 #endif
01127 #endif
01128 
01129 #ifdef  HAVE_PTHREAD_MACH_THREAD_NP
01130 #define _THR_MACH
01131 #endif
01132 
01133 #ifndef HAVE_PTHREAD_YIELD
01134 #ifdef  HAVE_PTHREAD_YIELD_NP
01135 #define pthread_yield() pthread_yield_np()
01136 #define HAVE_PTHREAD_YIELD
01137 #endif
01138 #endif
01139 
01140 #ifndef HAVE_PTHREAD_YIELD
01141 #ifdef HAVE_PTHREAD_SCHED_YIELD
01142 #define pthread_yield() sched_yield()
01143 #define HAVE_PTHREAD_YIELD
01144 #endif
01145 #endif
01146 
01147 #ifndef HAVE_PTHREAD_DELAY
01148 #ifdef HAVE_PTHREAD_DELAY_NP
01149 #define HAVE_PTHREAD_DELAY
01150 #define pthread_delay(x) pthread_delay_np(x)
01151 #endif
01152 #if defined(HAVE_PTHREAD_NANOSLEEP)
01153 #ifndef HAVE_PTHREAD_DELAY
01154 #define HAVE_PTHREAD_DELAY
01155 #ifdef __FreeBSD__
01156 #ifdef __cplusplus
01157 extern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
01158 #endif
01159 #endif
01160 #define pthread_delay(x) nanosleep(x, NULL)
01161 #endif
01162 #endif
01163 #endif
01164 
01165 #ifdef HAVE_PTHREAD_ATTR_SETSTACK
01166 #ifndef PTHREAD_STACK_MIN
01167 #define PTHREAD_STACK_MIN 32768
01168 #endif
01169 #endif
01170 
01171 #ifndef HAVE_PTHREAD_CANCEL
01172 #ifdef SIGCANCEL
01173 #define CCXX_SIG_THREAD_CANCEL SIGCANCEL
01174 #else
01175 #define CCXX_SIG_THREAD_CANCEL SIGQUIT
01176 #endif
01177 #define pthread_cancel(x) pthread_kill(x, CCXX_SIG_THREAD_CANCEL)
01178 #define pthread_setcanceltype(x, y)
01179 #define pthread_setcancelstate(x, y)
01180 #endif
01181 
01182 #ifndef HAVE_PTHREAD_SETCANCELTYPE
01183 #ifdef HAVE_PTHREAD_SETCANCEL
01184 enum
01185 { PTHREAD_CANCEL_ASYNCHRONOUS = CANCEL_ON,
01186   PTHREAD_CANCEL_DEFERRED = CANCEL_OFF};
01187 enum
01188 { PTHREAD_CANCEL_ENABLE = CANCEL_ON,
01189   PTHREAD_CANCEL_DISABLE = CANCEL_OFF};
01190 #define pthread_setcancelstate(x, y) \
01191         (y == NULL) ? pthread_setcancel(x) : *y = pthread_setcancel
01192 #define pthread_setcanceltype(x, y) \
01193         (y == NULL) ? pthread_setasynccancel(x) | *y = pthread_setasynccancel(x)
01194 #else
01195 #define pthread_setcanceltype(x, y)
01196 #define pthread_setcancelstate(x, y)
01197 #endif
01198 #endif
01199 
01200 #ifdef  _AIX
01201 #ifdef  HAVE_PTHREAD_SUSPEND
01202 /* #undef  HAVE_PTHREAD_SUSPEND */
01203 #endif
01204 #endif
01205 
01206 #endif
01207 
01208 
01209 

Generated on Wed Sep 13 21:25:11 2006 for GNU CommonC++ by  doxygen 1.4.7