Logo AND Algorithmique Numérique Distribuée

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