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