All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
factoryconf.h
Go to the documentation of this file.
1 /* factoryconf.h automatically generated by makeheader from factoryconf.template */
2 /* emacs edit mode for this file is -*- C -*- */
3 
4 #ifndef INCL_FACTORYCONF_H
5 #define INCL_FACTORYCONF_H
6 
7 /* template to generate `factoryconf.h'. */
8 
9 /**
10 *
11 * @file factoryconf.h
12 *
13 * `factoryconf.h' serves as a configuration file for the
14 * installed source files (templates and `factory.h') the same
15 * way as `config.h' serves as a configuration file for the
16 * source files from which the library is build. Additionally,
17 * we paste a copy of our `cf_assert.h' into this file which is
18 * necessary for the templates to translate.
19 *
20 **/
21 
22 /* stuff included from ./config.h */
23 
24 #ifndef _FACTORY_CONFIG_H
25 #define _FACTORY_CONFIG_H 1
26 
27 /* config.h. Generated automatically at end of configure. */
28 
29 /* _config.h. Generated from _config.h.in by configure. */
30 /* _config.h.in. Generated from configure.ac by autoheader. */
31 
32 /* define to use "configurable inline methods" (see cf_inline.cc) */
33 /* #undef CF_USE_INLINE */
34 
35 /* define if you want to have debugging output */
36 /* #undef DEBUGOUTPUT */
37 
38 /* DISABLE_GMP_CPP */
39 #ifndef DISABLE_GMP_CPP
40 #define DISABLE_GMP_CPP 1
41 #endif
42 
43 /* factory configuration */
44 #ifndef FACTORYCONFIGURATION
45 #define FACTORYCONFIGURATION "' '--disable-option-checking' '--prefix=/usr' '--build=x86_64-linux-gnu' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security' '--enable-omalloc' 'OMALLOC_LIBS=/build/singular-4.0.3-p3+ds/omalloc/libsingular-omalloc.la' 'OMALLOC_INCLUDES=-I/build/singular-4.0.3-p3+ds' '--with-Singular' 'RESOURCES_LIBS=/build/singular-4.0.3-p3+ds/resources/libsingular-resources.la' 'RESOURCES_INCLUDES=-I/build/singular-4.0.3-p3+ds ' 'FACTORY_LIBS=/build/singular-4.0.3-p3+ds/factory/libsingular-factory.la' 'FACTORY_INCLUDES=-I/build/singular-4.0.3-p3+ds -I/build/singular-4.0.3-p3+ds/factory/include' '--cache-file=/dev/null' '--srcdir=.'' in /build/singular-4.0.3-p3+ds/factory"
46 #endif
47 
48 /* factory version */
49 #ifndef FACTORYVERSION
50 #define FACTORYVERSION "4.0.1"
51 #endif
52 
53 /* Defenition for FACTORY_INT64 */
54 #ifndef FACTORY_INT64
55 #define FACTORY_INT64 long long int
56 #endif
57 
58 /* Define if GMP is version 3.xxx */
59 /* #undef GMP_VERSION_3 */
60 
61 /* Define to 1 if you have the <cstdio> header file. */
62 #ifndef HAVE_CSTDIO
63 #define HAVE_CSTDIO 1
64 #endif
65 
66 /* Define to 1 if you have the <ctype.h> header file. */
67 /* #undef HAVE_CTYPE_H */
68 
69 /* Define to 1 if you have the <dlfcn.h> header file. */
70 #ifndef HAVE_DLFCN_H
71 #define HAVE_DLFCN_H 1
72 #endif
73 
74 /* Define to 1 if you have the <errno.h> header file. */
75 /* #undef HAVE_ERRNO_H */
76 
77 /* Define if FLINT is installed */
78 #ifndef HAVE_FLINT
79 #define HAVE_FLINT 1
80 #endif
81 
82 /* Define to 1 if you have the <fstream> header file. */
83 /* #undef HAVE_FSTREAM */
84 
85 /* Define to 1 if you have the <fstream.h> header file. */
86 /* #undef HAVE_FSTREAM_H */
87 
88 /* Define if GMP is installed */
89 #ifndef HAVE_GMP
90 #define HAVE_GMP 1
91 #endif
92 
93 /* Define to 1 if you have the <inttypes.h> header file. */
94 #ifndef HAVE_INTTYPES_H
95 #define HAVE_INTTYPES_H 1
96 #endif
97 
98 /* Define to 1 if you have the <iostream> header file. */
99 /* #undef HAVE_IOSTREAM */
100 
101 /* Define to 1 if you have the <iostream.h> header file. */
102 /* #undef HAVE_IOSTREAM_H */
103 
104 /* Define to 1 if you have the `m' library (-lm). */
105 #ifndef HAVE_LIBM
106 #define HAVE_LIBM 1
107 #endif
108 
109 /* Define to 1 if you have the <math.h> header file. */
110 #ifndef HAVE_MATH_H
111 #define HAVE_MATH_H 1
112 #endif
113 
114 /* Define to 1 if you have the <memory.h> header file. */
115 #ifndef HAVE_MEMORY_H
116 #define HAVE_MEMORY_H 1
117 #endif
118 
119 /* Define if NTL is installed */
120 #ifndef HAVE_NTL
121 #define HAVE_NTL 1
122 #endif
123 
124 /* define if build with OMALLOC */
125 #ifndef HAVE_OMALLOC
126 #define HAVE_OMALLOC 1
127 #endif
128 
129 /* Define to 1 if you have the <omalloc/omalloc.h> header file. */
130 /* #undef HAVE_OMALLOC_OMALLOC_H */
131 
132 /* Define to 1 if you have the <signal.h> header file. */
133 /* #undef HAVE_SIGNAL_H */
134 
135 /* Define to 1 if you have the <stdarg.h> header file. */
136 /* #undef HAVE_STDARG_H */
137 
138 /* Define to 1 if you have the <stdint.h> header file. */
139 #ifndef HAVE_STDINT_H
140 #define HAVE_STDINT_H 1
141 #endif
142 
143 /* Define to 1 if you have the <stdio.h> header file. */
144 #ifndef HAVE_STDIO_H
145 #define HAVE_STDIO_H 1
146 #endif
147 
148 /* Define to 1 if you have the <stdlib.h> header file. */
149 #ifndef HAVE_STDLIB_H
150 #define HAVE_STDLIB_H 1
151 #endif
152 
153 /* Define to 1 if you have the <string> header file. */
154 /* #undef HAVE_STRING */
155 
156 /* Define to 1 if you have the <strings.h> header file. */
157 #ifndef HAVE_STRINGS_H
158 #define HAVE_STRINGS_H 1
159 #endif
160 
161 /* Define to 1 if you have the <string.h> header file. */
162 #ifndef HAVE_STRING_H
163 #define HAVE_STRING_H 1
164 #endif
165 
166 /* Define to 1 if you have the <strstream.h> header file. */
167 /* #undef HAVE_STRSTREAM_H */
168 
169 /* Define to 1 if you have the <sys/param.h> header file. */
170 /* #undef HAVE_SYS_PARAM_H */
171 
172 /* Define to 1 if you have the <sys/stat.h> header file. */
173 #ifndef HAVE_SYS_STAT_H
174 #define HAVE_SYS_STAT_H 1
175 #endif
176 
177 /* Define to 1 if you have the <sys/times.h> header file. */
178 /* #undef HAVE_SYS_TIMES_H */
179 
180 /* Define to 1 if you have the <sys/types.h> header file. */
181 #ifndef HAVE_SYS_TYPES_H
182 #define HAVE_SYS_TYPES_H 1
183 #endif
184 
185 /* Define to 1 if you have the <time.h> header file. */
186 #ifndef HAVE_TIME_H
187 #define HAVE_TIME_H 1
188 #endif
189 
190 /* Define to 1 if you have the <unistd.h> header file. */
191 #ifndef HAVE_UNISTD_H
192 #define HAVE_UNISTD_H 1
193 #endif
194 
195 /* Define to the sub-directory in which libtool stores uninstalled libraries.
196  */
197 #ifndef LT_OBJDIR
198 #define LT_OBJDIR ".libs/"
199 #endif
200 
201 /* define if you do not want to activate assertions */
202 /* #undef NOASSERT */
203 
204 /* define to build factory without stream IO */
205 #ifndef NOSTREAMIO
206 #define NOSTREAMIO 1
207 #endif
208 
209 /* "Disable OM Debug" */
210 #ifndef OM_NDEBUG
211 #define OM_NDEBUG 1
212 #endif
213 
214 /* Name of package */
215 #ifndef PACKAGE
216 #define PACKAGE "factory"
217 #endif
218 
219 /* Define to the address where bug reports for this package should be sent. */
220 #ifndef PACKAGE_BUGREPORT
221 #define PACKAGE_BUGREPORT ""
222 #endif
223 
224 /* Define to the full name of this package. */
225 #ifndef PACKAGE_NAME
226 #define PACKAGE_NAME "factory"
227 #endif
228 
229 /* Define to the full name and version of this package. */
230 #ifndef PACKAGE_STRING
231 #define PACKAGE_STRING "factory 4.0.3"
232 #endif
233 
234 /* Define to the one symbol short name of this package. */
235 #ifndef PACKAGE_TARNAME
236 #define PACKAGE_TARNAME "factory"
237 #endif
238 
239 /* Define to the home page for this package. */
240 #ifndef PACKAGE_URL
241 #define PACKAGE_URL ""
242 #endif
243 
244 /* Define to the version of this package. */
245 #ifndef PACKAGE_VERSION
246 #define PACKAGE_VERSION "4.0.3"
247 #endif
248 
249 /* define if linked to Singular */
250 #ifndef SINGULAR
251 #define SINGULAR 1
252 #endif
253 
254 /* SINGULAR_CFLAGS */
255 #ifndef SINGULAR_CFLAGS
256 #define SINGULAR_CFLAGS "-DSING_NDEBUG -DOM_NDEBUG"
257 #endif
258 
259 /* "Disable Singular Debug" */
260 #ifndef SING_NDEBUG
261 #define SING_NDEBUG 1
262 #endif
263 
264 /* The size of `long', as computed by sizeof. */
265 #ifndef SIZEOF_LONG
266 #define SIZEOF_LONG 8
267 #endif
268 
269 /* Define to 1 if you have the ANSI C header files. */
270 #ifndef STDC_HEADERS
271 #define STDC_HEADERS 1
272 #endif
273 
274 /* define if you want to activate the timing stuff */
275 /* #undef TIMING */
276 
277 /* Version number of package */
278 #ifndef VERSION
279 #define VERSION "4.0.3"
280 #endif
281 
282 /* Define to empty if `const' does not conform to ANSI C. */
283 /* #undef const */
284 
285 /* Define to `__inline__' or `__inline' if that's what the C compiler
286  calls it, or to nothing if 'inline' is not supported under any name. */
287 #ifndef __cplusplus
288 /* #undef inline */
289 #endif
290 
291 /* once: _FACTORY_CONFIG_H */
292 #endif
293 
294 /* stuff included from ./cf_assert.h */
295 
296 /* emacs edit mode for this file is -*- C -*- */
297 
298 /**
299  * @file cf_assert.h
300  *
301  * assertions for Factory
302  *
303  * @note needs --enable-assertions at configure
304 **/
305 
306 /* This is for compatibility with standard cf_assert.h */
307 #if defined (SING_NDEBUG) && ! defined (NOASSERT)
308 #define NOASSERT
309 #endif
310 
311 /* It should be possible to include this file multiple times for different */
312 /* settings of NOASSERT */
313 
314 /* {{{ undefines */
315 #undef __ASSERT
316 #undef __ASSERT1
317 #undef STICKYASSERT
318 #undef STICKYASSERT1
319 #undef ASSERT
320 #undef ASSERT1
321 
322 #undef __WARN
323 #undef STICKYWARN
324 #undef WARN
325 
326 #undef PVIRT_VOID
327 #undef PVIRT_INTCF
328 #undef PVIRT_BOOL
329 #undef PVIRT_INT
330 #undef PVIRT_CHARCC
331 /* }}} */
332 
333 #ifdef __cplusplus
334 #ifndef NOSTREAMIO
335 #ifdef HAVE_CSTDIO
336 #include <cstdio>
337 #include <cstdlib>
338 #else
339 extern "C" {
340 #include <stdio.h>
341 #include <stdlib.h>
342 }
343 #endif
344 #else
345 #include <stdio.h>
346 #include <stdlib.h>
347 #endif
348 #endif
349 
350 /* {{{ permanent macro definitions */
351 #ifndef __GNUC__
352 #define __ASSERT(expression, message, file, line) \
353 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
354  file, line, expression ), abort(), 0 )
355 #define __ASSERT1(expression, message, parameter1, file, line) \
356 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
357  parameter1, file, line, expression ), abort(), 0 )
358 
359 #define STICKYASSERT(expression, message) \
360 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
361 #define STICKYASSERT1(expression, message, parameter1) \
362 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
363 
364 #define __WARN(expression, message, file, line) \
365 (fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
366  file, line, expression ), 0 )
367 #define STICKYWARN(expression, message) \
368 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
369 #else /* __GNUCC__ */
370 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
371 #define __ASSERT(expression, message, file, line, function) \
372 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
373  file, line, function, expression ), abort(), 0 )
374 #define __ASSERT1(expression, message, parameter1, file, line, function) \
375 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
376  parameter1, file, line, function, expression ), abort(), 0 )
377 
378 #define STICKYASSERT(expression, message) \
379 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
380 #define STICKYASSERT1(expression, message, parameter1) \
381 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
382 
383 #define __WARN(expression, message, file, line, function) \
384 (fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
385  file, line, function, expression ), 0 )
386 #define STICKYWARN(expression, message) \
387 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
388 #endif /* __GNUCC__ */
389 /* }}} */
390 
391 /* {{{ macro definitions dependent on NOASSERT */
392 #ifndef NOASSERT
393 #ifndef __GNUC__
394 #define ASSERT(expression, message) \
395 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
396 #define ASSERT1(expression, message, parameter1) \
397 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
398 
399 #define WARN(expression, message) \
400 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
401 #else /* __GNUCC__ */
402 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
403 #define ASSERT(expression, message) \
404 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
405 #define ASSERT1(expression, message, parameter1) \
406 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
407 
408 #define WARN(expression, message) \
409 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
410 #endif /* __GNUCC__ */
411 
412 #define PVIRT_VOID(msg) \
413 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
414 #define PVIRT_INTCF(msg) \
415 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
416 #define PVIRT_BOOL(msg) \
417 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
418 #define PVIRT_INT(msg) \
419 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
420 #define PVIRT_CHARCC(msg) \
421 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
422 #else /* NOASSERT */
423 #define ASSERT(expression, message) do {} while (0)
424 #define ASSERT1(expression, message, parameter1) do {} while (0)
425 
426 #define WARN(expression, message) do {} while (0)
427 
428 #define PVIRT_VOID(msg) = 0
429 #define PVIRT_INTCF(msg) = 0
430 #define PVIRT_BOOL(msg) = 0
431 #define PVIRT_INT(msg) = 0
432 #define PVIRT_CHARCC(msg) = 0
433 #endif /* NOASSERT */
434 /* }}} */
435 
436 #endif /* ! INCL_FACTORYCONF_H */