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=s390x-redhat-linux-gnu' '--host=s390x-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' '--enable-python_module' '--enable-streamio' '--with-gmp' '--with-ntl' '--with-flint' '--with-mathicgb' '--with-python=/usr/bin/python2' '--with-readline' '--disable-doc' '--with-malloc=system' 'build_alias=s390x-redhat-linux-gnu' 'host_alias=s390x-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -fno-delete-null-pointer-checks' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-I/usr/include/flint -I/usr/include/gfanlib -I/usr/include/python2.7' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=zEC12 -mtune=z13 -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -fno-delete-null-pointer-checks' '--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 to 1 if you have the <memory.h> header file. */
120 #ifndef HAVE_MEMORY_H
121 #define HAVE_MEMORY_H 1
122 #endif
123 
124 /* Define if NTL is installed */
125 #ifndef HAVE_NTL
126 #define HAVE_NTL 1
127 #endif
128 
129 /* define if build with OMALLOC */
130 #ifndef HAVE_OMALLOC
131 #define HAVE_OMALLOC 1
132 #endif
133 
134 /* Define to 1 if you have the <omalloc/omalloc.h> header file. */
135 #ifndef HAVE_OMALLOC_OMALLOC_H
136 #define HAVE_OMALLOC_OMALLOC_H 1
137 #endif
138 
139 /* Define to 1 if you have the <signal.h> header file. */
140 #ifndef HAVE_SIGNAL_H
141 #define HAVE_SIGNAL_H 1
142 #endif
143 
144 /* Define to 1 if you have the <stdarg.h> header file. */
145 #ifndef HAVE_STDARG_H
146 #define HAVE_STDARG_H 1
147 #endif
148 
149 /* Define to 1 if you have the <stdint.h> header file. */
150 #ifndef HAVE_STDINT_H
151 #define HAVE_STDINT_H 1
152 #endif
153 
154 /* Define to 1 if you have the <stdio.h> header file. */
155 #ifndef HAVE_STDIO_H
156 #define HAVE_STDIO_H 1
157 #endif
158 
159 /* Define to 1 if you have the <stdlib.h> header file. */
160 #ifndef HAVE_STDLIB_H
161 #define HAVE_STDLIB_H 1
162 #endif
163 
164 /* Define to 1 if you have the <string> header file. */
165 #ifndef HAVE_STRING
166 #define HAVE_STRING 1
167 #endif
168 
169 /* Define to 1 if you have the <strings.h> header file. */
170 #ifndef HAVE_STRINGS_H
171 #define HAVE_STRINGS_H 1
172 #endif
173 
174 /* Define to 1 if you have the <string.h> header file. */
175 #ifndef HAVE_STRING_H
176 #define HAVE_STRING_H 1
177 #endif
178 
179 /* Define to 1 if you have the <strstream.h> header file. */
180 /* #undef HAVE_STRSTREAM_H */
181 
182 /* Define to 1 if you have the <sys/param.h> header file. */
183 /* #undef HAVE_SYS_PARAM_H */
184 
185 /* Define to 1 if you have the <sys/stat.h> header file. */
186 #ifndef HAVE_SYS_STAT_H
187 #define HAVE_SYS_STAT_H 1
188 #endif
189 
190 /* Define to 1 if you have the <sys/times.h> header file. */
191 /* #undef HAVE_SYS_TIMES_H */
192 
193 /* Define to 1 if you have the <sys/types.h> header file. */
194 #ifndef HAVE_SYS_TYPES_H
195 #define HAVE_SYS_TYPES_H 1
196 #endif
197 
198 /* Define to 1 if you have the <time.h> header file. */
199 #ifndef HAVE_TIME_H
200 #define HAVE_TIME_H 1
201 #endif
202 
203 /* Define to 1 if you have the <unistd.h> header file. */
204 #ifndef HAVE_UNISTD_H
205 #define HAVE_UNISTD_H 1
206 #endif
207 
208 /* Define to the sub-directory where libtool stores uninstalled libraries. */
209 #ifndef LT_OBJDIR
210 #define LT_OBJDIR ".libs/"
211 #endif
212 
213 /* define if you do not want to activate assertions */
214 /* #undef NOASSERT */
215 
216 /* define to build factory without stream IO */
217 /* #undef NOSTREAMIO */
218 
219 /* "Disable OM Debug" */
220 #ifndef OM_NDEBUG
221 #define OM_NDEBUG 1
222 #endif
223 
224 /* Name of package */
225 #ifndef PACKAGE
226 #define PACKAGE "factory"
227 #endif
228 
229 /* Define to the address where bug reports for this package should be sent. */
230 #ifndef PACKAGE_BUGREPORT
231 #define PACKAGE_BUGREPORT ""
232 #endif
233 
234 /* Define to the full name of this package. */
235 #ifndef PACKAGE_NAME
236 #define PACKAGE_NAME "factory"
237 #endif
238 
239 /* Define to the full name and version of this package. */
240 #ifndef PACKAGE_STRING
241 #define PACKAGE_STRING "factory 4.1.1"
242 #endif
243 
244 /* Define to the one symbol short name of this package. */
245 #ifndef PACKAGE_TARNAME
246 #define PACKAGE_TARNAME "factory"
247 #endif
248 
249 /* Define to the home page for this package. */
250 #ifndef PACKAGE_URL
251 #define PACKAGE_URL ""
252 #endif
253 
254 /* Define to the version of this package. */
255 #ifndef PACKAGE_VERSION
256 #define PACKAGE_VERSION "4.1.1"
257 #endif
258 
259 /* define if linked to Singular */
260 #ifndef SINGULAR
261 #define SINGULAR 1
262 #endif
263 
264 /* SINGULAR_CFLAGS */
265 #ifndef SINGULAR_CFLAGS
266 #define SINGULAR_CFLAGS "-DSING_NDEBUG -DOM_NDEBUG"
267 #endif
268 
269 /* "Disable Singular Debug" */
270 #ifndef SING_NDEBUG
271 #define SING_NDEBUG 1
272 #endif
273 
274 /* The size of `long', as computed by sizeof. */
275 #ifndef SIZEOF_LONG
276 #define SIZEOF_LONG 8
277 #endif
278 
279 /* Define to 1 if you have the ANSI C header files. */
280 #ifndef STDC_HEADERS
281 #define STDC_HEADERS 1
282 #endif
283 
284 /* define if you want to activate the timing stuff */
285 /* #undef TIMING */
286 
287 /* Version number of package */
288 #ifndef VERSION
289 #define VERSION "4.1.1"
290 #endif
291 
292 /* Define to empty if `const' does not conform to ANSI C. */
293 /* #undef const */
294 
295 /* Define to `__inline__' or `__inline' if that's what the C compiler
296  calls it, or to nothing if 'inline' is not supported under any name. */
297 #ifndef __cplusplus
298 /* #undef inline */
299 #endif
300 
301 /* once: _FACTORY_CONFIG_H */
302 #endif
303 
304 /* stuff included from ./cf_assert.h */
305 
306 /* emacs edit mode for this file is -*- C -*- */
307 
308 /**
309  * @file cf_assert.h
310  *
311  * assertions for Factory
312  *
313  * @note needs --enable-assertions at configure
314 **/
315 
316 /* This is for compatibility with standard cf_assert.h */
317 #if defined (SING_NDEBUG) && ! defined (NOASSERT)
318 #define NOASSERT
319 #endif
320 
321 /* It should be possible to include this file multiple times for different */
322 /* settings of NOASSERT */
323 
324 /* {{{ undefines */
325 #undef __ASSERT
326 #undef __ASSERT1
327 #undef STICKYASSERT
328 #undef STICKYASSERT1
329 #undef ASSERT
330 #undef ASSERT1
331 
332 #undef __WARN
333 #undef STICKYWARN
334 #undef WARN
335 
336 #undef PVIRT_VOID
337 #undef PVIRT_INTCF
338 #undef PVIRT_BOOL
339 #undef PVIRT_INT
340 #undef PVIRT_CHARCC
341 /* }}} */
342 
343 #ifdef __cplusplus
344 #ifndef NOSTREAMIO
345 #ifdef HAVE_CSTDIO
346 #include <cstdio>
347 #include <cstdlib>
348 #else
349 extern "C" {
350 #include <stdio.h>
351 #include <stdlib.h>
352 }
353 #endif
354 #else
355 #include <stdio.h>
356 #include <stdlib.h>
357 #endif
358 #endif
359 
360 /* {{{ permanent macro definitions */
361 #ifndef __GNUC__
362 #define __ASSERT(expression, message, file, line) \
363 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
364  file, line, expression ), abort(), 0 )
365 #define __ASSERT1(expression, message, parameter1, file, line) \
366 (fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
367  parameter1, file, line, expression ), abort(), 0 )
368 
369 #define STICKYASSERT(expression, message) \
370 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
371 #define STICKYASSERT1(expression, message, parameter1) \
372 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
373 
374 #define __WARN(expression, message, file, line) \
375 (fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
376  file, line, expression ), 0 )
377 #define STICKYWARN(expression, message) \
378 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
379 #else /* __GNUCC__ */
380 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
381 #define __ASSERT(expression, message, file, line, function) \
382 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
383  file, line, function, expression ), abort(), 0 )
384 #define __ASSERT1(expression, message, parameter1, file, line, function) \
385 (fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
386  parameter1, file, line, function, expression ), abort(), 0 )
387 
388 #define STICKYASSERT(expression, message) \
389 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
390 #define STICKYASSERT1(expression, message, parameter1) \
391 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
392 
393 #define __WARN(expression, message, file, line, function) \
394 (fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
395  file, line, function, expression ), 0 )
396 #define STICKYWARN(expression, message) \
397 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
398 #endif /* __GNUCC__ */
399 /* }}} */
400 
401 /* {{{ macro definitions dependent on NOASSERT */
402 #ifndef NOASSERT
403 #ifndef __GNUC__
404 #define ASSERT(expression, message) \
405 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
406 #define ASSERT1(expression, message, parameter1) \
407 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
408 
409 #define WARN(expression, message) \
410 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
411 #else /* __GNUCC__ */
412 /* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
413 #define ASSERT(expression, message) \
414 ((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
415 #define ASSERT1(expression, message, parameter1) \
416 ((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
417 
418 #define WARN(expression, message) \
419 ((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
420 #endif /* __GNUCC__ */
421 
422 #define PVIRT_VOID(msg) \
423 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
424 #define PVIRT_INTCF(msg) \
425 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
426 #define PVIRT_BOOL(msg) \
427 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
428 #define PVIRT_INT(msg) \
429 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
430 #define PVIRT_CHARCC(msg) \
431 { fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
432 #else /* NOASSERT */
433 #define ASSERT(expression, message) do {} while (0)
434 #define ASSERT1(expression, message, parameter1) do {} while (0)
435 
436 #define WARN(expression, message) do {} while (0)
437 
438 #define PVIRT_VOID(msg) = 0
439 #define PVIRT_INTCF(msg) = 0
440 #define PVIRT_BOOL(msg) = 0
441 #define PVIRT_INT(msg) = 0
442 #define PVIRT_CHARCC(msg) = 0
443 #endif /* NOASSERT */
444 /* }}} */
445 
446 #endif /* ! INCL_FACTORYCONF_H */