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