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