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