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