1 /* $NetBSD: acconfig.h,v 1.8 2014/12/10 04:37:51 christos Exp $ */ 2 3 /* 4 * Copyright (C) 2004, 2005, 2007, 2008, 2012, 2014 Internet Systems Consortium, Inc. ("ISC") 5 * Copyright (C) 1999-2003 Internet Software Consortium. 6 * 7 * Permission to use, copy, modify, and/or distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 12 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 13 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 15 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 16 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /* Id: acconfig.h,v 1.53 2008/12/01 23:47:44 tbox Exp */ 21 22 /*! \file */ 23 24 /*** 25 *** This file is not to be included by any public header files, because 26 *** it does not get installed. 27 ***/ 28 @TOP@ 29 30 /** define on DEC OSF to enable 4.4BSD style sa_len support */ 31 #undef _SOCKADDR_LEN 32 33 /** define if your system needs pthread_init() before using pthreads */ 34 #undef NEED_PTHREAD_INIT 35 36 /** define if your system has sigwait() */ 37 #undef HAVE_SIGWAIT 38 39 /** define if sigwait() is the UnixWare flavor */ 40 #undef HAVE_UNIXWARE_SIGWAIT 41 42 /** define on Solaris to get sigwait() to work using pthreads semantics */ 43 #undef _POSIX_PTHREAD_SEMANTICS 44 45 /** define if LinuxThreads is in use */ 46 #undef HAVE_LINUXTHREADS 47 48 /** define if sysconf() is available */ 49 #undef HAVE_SYSCONF 50 51 /** define if sysctlbyname() is available */ 52 #undef HAVE_SYSCTLBYNAME 53 54 /** define if catgets() is available */ 55 #undef HAVE_CATGETS 56 57 /** define if getifaddrs() exists */ 58 #undef HAVE_GETIFADDRS 59 60 /** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */ 61 #undef HAVE_IFLIST_SYSCTL 62 63 /** define if tzset() is available */ 64 #undef HAVE_TZSET 65 66 /** define if struct addrinfo exists */ 67 #undef HAVE_ADDRINFO 68 69 /** define if getaddrinfo() exists */ 70 #undef HAVE_GETADDRINFO 71 72 /** define if gai_strerror() exists */ 73 #undef HAVE_GAISTRERROR 74 75 /** define if arc4random() exists */ 76 #undef HAVE_ARC4RANDOM 77 78 /** define if arc4random_addrandom() exists */ 79 #undef HAVE_ARC4RANDOM_ADDRANDOM 80 81 /** 82 * define if pthread_setconcurrency() should be called to tell the 83 * OS how many threads we might want to run. 84 */ 85 #undef CALL_PTHREAD_SETCONCURRENCY 86 87 /** define if IPv6 is not disabled */ 88 #undef WANT_IPV6 89 90 /** define if flockfile() is available */ 91 #undef HAVE_FLOCKFILE 92 93 /** define if getc_unlocked() is available */ 94 #undef HAVE_GETCUNLOCKED 95 96 /** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */ 97 #undef SHUTUP_SPUTAUX 98 #ifdef SHUTUP_SPUTAUX 99 struct __sFILE; 100 extern __inline int __sputaux(int _c, struct __sFILE *_p); 101 #endif 102 103 /** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */ 104 #undef SHUTUP_SIGWAIT 105 #ifdef SHUTUP_SIGWAIT 106 int sigwait(const unsigned int *set, int *sig); 107 #endif 108 109 /** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */ 110 #undef SHUTUP_STDARG_CAST 111 #if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__) 112 #include <stdarg.h> /** Grr. Must be included *every time*. */ 113 /** 114 * The silly continuation line is to keep configure from 115 * commenting out the #undef. 116 */ 117 118 #undef \ 119 va_start 120 #define va_start(ap, last) \ 121 do { \ 122 union { const void *konst; long *var; } _u; \ 123 _u.konst = &(last); \ 124 ap = (va_list)(_u.var + __va_words(__typeof(last))); \ 125 } while (/*CONSTCOND*/0) 126 #endif /** SHUTUP_STDARG_CAST && __GNUC__ */ 127 128 /** define if the system has a random number generating device */ 129 #undef PATH_RANDOMDEV 130 131 /** define if pthread_attr_getstacksize() is available */ 132 #undef HAVE_PTHREAD_ATTR_GETSTACKSIZE 133 134 /** define if pthread_attr_setstacksize() is available */ 135 #undef HAVE_PTHREAD_ATTR_SETSTACKSIZE 136 137 /** define if you have strerror in the C library. */ 138 #undef HAVE_STRERROR 139 140 /* Define if OpenSSL includes DSA support */ 141 #undef HAVE_OPENSSL_DSA 142 143 /* Define if you have getpassphrase in the C library. */ 144 #undef HAVE_GETPASSPHRASE 145 146 /* Define to the length type used by the socket API (socklen_t, size_t, int). */ 147 #undef ISC_SOCKADDR_LEN_T 148 149 /* Define if threads need PTHREAD_SCOPE_SYSTEM */ 150 #undef NEED_PTHREAD_SCOPE_SYSTEM 151