Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move datadesc and TCP sockets from GRAS to XBT.
[simgrid.git] / buildtools / Cmake / gras_config.h.in
1 // <root>/buildtools/Cmake/gras_config.h.in is user-written.
2 // With Cmake it creates <root>/src/gras_config.h
3
4 /* Set somes variables for Windows compilation */
5
6 #ifdef _XBT_DLL_EXPORT
7         #ifndef DLL_EXPORT
8                 #define DLL_EXPORT
9         #endif
10 #else
11         #ifdef _XBT_DLL_STATIC
12                 #ifndef DLL_STATIC
13                         #define DLL_STATIC
14                 #endif
15         #else
16                 #ifndef DLL_EXPORT
17                         #define DLL_IMPORT
18                 #endif
19         #endif
20 #endif
21
22 #cmakedefine SIZEOF_INT @SIZEOF_INT@
23 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
24
25 /* If __thread is available */
26 #cmakedefine HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@
27
28 #ifndef __STRICT_ANSI__
29         #cmakedefine __STRICT_ANSI__ @__STRICT_ANSI__@
30 #endif
31 #ifndef _MSC_VER
32         #cmakedefine _MSC_VER @_MSC_VER@
33 #endif
34 #ifndef _M_IX86
35         #cmakedefine _M_IX86 @_M_IX86@
36 #endif
37 #cmakedefine _XBT_WIN32 @_XBT_WIN32@    //this variable is set if it is a windows platform
38 #cmakedefine _WIN32 @_WIN32@                    //this variable is set if it is a 32 bits windows platform
39 #cmakedefine _WIN64 @_WIN64@                    //this variable is set if it is a 64 bits  windows platform
40 #cmakedefine __VISUALC__ @__VISUALC__@
41 #cmakedefine __BORLANDC__ @__BORLANDC__@
42 #cmakedefine APPLE @APPLE@
43 #ifdef _XBT_WIN32
44         #ifndef __GNUC__
45                 #cmakedefine __GNUC__ @__GNUC__@
46         #endif
47 #endif
48 /* Set to true if enable_model-checking is true */
49 #cmakedefine MMALLOC_WANT_OVERIDE_LEGACY @MMALLOC_WANT_OVERIDE_LEGACY@
50 #cmakedefine HAVE_MC @HAVE_MC@
51
52 /* Set to true if have the mergesort function */
53 #cmakedefine HAVE_MERGESORT @HAVE_MERGESORT@
54
55 /* If have linux_futex.h */
56 #cmakedefine HAVE_FUTEX_H @HAVE_FUTEX_H@
57
58 /* Some variable for graphviz */
59 #cmakedefine HAVE_GRAPH_H @GRAPH_H@
60 #cmakedefine HAVE_CGRAPH_H @CGRAPH_H@
61 #cmakedefine HAVE_AGRAPH_H @AGRAPH_H@
62
63 /* Define if building universal (internal helper macro) */
64 #cmakedefine AC_APPLE_UNIVERSAL_BUILD @AC_APPLE_UNIVERSAL_BUILD@
65
66 /* Arguments passed to the configure script */
67 #cmakedefine AC_CONFIGURE_ARGS @AC_CONFIGURE_ARGS@
68
69 /* Path to the addr2line tool */
70 #cmakedefine ADDR2LINE "@ADDR2LINE@"
71
72 /* Predefined possible va_copy() implementation (id: ASP) */
73 #cmakedefine __VA_COPY_USE_ASP(d, s) @__VA_COPY_USE_ASP@
74
75 /* Predefined possible va_copy() implementation (id: ASS) */
76 #cmakedefine __VA_COPY_USE_ASS(d, s) @__VA_COPY_USE_ASS@
77
78 /* Predefined possible va_copy() implementation (id: C99) */
79 #cmakedefine __VA_COPY_USE_C99(d, s) @__VA_COPY_USE_C99@
80
81 /* Define if xbt contexts are based on our threads implementation or not */
82 #cmakedefine CONTEXT_THREADS @CONTEXT_THREADS@
83
84 /* Define to 1 if you have the <ucontext.h> header file. */
85 #cmakedefine HAVE_UCONTEXT_H @HAVE_UCONTEXT_H@
86
87 /* Define if xbt contexts are based on ucontext or not */
88 #cmakedefine CONTEXT_UCONTEXT @CONTEXT_UCONTEXT@
89
90 /* Predefined possible va_copy() implementation (id: CPP) */
91 #cmakedefine __VA_COPY_USE_CPP(d, s) @__VA_COPY_USE_CPP@
92
93 /* Predefined possible va_copy() implementation (id: CPS) */
94 #cmakedefine __VA_COPY_USE_CPS(d, s) @__VA_COPY_USE_CPS@
95
96 /* Predefined possible va_copy() implementation (id: GCB) */
97 #cmakedefine __VA_COPY_USE_GCB(d, s) @__VA_COPY_USE_GCB@
98
99 /* Predefined possible va_copy() implementation (id: GCH) */
100 #cmakedefine __VA_COPY_USE_GCH(d, s) @__VA_COPY_USE_GCH@
101
102 /* Predefined possible va_copy() implementation (id: GCM) */
103 #cmakedefine __VA_COPY_USE_GCM(d, s) @__VA_COPY_USE_GCM@
104
105 /* Used to select the flavor of assembly that we need today */
106 #cmakedefine PROCESSOR_i686 @PROCESSOR_i686@
107 #cmakedefine PROCESSOR_x86_64 @PROCESSOR_x86_64@
108 #cmakedefine CMAKE_SYSTEM_PROCESSOR @CMAKE_SYSTEM_PROCESSOR@
109 #cmakedefine HAVE_RAWCTX @HAVE_RAWCTX@
110
111 /* Defined if arrays in struct can straddle struct alignment boundaries. This
112    is like than the structure compaction above, but this time, the argument to
113    be compacted is an array whom each element would be normally compacted.
114    Exemple: struct s { double d; int i; char c[6]; }; Arrays can straddle if c
115    is allowed to come just after i. Note that GRAS only support architecture
116    presenting this caracteristic so far. */
117 #cmakedefine GRAS_ARRAY_STRADDLE_STRUCT @GRAS_ARRAY_STRADDLE_STRUCT@
118
119 /* define if big endian */
120 #define GRAS_BIGENDIAN @GRAS_BIGENDIAN@
121
122 /* Defined if structures are compacted when possible. Consider this structure:
123    struct s {double d; int i; char c;}; If it is allowed, the char is placed
124    just after the int. If not, it has to be on the 8 bytes boundary imposed by
125    the double. For now, GRAS requires the structures to be compacted. */
126 #cmakedefine GRAS_STRUCT_COMPACT @GRAS_STRUCT_COMPACT@
127
128 /* defines the GRAS architecture signature of this machine */
129 #define GRAS_THISARCH @GRAS_THISARCH@
130
131 /* Define to 1 if you have the <dlfcn.h> header file. */
132 #cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
133
134 /* Define to 1 if you have the <errno.h> header file. */
135 #cmakedefine HAVE_ERRNO_H @HAVE_ERRNO_H@
136
137 /* Define to 1 if you have the <execinfo.h> header file. */
138 #cmakedefine HAVE_EXECINFO_H @HAVE_EXECINFO_H@
139
140 /* Define to 1 if you have the `mmap' function. */
141 #cmakedefine HAVE_MMAP @HAVE_MMAP@
142
143 /* Define to 1 if you have the `getdtablesize' function. */
144 #cmakedefine HAVE_GETDTABLESIZE @HAVE_GETDTABLESIZE@
145
146 /* Define to 1 if you have the `gettimeofday' function. */
147 #cmakedefine HAVE_GETTIMEOFDAY @HAVE_GETTIMEOFDAY@
148
149 /* Define to 1 if you have the `clock_gettime' function. */
150 #cmakedefine HAVE_POSIX_GETTIME @HAVE_POSIX_GETTIME@
151
152 /* Indicates that we have GTNETS support */
153 #cmakedefine HAVE_GTNETS @HAVE_GTNETS@
154
155 /* Indicates that we have SMPI support */
156 #cmakedefine HAVE_SMPI @HAVE_SMPI@
157
158 /* Indicates that we have NS3 support */
159 #cmakedefine HAVE_NS3 @HAVE_NS3@
160
161 /* Define to 1 if you have the <inttypes.h> header file. */
162 #cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
163
164 /* defines whether Lua bindings must be compiled or not */
165 #cmakedefine HAVE_LUA @HAVE_LUA@
166
167 /* Define to 1 if you have the <lua5.1/lualib.h> header file. */
168 #cmakedefine HAVE_LUA5_1_LUALIB_H @HAVE_LUA5_1_LUALIB_H@
169
170 /* Define to 1 if you have the `makecontext' function. */
171 #cmakedefine HAVE_MAKECONTEXT @HAVE_MAKECONTEXT@
172
173 /* Define to 1 if you have the <memory.h> header file. */
174 #cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@
175
176 /* Define if pthread_mutex_timedlock() is avaible or not (part of XPG6
177    standard only?) */
178 #cmakedefine HAVE_MUTEX_TIMEDLOCK @HAVE_MUTEX_TIMEDLOCK@
179
180 /* Define to 1 if you have the `popen' function. */
181 #cmakedefine HAVE_POPEN @HAVE_POPEN@
182
183 /* Define to 1 if you have the <pthread.h> header file. */
184 #cmakedefine HAVE_PTHREAD_H @HAVE_PTHREAD_H@
185
186 /* Define to 1 if you have the `readv' function. */
187 #cmakedefine HAVE_READV @HAVE_READV@
188
189 /* Define if sem_init() is avaible or not (part of XPG6 standard only) */
190 #cmakedefine HAVE_SEM_INIT @HAVE_SEM_INIT@
191
192 /* Define if sem_timedwait() is avaible or not (part of XPG6 standard only) */
193 #cmakedefine HAVE_SEM_TIMEDWAIT @HAVE_SEM_TIMEDWAIT@
194
195 /* Define to 1 if you have the `signal' function. */
196 #cmakedefine HAVE_SIGNAL @HAVE_SIGNAL@
197
198 /* Define to 1 if you have the <signal.h> header file. */
199 #cmakedefine HAVE_SIGNAL_H @HAVE_SIGNAL_H@
200
201 /* Define to 1 if you have the `snprintf' function. */
202 #cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@
203
204 /* Define to 1 if you have the <stdint.h> header file. */
205 #cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
206
207 /* Define to 1 if you have the <stdlib.h> header file. */
208 #cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@
209
210 /* Define to 1 if you have the <strings.h> header file. */
211 #cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
212
213 /* Define to 1 if you have the <string.h> header file. */
214 #cmakedefine HAVE_STRING_H @HAVE_STRING_H@
215
216 /* Define to 1 if you have the `sysconf' function. */
217 #cmakedefine HAVE_SYSCONF @HAVE_SYSCONF@
218
219 /* Define to 1 if you have the <sys/socket.h> header file. */
220 #cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@
221
222 /* Define to 1 if you have the <sys/stat.h> header file. */
223 #cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@
224
225 /* Define to 1 if you have the <sys/time.h> header file. */
226 #cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@
227
228 /* Define to 1 if you have the <sys/types.h> header file. */
229 #cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
230
231 /* Define to 1 if you have the <unistd.h> header file. */
232 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
233
234 /* Define to 1 if you have the `usleep' function. */
235 #cmakedefine HAVE_USLEEP @HAVE_USLEEP@
236
237 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */
238 #cmakedefine HAVE_VALGRIND_VALGRIND_H @HAVE_VALGRIND_VALGRIND_H@
239
240 /* Define if va_copy() macro exists (and no fallback implementation is
241    required) */
242 #cmakedefine HAVE_VA_COPY @HAVE_VA_COPY@
243
244 /* Define to 1 if you have the `vsnprintf' function. */
245 #cmakedefine HAVE_VSNPRINTF @HAVE_VSNPRINTF@
246
247 /* Define to 1 if you have the <windows.h> header file. */
248 #cmakedefine HAVE_WINDOWS_H @HAVE_WINDOWS_H@
249
250 /* Define to 1 if you have the <winsock2.h> header file. */
251 #cmakedefine HAVE_WINSOCK2_H @HAVE_WINSOCK2_H@
252
253 /* Define to 1 if you have the <winsock.h> header file. */
254 #cmakedefine HAVE_WINSOCK_H @HAVE_WINSOCK_H@
255
256 /* Define to the sub-directory in which libtool stores uninstalled libraries.*/
257 #cmakedefine LT_OBJDIR @LT_OBJDIR@
258
259 /* enable the asprintf replacement */
260 #cmakedefine NEED_ASPRINTF @NEED_ASPRINTF@
261
262 /* enable the vasprintf replacement */
263 #cmakedefine NEED_VASPRINTF @NEED_VASPRINTF@
264
265 /* Name of package */
266 #cmakedefine PACKAGE @PACKAGE@
267
268 /* Define to the address where bug reports for this package should be sent. */
269 #cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@ 
270
271 /* Define to the full name of this package. */
272 #cmakedefine PACKAGE_NAME @PACKAGE_NAME@
273
274 /* Define to the full name and version of this package. */
275 #cmakedefine PACKAGE_STRING @PACKAGE_STRING@
276
277 /* Define to the one symbol short name of this package. */
278 #cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@
279
280 /* Define to the home page for this package. */
281 #cmakedefine PACKAGE_URL @PACKAGE_URL@
282
283 /* Define to the version of this package. */
284 #cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
285
286 /* "enable replacement (v)snprintf if system (v)snprintf is broken" */
287 #cmakedefine PREFER_PORTABLE_SNPRINTF @PREFER_PORTABLE_SNPRINTF@
288
289 /* Indicates whether printf("%s",NULL) works */
290 #cmakedefine PRINTF_NULL_WORKING @PRINTF_NULL_WORKING@
291
292 /* define for stack growth */
293 #cmakedefine PTH_STACKGROWTH @PTH_STACKGROWTH@
294
295 /* enable the getline replacement */
296 #cmakedefine SIMGRID_NEED_GETLINE @SIMGRID_NEED_GETLINE@
297
298 /* The maximal size of any scalar on this arch */
299 #cmakedefine SIZEOF_MAX @SIZEOF_MAX@
300
301 /* Define to 1 if you have the ANSI C header files. */
302 #cmakedefine STDC_HEADERS @STDC_HEADERS@
303
304 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
305 #cmakedefine TIME_WITH_SYS_TIME @TIME_WITH_SYS_TIME@
306
307 /* Version number of package */
308 #cmakedefine VERSION @VERSION@
309
310 /* Tracing SimGrid */
311 #cmakedefine HAVE_TRACING @HAVE_TRACING@
312
313 /* Tracking of latency bound */
314 #cmakedefine HAVE_LATENCY_BOUND_TRACKING @HAVE_LATENCY_BOUND_TRACKING@
315
316 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
317    significant byte first (like Motorola and SPARC, unlike Intel). */
318 #if defined AC_APPLE_UNIVERSAL_BUILD
319 # if defined __BIG_ENDIAN__
320 #  define WORDS_BIGENDIAN 1
321 # endif
322 #else
323 # ifndef WORDS_BIGENDIAN
324 /* #  undef WORDS_BIGENDIAN */
325 # endif
326 #endif
327
328 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
329    `char[]'. */
330 #cmakedefine YYTEXT_POINTER 
331
332 /* Optional va_copy() implementation activation */
333 #ifndef HAVE_VA_COPY
334 #define va_copy(d, s) __VA_COPY_USE(d, s)
335 #endif
336 /* Define to id of used va_copy() implementation */
337 #cmakedefine __VA_COPY_USE(d, s) @__VA_COPY_USE@
338
339 /* Define to empty if `const' does not conform to ANSI C. */
340 #cmakedefine const @const@
341
342 /* Define to `__inline__' or `__inline' if that's what the C compiler
343    calls it, or to nothing if 'inline' is not supported under any name.  */
344 #ifndef __cplusplus
345 #cmakedefine inline @inline@
346 #endif
347
348 /* Define to `unsigned int' if <sys/types.h> does not define. */
349 #cmakedefine size_t @size_t@