00001 /* ldns/config.h. Generated from config.h.in by configure. */ 00002 /* ldns/config.h.in. Generated from configure.ac by autoheader. */ 00003 00004 /* Whether the C compiler accepts the "format" attribute */ 00005 #define HAVE_ATTR_FORMAT 1 00006 00007 /* Define to 1 if you have the `b64_ntop' function. */ 00008 /* #undef HAVE_B64_NTOP */ 00009 00010 /* Define to 1 if you have the `b64_pton' function. */ 00011 /* #undef HAVE_B64_PTON */ 00012 00013 /* Define to 1 if you have the `ctime_r' function. */ 00014 #define HAVE_CTIME_R 1 00015 00016 /* Define to 1 if you have the <dlfcn.h> header file. */ 00017 #define HAVE_DLFCN_H 1 00018 00019 /* Define to 1 if you have the `getaddrinfo' function. */ 00020 #define HAVE_GETADDRINFO 1 00021 00022 /* Define to 1 if you have the <getopt.h> header file. */ 00023 #define HAVE_GETOPT_H 1 00024 00025 /* Define to 1 if you have the `gmtime_r' function. */ 00026 #define HAVE_GMTIME_R 1 00027 00028 /* Define to 1 if you have the `inet_aton' function. */ 00029 #define HAVE_INET_ATON 1 00030 00031 /* Define to 1 if you have the `inet_ntop' function. */ 00032 #define HAVE_INET_NTOP 1 00033 00034 /* Define to 1 if you have the `inet_pton' function. */ 00035 #define HAVE_INET_PTON 1 00036 00037 /* Define to 1 if you have the <inttypes.h> header file. */ 00038 #define HAVE_INTTYPES_H 1 00039 00040 /* Define to 1 if you have the `isblank' function. */ 00041 #define HAVE_ISBLANK 1 00042 00043 /* Define to 1 if you have the `crypto' library (-lcrypto). */ 00044 #define HAVE_LIBCRYPTO 1 00045 00046 /* Define to 1 if you have the `nsl' library (-lnsl). */ 00047 #define HAVE_LIBNSL 1 00048 00049 /* Define to 1 if you have the `socket' library (-lsocket). */ 00050 /* #undef HAVE_LIBSOCKET */ 00051 00052 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and 00053 to 0 otherwise. */ 00054 #define HAVE_MALLOC 1 00055 00056 /* Define to 1 if you have the `memmove' function. */ 00057 #define HAVE_MEMMOVE 1 00058 00059 /* Define to 1 if you have the <memory.h> header file. */ 00060 #define HAVE_MEMORY_H 1 00061 00062 /* Define to 1 if you have the <netinet/in.h> header file. */ 00063 #define HAVE_NETINET_IN_H 1 00064 00065 /* Define to 1 if you have the <openssl/ssl.h> header file. */ 00066 #define HAVE_OPENSSL_SSL_H 1 00067 00068 /* Define to 1 if your system has a GNU libc compatible `realloc' function, 00069 and to 0 otherwise. */ 00070 #define HAVE_REALLOC 1 00071 00072 /* Define to 1 if you have the `snprintf' function. */ 00073 #define HAVE_SNPRINTF 1 00074 00075 /* Define if you have the SSL libraries installed. */ 00076 #define HAVE_SSL 00077 00078 /* Define to 1 if you have the <stdarg.h> header file. */ 00079 #define HAVE_STDARG_H 1 00080 00081 /* Define to 1 if you have the <stdbool.h> header file. */ 00082 #define HAVE_STDBOOL_H 1 00083 00084 /* Define to 1 if you have the <stdint.h> header file. */ 00085 #define HAVE_STDINT_H 1 00086 00087 /* Define to 1 if you have the <stdlib.h> header file. */ 00088 #define HAVE_STDLIB_H 1 00089 00090 /* Define to 1 if you have the <strings.h> header file. */ 00091 #define HAVE_STRINGS_H 1 00092 00093 /* Define to 1 if you have the <string.h> header file. */ 00094 #define HAVE_STRING_H 1 00095 00096 /* Define to 1 if you have the `strlcpy' function. */ 00097 /* #undef HAVE_STRLCPY */ 00098 00099 /* Define to 1 if you have the <sys/mount.h> header file. */ 00100 #define HAVE_SYS_MOUNT_H 1 00101 00102 /* Define to 1 if you have the <sys/param.h> header file. */ 00103 #define HAVE_SYS_PARAM_H 1 00104 00105 /* Define to 1 if you have the <sys/socket.h> header file. */ 00106 #define HAVE_SYS_SOCKET_H 1 00107 00108 /* Define to 1 if you have the <sys/stat.h> header file. */ 00109 #define HAVE_SYS_STAT_H 1 00110 00111 /* Define to 1 if you have the <sys/types.h> header file. */ 00112 #define HAVE_SYS_TYPES_H 1 00113 00114 /* Define to 1 if you have the `timegm' function. */ 00115 #define HAVE_TIMEGM 1 00116 00117 /* Define to 1 if you have the <time.h> header file. */ 00118 #define HAVE_TIME_H 1 00119 00120 /* Define to 1 if you have the <unistd.h> header file. */ 00121 #define HAVE_UNISTD_H 1 00122 00123 /* Define to the address where bug reports for this package should be sent. */ 00124 #define PACKAGE_BUGREPORT "libdns@nlnetlabs.nl" 00125 00126 /* Define to the full name of this package. */ 00127 #define PACKAGE_NAME "libdns" 00128 00129 /* Define to the full name and version of this package. */ 00130 #define PACKAGE_STRING "libdns 1.2.1" 00131 00132 /* Define to the one symbol short name of this package. */ 00133 #define PACKAGE_TARNAME "libdns" 00134 00135 /* Define to the version of this package. */ 00136 #define PACKAGE_VERSION "1.2.1" 00137 00138 /* Define to 1 if you have the ANSI C header files. */ 00139 #define STDC_HEADERS 1 00140 00141 /* System configuration dir */ 00142 #define SYSCONFDIR sysconfdir 00143 00144 /* Define to 1 if on AIX 3. 00145 System headers sometimes define this. 00146 We just want to avoid a redefinition error message. */ 00147 #ifndef _ALL_SOURCE 00148 /* # undef _ALL_SOURCE */ 00149 #endif 00150 00151 /* Define to empty if `const' does not conform to ANSI C. */ 00152 /* #undef const */ 00153 00154 /* in_addr_t */ 00155 /* #undef in_addr_t */ 00156 00157 /* in_port_t */ 00158 /* #undef in_port_t */ 00159 00160 /* Define to `__inline__' or `__inline' if that's what the C compiler 00161 calls it, or to nothing if 'inline' is not supported under any name. */ 00162 #ifndef __cplusplus 00163 /* #undef inline */ 00164 #endif 00165 00166 /* Define to `short' if <sys/types.h> does not define. */ 00167 /* #undef int16_t */ 00168 00169 /* Define to `int' if <sys/types.h> does not define. */ 00170 /* #undef int32_t */ 00171 00172 /* Define to `long long' if <sys/types.h> does not define. */ 00173 /* #undef int64_t */ 00174 00175 /* Define to `char' if <sys/types.h> does not define. */ 00176 /* #undef int8_t */ 00177 00178 /* Define to rpl_malloc if the replacement function should be used. */ 00179 /* #undef malloc */ 00180 00181 /* Define to rpl_realloc if the replacement function should be used. */ 00182 /* #undef realloc */ 00183 00184 /* Define to 'int' if not defined */ 00185 /* #undef socklen_t */ 00186 00187 /* Define to `int' if <sys/types.h> does not define. */ 00188 /* #undef ssize_t */ 00189 00190 /* Define to `unsigned short' if <sys/types.h> does not define. */ 00191 /* #undef uint16_t */ 00192 00193 /* Define to `unsigned int' if <sys/types.h> does not define. */ 00194 /* #undef uint32_t */ 00195 00196 /* Define to `unsigned long long' if <sys/types.h> does not define. */ 00197 /* #undef uint64_t */ 00198 00199 /* Define to `unsigned char' if <sys/types.h> does not define. */ 00200 /* #undef uint8_t */ 00201 00202 00203 #include <stdio.h> 00204 #include <string.h> 00205 #include <unistd.h> 00206 #include <assert.h> 00207 00208 #if STDC_HEADERS 00209 #include <stdlib.h> 00210 #include <stddef.h> 00211 #endif 00212 00213 #ifdef HAVE_STDINT_H 00214 #include <stdint.h> 00215 #endif 00216 00217 #ifdef HAVE_SYS_SOCKET_H 00218 #include <sys/socket.h> 00219 #endif 00220 00221 #ifdef HAVE_NETINET_IN_H 00222 #include <netinet/in.h> 00223 #endif 00224 00225 #ifdef HAVE_ARPA_INET_H 00226 #include <arpa/inet.h> 00227 #endif 00228 00229 00230 00231 #ifndef B64_PTON 00232 int b64_ntop(uint8_t const *src, size_t srclength, 00233 char *target, size_t targsize); 00237 /*@unused@*/ 00238 static inline size_t b64_ntop_calculate_size(size_t srcsize) 00239 { 00240 return ((((srcsize + 2) / 3) * 4) + 1); 00241 } 00242 #endif /* !B64_PTON */ 00243 #ifndef B64_NTOP 00244 int b64_pton(char const *src, uint8_t *target, size_t targsize); 00248 /*@unused@*/ 00249 static inline size_t b64_pton_calculate_size(size_t srcsize) 00250 { 00251 return ((((srcsize / 4) * 3) - 2) + 2); 00252 } 00253 #endif /* !B64_NTOP */ 00254 #ifndef TIMEGM 00255 #include <time.h> 00256 time_t timegm (struct tm *tm); 00257 #endif /* !TIMEGM */ 00258 #ifndef HAVE_ISBLANK 00259 int isblank(int c); 00260 #endif /* !HAVE_ISBLANK */ 00261 #ifndef HAVE_SNPRINTF 00262 #include <stdarg.h> 00263 int snprintf (char *str, size_t count, const char *fmt, ...); 00264 int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 00265 #endif /* HAVE_SNPRINTF */ 00266 #ifndef HAVE_INET_PTON 00267 int inet_pton(int af, const char* src, void* dst); 00268 #endif /* HAVE_INET_PTON */ 00269 #ifndef HAVE_INET_NTOP 00270 const char *inet_ntop(int af, const void *src, char *dst, size_t size); 00271 #endif 00272 #ifndef HAVE_INET_ATON 00273 int inet_aton(const char *cp, struct in_addr *addr); 00274 #endif 00275 #ifndef HAVE_MEMMOVE 00276 void *memmove(void *dest, const void *src, size_t n); 00277 #endif 00278 #ifndef HAVE_STRLCPY 00279 size_t strlcpy(char *dst, const char *src, size_t siz); 00280 #endif 00281 #ifndef HAVE_GETADDRINFO 00282 #include "compat/fake-rfc2553.h" 00283 #endif 00284