3 // Autogenerated from config.h.in by bsconf.
6 #ifndef CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
7 #define CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
9 // Define to the one symbol short name of this package.
10 #define USTL_NAME "@PACKAGE_NAME@"
11 // Define to the full name and version of this package.
12 #define USTL_STRING "@PACKAGE_NAME@ @PACKAGE_VERSION@"
13 // Define to the version of this package.
14 #define USTL_VERSION 0x@LIB_MAJOR@@LIB_MINOR@@LIB_BUILD@
15 // Define to the address where bug reports for this package should be sent.
16 #define USTL_BUGREPORT "@PACKAGE_BUGREPORT@"
18 /// Define to 1 if you want stream operations to throw exceptions on
19 /// insufficient data or insufficient space. All these errors should
20 /// be preventable in output code; the input code should verify the
21 /// data in a separate step. It slows down stream operations a lot,
22 /// but it is your decision. By default only debug builds throw.
24 #define WANT_STREAM_BOUNDS_CHECKING 1
26 #if !defined(WANT_STREAM_BOUNDS_CHECKING) && !defined(NDEBUG)
27 #define WANT_STREAM_BOUNDS_CHECKING 1
30 /// Define to 1 if you want to build without libstdc++
31 #define WITHOUT_LIBSTDCPP 1
33 /// Define GNU extensions if unavailable.
35 /// GCC (and some other compilers) define '__attribute__'; ustl is using this
36 /// macro to alert the compiler to flag inconsistencies in printf/scanf-like
37 /// function calls. Just in case '__attribute__' is undefined, make a dummy.
40 #define __attribute__(p)
43 #if defined(__GNUC__) && __GNUC__ >= 4
44 #define DLL_EXPORT __attribute__((visibility("default")))
45 #define DLL_LOCAL __attribute__((visibility("hidden")))
50 #if defined(__GNUC__) && __GNUC__ >= 3 && __i386__
51 /// GCC 3+ supports the prefetch directive, which some CPUs use to improve caching
52 #define prefetch(p,rw,loc) __builtin_prefetch(p,rw,loc)
54 #define prefetch(p,rw,loc)
56 #if !defined(__GNUC__) || __GNUC__ < 3
57 /// __alignof__ returns the recommended alignment for the type
58 #define __alignof__(v) min(sizeof(v), sizeof(void*))
59 /// This macro returns 1 if the value of x is known at compile time.
60 #ifndef __builtin_constant_p(x)
61 #define __builtin_constant_p(x) 0
65 /// Define to 1 if you have the 'atexit' function.
68 /// Define to 1 if you have the <assert.h> header file.
71 /// Define to 1 if you have the <ctype.h> header file.
74 /// Define to 1 if you have the <errno.h> header file.
77 /// Define to 1 if you have the <fcntl.h> header file.
80 /// Define to 1 if you have the <float.h> header file.
83 /// Define to 1 if you have the <inttypes.h> header file.
84 #undef HAVE_INTTYPES_H
86 /// Define to 1 if you have the <limits.h> header file.
89 /// Define to 1 if you have the <locale.h> header file.
92 /// Define to 1 if your system has a working 'malloc' function.
95 // Define to 1 if you have the <malloc.h> header file.
98 // Define to 1 if you have the <alloca.h> header file.
101 // Define to 1 if you have the 'memchr' function.
102 #define HAVE_MEMCHR 1
104 // Define to 1 if you have the 'memmove' function.
105 #define HAVE_MEMMOVE 1
107 // Define to 1 if you have the <memory.h> header file.
110 // Define to 1 if you have the 'memset' function.
111 #define HAVE_MEMSET 1
113 // Define to 1 if the system has the type 'ptrdiff_t'.
114 #define HAVE_PTRDIFF_T 1
116 // Define to 1 if you have the <signal.h> header file.
119 // Define to 1 if you have the __va_copy function
120 #define HAVE_VA_COPY 1
122 // Define to 1 if 'stat' has the bug that it succeeds when given the
123 // zero-length file name argument.
124 #undef HAVE_STAT_EMPTY_STRING_BUG
126 // Define to 1 if you have the <stdarg.h> header file.
129 // Define to 1 if you have the <stddef.h> header file.
132 // Define to 1 if you have the <stdint.h> header file.
135 // Define to 1 if you have the <stdio.h> header file.
138 // Define to 1 if you have the <stdlib.h> header file.
141 // Define to 1 if you have the 'strerror' function.
142 #define HAVE_STRERROR 1
144 // Define to 1 if you have the <strings.h> header file.
145 #undef HAVE_STRINGS_H
147 // Define to 1 if you have the <string.h> header file.
150 // Define to 1 if you have the 'strrchr' function.
151 #define HAVE_STRRCHR 1
153 // Define to 1 if you have the 'strsignal' function.
154 #define HAVE_STRSIGNAL 1
156 // Define to 1 if you have the 'strtol' function.
157 #define HAVE_STRTOL 1
159 // Define to 1 if you have the <sys/stat.h> header file.
160 #undef HAVE_SYS_STAT_H
162 // Define to 1 if you have the <sys/types.h> header file.
163 #undef HAVE_SYS_TYPES_H
165 // Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible.
166 #undef HAVE_SYS_WAIT_H
168 // Define to 1 if you have the <time.h> header file.
171 // Define to 1 if you have the <unistd.h> header file.
174 // Define to 1 if you have the <math.h> header file.
177 // Define to 1 if you have the rintf function. Will use rint otherwise.
180 // STDC_HEADERS is defined to 1 on sane systems.
181 #if defined(HAVE_ASSERT_H) && defined(HAVE_CTYPE_H) &&\
182 defined(HAVE_ERRNO_H) && defined(HAVE_FLOAT_H) &&\
183 defined(HAVE_LIMITS_H) && defined(HAVE_LOCALE_H) &&\
184 defined(HAVE_MATH_H) && defined(HAVE_SIGNAL_H) &&\
185 defined(HAVE_STDARG_H) && defined(HAVE_STDDEF_H) &&\
186 defined(HAVE_STDIO_H) && defined(HAVE_STDLIB_H) &&\
187 defined(HAVE_STRING_H) && defined(HAVE_TIME_H)
188 #define STDC_HEADERS 1
191 // STDC_HEADERS is defined to 1 on unix systems.
192 #if defined(HAVE_FCNTL_H) && defined(HAVE_SYS_STAT_H) && defined(HAVE_UNISTD_H)
193 #define STDUNIX_HEADERS 1
196 // Define to 1 if 'lstat' dereferences a symlink specified with a trailing slash.
197 #undef LSTAT_FOLLOWS_SLASHED_SYMLINK
199 // Define to 1 if your compiler treats char as a separate type along with
200 // signed char and unsigned char. This will create overloads for char.
201 #undef HAVE_THREE_CHAR_TYPES
203 // Define as the return type of signal handlers ('int' or 'void').
206 // Define to 1 if you have 64 bit types available
209 // Define to 1 if you have the long long type
210 #undef HAVE_LONG_LONG
212 // Define to 1 if you want unrolled specializations for fill and copy
213 #define WANT_UNROLLED_COPY 1
215 // Define to 1 if you want to use MMX/SSE/3dNow! processor instructions
218 // Define to byte sizes of types
223 #undef SIZE_OF_LONG_LONG
224 #undef SIZE_OF_POINTER
225 #undef SIZE_OF_SIZE_T
227 #undef SIZE_T_IS_LONG
229 // Byte order macros, converted in utypes.h
230 #define USTL_LITTLE_ENDIAN 4321
231 #define USTL_BIG_ENDIAN 1234
232 #define USTL_BYTE_ORDER USTL_@BYTE_ORDER@
234 // Extended CPU capabilities
236 #undef CPU_HAS_EXT_DEBUG
237 #undef CPU_HAS_TIMESTAMPC
239 #undef CPU_HAS_CMPXCHG8
241 #undef CPU_HAS_SYSCALL
247 #undef CPU_HAS_FXSAVE
251 #undef CPU_HAS_EXT_3DNOW
255 // GCC vector extensions
256 #if defined(CPU_HAS_MMX) || defined(CPU_HAS_SSE)
257 #undef HAVE_VECTOR_EXTENSIONS
260 #if CPU_HAS_SSE && defined(__GNUC__)
261 #define __sse_align __attribute__((aligned(16)))
266 // Define to empty if 'const' does not conform to ANSI C.
269 // Define as '__inline' if that is what the C compiler calls it, or to nothing
270 // if it is not supported.
273 // Define to 'long' if <sys/types.h> does not define.
276 // Define to 'unsigned' if <sys/types.h> does not define.
279 #endif // CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F