chiark / gitweb /
Build system: Use -lresolv only if inet_aton is not found otherwise.
[secnet] / config.h.in
CommitLineData
f74f5f43
SE
1/* config.h.in. Generated from configure.in by autoheader. */
2
3
2fe58dfd
SE
4#ifndef _CONFIG_H
5#define _CONFIG_H
6
7
ad4175bb
IJ
8/* Define if building universal (internal helper macro) */
9#undef AC_APPLE_UNIVERSAL_BUILD
10
2b8aa340
IJ
11/* Define to 1 to use IPv6 support in system and adns */
12#undef CONFIG_IPV6
13
f74f5f43
SE
14/* Define to 1 if you have the <inttypes.h> header file. */
15#undef HAVE_INTTYPES_H
2fe58dfd 16
f74f5f43
SE
17/* Define to 1 if you have the `adns' library (-ladns). */
18#undef HAVE_LIBADNS
2fe58dfd 19
f74f5f43
SE
20/* Define to 1 if you have the `fl' library (-lfl). */
21#undef HAVE_LIBFL
8dea8d37 22
f74f5f43
SE
23/* Define to 1 if you have the `gmp' library (-lgmp). */
24#undef HAVE_LIBGMP
8dea8d37 25
f74f5f43
SE
26/* Define to 1 if you have the `gmp2' library (-lgmp2). */
27#undef HAVE_LIBGMP2
8dea8d37 28
f74f5f43
SE
29/* Define to 1 if you have the `nsl' library (-lnsl). */
30#undef HAVE_LIBNSL
8dea8d37 31
f74f5f43
SE
32/* Define to 1 if you have the `socket' library (-lsocket). */
33#undef HAVE_LIBSOCKET
59635212 34
94ca562b
IJ
35/* Define to 1 if you have the <linux/if_tun.h> header file. */
36#undef HAVE_LINUX_IF_TUN_H
4efd681a 37
f74f5f43
SE
38/* Define to 1 if you have the <memory.h> header file. */
39#undef HAVE_MEMORY_H
40
41/* Define to 1 if you have the <net/if.h> header file. */
ff05a229
SE
42#undef HAVE_NET_IF_H
43
f74f5f43 44/* Define to 1 if you have the <net/if_tun.h> header file. */
ff05a229
SE
45#undef HAVE_NET_IF_TUN_H
46
f74f5f43 47/* Define to 1 if you have the <net/route.h> header file. */
ff05a229
SE
48#undef HAVE_NET_ROUTE_H
49
f74f5f43 50/* Define to 1 if you have the <stdint.h> header file. */
59635212
SE
51#undef HAVE_STDINT_H
52
f74f5f43
SE
53/* Define to 1 if you have the <stdlib.h> header file. */
54#undef HAVE_STDLIB_H
55
56/* Define to 1 if you have the <strings.h> header file. */
57#undef HAVE_STRINGS_H
58
59/* Define to 1 if you have the <string.h> header file. */
60#undef HAVE_STRING_H
61
62/* Define to 1 if you have the <stropts.h> header file. */
ff05a229
SE
63#undef HAVE_STROPTS_H
64
f74f5f43
SE
65/* Define to 1 if you have the <sys/socket.h> header file. */
66#undef HAVE_SYS_SOCKET_H
67
68/* Define to 1 if you have the <sys/sockio.h> header file. */
ff05a229
SE
69#undef HAVE_SYS_SOCKIO_H
70
f74f5f43
SE
71/* Define to 1 if you have the <sys/stat.h> header file. */
72#undef HAVE_SYS_STAT_H
2fe58dfd 73
f74f5f43
SE
74/* Define to 1 if you have the <sys/types.h> header file. */
75#undef HAVE_SYS_TYPES_H
2fe58dfd 76
f74f5f43
SE
77/* Define to 1 if you have the <unistd.h> header file. */
78#undef HAVE_UNISTD_H
8689b3a9 79
f74f5f43
SE
80/* Define to the address where bug reports for this package should be sent. */
81#undef PACKAGE_BUGREPORT
8689b3a9 82
f74f5f43
SE
83/* Define to the full name of this package. */
84#undef PACKAGE_NAME
8689b3a9 85
f74f5f43
SE
86/* Define to the full name and version of this package. */
87#undef PACKAGE_STRING
469fd1d9 88
f74f5f43
SE
89/* Define to the one symbol short name of this package. */
90#undef PACKAGE_TARNAME
91
ad4175bb
IJ
92/* Define to the home page for this package. */
93#undef PACKAGE_URL
94
f74f5f43
SE
95/* Define to the version of this package. */
96#undef PACKAGE_VERSION
97
ad4175bb 98/* The size of `unsigned char', as computed by sizeof. */
f74f5f43
SE
99#undef SIZEOF_UNSIGNED_CHAR
100
ad4175bb 101/* The size of `unsigned int', as computed by sizeof. */
f74f5f43
SE
102#undef SIZEOF_UNSIGNED_INT
103
ad4175bb 104/* The size of `unsigned long', as computed by sizeof. */
f74f5f43
SE
105#undef SIZEOF_UNSIGNED_LONG
106
ad4175bb 107/* The size of `unsigned long long', as computed by sizeof. */
f74f5f43
SE
108#undef SIZEOF_UNSIGNED_LONG_LONG
109
ad4175bb 110/* The size of `unsigned short', as computed by sizeof. */
f74f5f43
SE
111#undef SIZEOF_UNSIGNED_SHORT
112
113/* Define to 1 if you have the ANSI C header files. */
114#undef STDC_HEADERS
115
ad4175bb
IJ
116/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
117 significant byte first (like Motorola and SPARC, unlike Intel). */
118#if defined AC_APPLE_UNIVERSAL_BUILD
119# if defined __BIG_ENDIAN__
120# define WORDS_BIGENDIAN 1
121# endif
122#else
123# ifndef WORDS_BIGENDIAN
124# undef WORDS_BIGENDIAN
125# endif
126#endif
469fd1d9 127
469fd1d9 128
2fe58dfd
SE
129/* -*- c -*- */
130
f74f5f43 131/* These used to be in config.h.bot, but are now in configure.in. */
2fe58dfd 132
59635212
SE
133#ifdef HAVE_INTTYPES_H
134#include <inttypes.h>
135#else
136#ifdef HAVE_STDINT_H
137#include <stdint.h>
138#else
8dea8d37
SE
139#if SIZEOF_UNSIGNED_LONG_LONG==8
140typedef unsigned long long uint64_t;
794f2398 141typedef long long int64_t;
8dea8d37
SE
142#elif SIZEOF_UNSIGNED_LONG==8
143typedef unsigned long uint64_t;
794f2398 144typedef long int64_t;
8dea8d37
SE
145#else
146#error I do not know what to use for a uint64_t.
59635212 147#endif
8dea8d37
SE
148
149/* Give us an unsigned 32-bit data type. */
150#if SIZEOF_UNSIGNED_LONG==4
151typedef unsigned long uint32_t;
794f2398 152typedef long int32_t;
8dea8d37
SE
153#elif SIZEOF_UNSIGNED_INT==4
154typedef unsigned int uint32_t;
794f2398 155typedef int int32_t;
8dea8d37
SE
156#else
157#error I do not know what to use for a uint32_t.
158#endif
159
160/* An unsigned 16-bit data type. */
161#if SIZEOF_UNSIGNED_INT==2
162typedef unsigned int uint16_t;
794f2398 163typedef int int16_t;
8dea8d37
SE
164#elif SIZEOF_UNSIGNED_SHORT==2
165typedef unsigned short uint16_t;
794f2398 166typedef short int16_t;
8dea8d37
SE
167#else
168#error I do not know what to use for a uint16_t.
169#endif
170
171/* An unsigned 8-bit data type */
172#if SIZEOF_UNSIGNED_CHAR==1
173typedef unsigned char uint8_t;
174#else
175#error I do not know what to use for a uint8_t.
176#endif
177#endif
178#endif
179
4f5e39ec
SE
180#ifdef __GNUC__
181#define NORETURN(_x) void _x __attribute__ ((noreturn))
182#define FORMAT(_a,_b,_c) __attribute__ ((format (_a,_b,_c)))
183#else
184#define NORETURN(_x) _x
185#define FORMAT(_a,_b,_c)
186#endif
187
2fe58dfd 188#endif /* _CONFIG_H */
f74f5f43 189