My Project  UNKNOWN_GIT_VERSION
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 #ifndef CF_USE_INLINE
34 #define CF_USE_INLINE 1
35 #endif
36 
37 /* define if you want to have debugging output */
38 /* #undef DEBUGOUTPUT */
39 
40 /* DISABLE_GMP_CPP */
41 #ifndef DISABLE_GMP_CPP
42 #define DISABLE_GMP_CPP 1
43 #endif
44 
45 /* factory configuration */
46 #ifndef FACTORYCONFIGURATION
47 #define FACTORYCONFIGURATION "' '--disable-option-checking' '--prefix=/usr' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--bindir=/usr/lib64/Singular' '--disable-silent-rules' '--disable-optimizationflags' '--disable-static' '--enable-p-procs-dynamic' '--enable-gfanlib' '--enable-polymake' '--disable-python_module' '--enable-streamio' '--with-gmp' '--with-ntl' '--with-flint' '--with-mathicgb' '--without-python' '--with-readline' '--disable-doc' '--with-malloc=system' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -fno-delete-null-pointer-checks' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-I/usr/include/flint -I/usr/include/gfanlib' 'CXX=g++' 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -fno-delete-null-pointer-checks' 'LT_SYS_LIBRARY_PATH=/usr/lib64:' '--enable-omalloc' 'OMALLOC_LIBS=/builddir/build/BUILD/singular-4.1.1/omalloc/libomalloc.la' 'OMALLOC_INCLUDES=-I/builddir/build/BUILD/singular-4.1.1' '--with-Singular' 'RESOURCES_LIBS=/builddir/build/BUILD/singular-4.1.1/resources/libsingular_resources.la' 'RESOURCES_INCLUDES=-I/builddir/build/BUILD/singular-4.1.1 ' 'FACTORY_LIBS=/builddir/build/BUILD/singular-4.1.1/factory/libfactory.la' 'FACTORY_INCLUDES=-I/builddir/build/BUILD/singular-4.1.1 -I/builddir/build/BUILD/singular-4.1.1/factory/include' '--cache-file=/dev/null' '--srcdir=.'' in /builddir/build/BUILD/singular-4.1.1/factory"
48 #endif
49 
50 /* factory version */
51 #ifndef FACTORYVERSION
52 #define FACTORYVERSION "4.1.1"
53 #endif
54 
55 /* Define if GMP is version 3.xxx */
56 /* #undef GMP_VERSION_3 */
57 
58 /* Define to 1 if you have the <cstdio> header file. */
59 #ifndef HAVE_CSTDIO
60 #define HAVE_CSTDIO 1
61 #endif
62 
63 /* Define to 1 if you have the <ctype.h> header file. */
64 #ifndef HAVE_CTYPE_H
65 #define HAVE_CTYPE_H 1
66 #endif
67 
68 /* Define to 1 if you have the <dlfcn.h> header file. */
69 #ifndef HAVE_DLFCN_H
70 #define HAVE_DLFCN_H 1
71 #endif
72 
73 /* Define to 1 if you have the <errno.h> header file. */
74 #ifndef HAVE_ERRNO_H
75 #define HAVE_ERRNO_H 1
76 #endif
77 
78 /* Define if FLINT is installed */
79 #ifndef HAVE_FLINT
80 #define HAVE_FLINT 1
81 #endif
82 
83 /* Define to 1 if you have the <fstream> header file. */
84 #ifndef HAVE_FSTREAM
85 #define HAVE_FSTREAM 1
86 #endif
87 
88 /* Define to 1 if you have the <fstream.h> header file. */
89 /* #undef HAVE_FSTREAM_H */
90 
91 /* Define if GMP is installed */
92 #ifndef HAVE_GMP
93 #define HAVE_GMP 1
94 #endif
95 
96 /* Define to 1 if you have the <inttypes.h> header file. */
97 #ifndef HAVE_INTTYPES_H
98 #define HAVE_INTTYPES_H 1
99 #endif
100 
101 /* Define to 1 if you have the <iostream> header file. */
102 #ifndef HAVE_IOSTREAM
103 #define HAVE_IOSTREAM 1
104 #endif
105 
106 /* Define to 1 if you have the <iostream.h> header file. */
107 /* #undef HAVE_IOSTREAM_H */
108 
109 /* Define to 1 if you have the `m' library (-lm). */
110 #ifndef HAVE_LIBM
111 #define HAVE_LIBM 1
112 #endif
113 
114 /* Define to 1 if you have the <math.h> header file. */
115 #ifndef HAVE_MATH_H
116 #define HAVE_MATH_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 #ifndef HAVE_OMALLOC_OMALLOC_H
131 #define HAVE_OMALLOC_OMALLOC_H 1
132 #endif
133 
134 /* Define to 1 if you have the <signal.h> header file. */
135 #ifndef HAVE_SIGNAL_H
136 #define HAVE_SIGNAL_H 1
137 #endif
138 
139 /* Define to 1 if you have the <stdarg.h> header file. */
140 #ifndef HAVE_STDARG_H
141 #define HAVE_STDARG_H 1
142 #endif
143 
144 /* Define to 1 if you have the <stdint.h> header file. */
145 #ifndef HAVE_STDINT_H
146 #define HAVE_STDINT_H 1
147 #endif
148 
149 /* Define to 1 if you have the <stdio.h> header file. */
150 #ifndef HAVE_STDIO_H
151 #define HAVE_STDIO_H 1
152 #endif
153 
154 /* Define to 1 if you have the <stdlib.h> header file. */
155 #ifndef HAVE_STDLIB_H
156 #define HAVE_STDLIB_H 1
157 #endif
158 
159 /* Define to 1 if you have the <string> header file. */
160 #ifndef HAVE_STRING
161 #define HAVE_STRING 1
162 #endif
163 
164 /* Define to 1 if you have the <strings.h> header file. */
165 #ifndef HAVE_STRINGS_H
166 #define HAVE_STRINGS_H 1
167 #endif
168 
169 /* Define to 1 if you have the <string.h> header file. */
170 #ifndef HAVE_STRING_H
171 #define HAVE_STRING_H 1
172 #endif
173 
174 /* Define to 1 if you have the <strstream.h> header file. */
175 /* #undef HAVE_STRSTREAM_H */
176 
177 /* Define to 1 if you have the <sys/param.h> header file. */
178 /* #undef HAVE_SYS_PARAM_H */
179 
180 /* Define to 1 if you have the <sys/stat.h> header file. */
181 #ifndef HAVE_SYS_STAT_H
182 #define HAVE_SYS_STAT_H 1
183 #endif
184 
185 /* Define to 1 if you have the <sys/times.h> header file. */
186 /* #undef HAVE_SYS_TIMES_H */
187 
188 /* Define to 1 if you have the <sys/types.h> header file. */
189 #ifndef HAVE_SYS_TYPES_H
190 #define HAVE_SYS_TYPES_H 1
191 #endif
192 
193 /* Define to 1 if you have the <time.h> header file. */
194 #ifndef HAVE_TIME_H
195 #define HAVE_TIME_H 1
196 #endif
197 
198 /* Define to 1 if you have the <unistd.h> header file. */
199 #ifndef HAVE_UNISTD_H
200 #define HAVE_UNISTD_H 1
201 #endif
202 
203 /* Define to the sub-directory where libtool stores uninstalled libraries. */
204 #ifndef LT_OBJDIR
205 #define LT_OBJDIR ".libs/"
206 #endif
207 
208 /* define if you do not want to activate assertions */
209 /* #undef NOASSERT */
210 
211 /* define to build factory without stream IO */
212 /* #undef NOSTREAMIO */
213 
214 /* "Disable OM Debug" */
215 #ifndef OM_NDEBUG
216 #define OM_NDEBUG 1
217 #endif
218 
219 /* Name of package */
220 #ifndef PACKAGE
221 #define PACKAGE "factory"
222 #endif
223 
224 /* Define to the address where bug reports for this package should be sent. */
225 #ifndef PACKAGE_BUGREPORT
226 #define PACKAGE_BUGREPORT ""
227 #endif
228 
229 /* Define to the full name of this package. */
230 #ifndef PACKAGE_NAME
231 #define PACKAGE_NAME "factory"
232 #endif
233 
234 /* Define to the full name and version of this package. */
235 #ifndef PACKAGE_STRING
236 #define PACKAGE_STRING "factory 4.1.1"
237 #endif
238 
239 /* Define to the one symbol short name of this package. */
240 #ifndef PACKAGE_TARNAME
241 #define PACKAGE_TARNAME "factory"
242 #endif
243 
244 /* Define to the home page for this package. */
245 #ifndef PACKAGE_URL
246 #define PACKAGE_URL ""
247 #endif
248 
249 /* Define to the version of this package. */
250 #ifndef PACKAGE_VERSION
251 #define PACKAGE_VERSION "4.1.1"
252 #endif
253 
254 /* define if linked to Singular */
255 #ifndef SINGULAR
256 #define SINGULAR 1
257 #endif
258 
259 /* SINGULAR_CFLAGS */
260 #ifndef SINGULAR_CFLAGS
261 #define SINGULAR_CFLAGS "-DSING_NDEBUG -DOM_NDEBUG"
262 #endif
263 
264 /* "Disable Singular Debug" */
265 #ifndef SING_NDEBUG
266 #define SING_NDEBUG 1
267 #endif
268 
269 /* The size of `long', as computed by sizeof. */
270 #ifndef SIZEOF_LONG
271 #define SIZEOF_LONG 8
272 #endif
273 
274 /* Define to 1 if all of the C90 standard headers exist (not just the ones
275  required in a freestanding environment). This macro is provided for
276  backward compatibility; new code need not use it. */
277 #ifndef STDC_HEADERS
278 #define STDC_HEADERS 1
279 #endif
280 
281 /* define if you want to activate the timing stuff */
282 /* #undef TIMING */
283 
284 /* Version number of package */
285 #ifndef VERSION
286 #define VERSION "4.1.1"
287 #endif
288 
289 /* Define to empty if `const' does not conform to ANSI C. */
290 /* #undef const */
291 
292 /* Define to `__inline__' or `__inline' if that's what the C compiler
293  calls it, or to nothing if 'inline' is not supported under any name. */
294 #ifndef __cplusplus
295 /* #undef inline */
296 #endif
297 
298 /* once: _FACTORY_CONFIG_H */
299 #endif
300 
301 /* stuff included from ./cf_assert.h */
302 
303 /* emacs edit mode for this file is -*- C -*- */
304 
305 /**
306  * @file cf_assert.h
307  *
308  * assertions for Factory
309  *
310  * @note needs --enable-assertions at configure
311 **/
312 
313 /* This is for compatibility with standard cf_assert.h */
314 #if defined (SING_NDEBUG) && ! defined (NOASSERT)
315 #define NOASSERT
316 #endif
317 
318 /* It should be possible to include this file multiple times for different */
319 /* settings of NOASSERT */
320 
321 /* {{{ undefines */
322 #undef __ASSERT
323 #undef __ASSERT1
324 #undef STICKYASSERT
325 #undef STICKYASSERT1
326 #undef ASSERT
327 #undef ASSERT1
328 
329 #undef __WARN
330 #undef STICKYWARN
331 #undef WARN
332 
333 #undef PVIRT_VOID
334 #undef PVIRT_INTCF
335 #undef PVIRT_BOOL
336 #undef PVIRT_INT
337 #undef PVIRT_CHARCC
338 /* }}} */
339 
340 #ifdef __cplusplus
341 #ifndef NOSTREAMIO
342 #ifdef HAVE_CSTDIO
343 #include <cstdio>
344 #include <cstdlib>
345 #else
346 extern "C" {
347 #include <stdio.h>
348 #include <stdlib.h>
349 }
350 #endif
351 #else
352 #include <stdio.h>
353 #include <stdlib.h>
354 #endif
355 #endif
356 
357 /* {{{ permanent macro definitions */
358 #ifndef __GNUC__
359 #define __ASSERT(expression, message, file, line) \
360 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
361  file, line, expression ), abort(), 0 )
362 #define __ASSERT1(expression, message, parameter1, file, line) \
363 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
364  parameter1, file, line, expression ), abort(), 0 )
365 
366 #define STICKYASSERT(expression, message) \
367 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
368 #define STICKYASSERT1(expression, message, parameter1) \
369 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
370 
371 #define __WARN(expression, message, file, line) \
372 (fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
373  file, line, expression ), 0 )
374 #define STICKYWARN(expression, message) \
375 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
376 #else /* __GNUCC__ */
377 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
378 #define __ASSERT(expression, message, file, line, function) \
379 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
380  file, line, function, expression ), abort(), 0 )
381 #define __ASSERT1(expression, message, parameter1, file, line, function) \
382 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
383  parameter1, file, line, function, expression ), abort(), 0 )
384 
385 #define STICKYASSERT(expression, message) \
386 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
387 #define STICKYASSERT1(expression, message, parameter1) \
388 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
389 
390 #define __WARN(expression, message, file, line, function) \
391 (fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
392  file, line, function, expression ), 0 )
393 #define STICKYWARN(expression, message) \
394 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
395 #endif /* __GNUCC__ */
396 /* }}} */
397 
398 /* {{{ macro definitions dependent on NOASSERT */
399 #ifndef NOASSERT
400 #ifndef __GNUC__
401 #define ASSERT(expression, message) \
402 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
403 #define ASSERT1(expression, message, parameter1) \
404 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
405 
406 #define WARN(expression, message) \
407 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
408 #else /* __GNUCC__ */
409 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
410 #define ASSERT(expression, message) \
411 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
412 #define ASSERT1(expression, message, parameter1) \
413 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
414 
415 #define WARN(expression, message) \
416 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
417 #endif /* __GNUCC__ */
418 
419 #define PVIRT_VOID(msg) \
420 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
421 #define PVIRT_INTCF(msg) \
422 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
423 #define PVIRT_BOOL(msg) \
424 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
425 #define PVIRT_INT(msg) \
426 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
427 #define PVIRT_CHARCC(msg) \
428 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
429 #else /* NOASSERT */
430 #define ASSERT(expression, message) do {} while (0)
431 #define ASSERT1(expression, message, parameter1) do {} while (0)
432 
433 #define WARN(expression, message) do {} while (0)
434 
435 #define PVIRT_VOID(msg) = 0
436 #define PVIRT_INTCF(msg) = 0
437 #define PVIRT_BOOL(msg) = 0
438 #define PVIRT_INT(msg) = 0
439 #define PVIRT_CHARCC(msg) = 0
440 #endif /* NOASSERT */
441 /* }}} */
442 
443 #endif /* ! INCL_FACTORYCONF_H */