My Project
Loading...
Searching...
No Matches
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 "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=i586-alt-linux' '--host=i586-alt-linux' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--disable-dependency-tracking' '--runstatedir=/var/run' '--without-included-gettext' '--bindir=/usr/lib/Singular' '--infodir=/usr/share/info' '--disable-silent-rules' '--disable-optimizationflags' '--disable-static' '--enable-p-procs-dynamic' '--enable-bigintm-module' '--enable-gfanlib-module' '--enable-Order-module' '--disable-polymake-module' '--enable-python-module' '--enable-streamio' '--with-gmp' '--without-ntl' '--with-flint' '--without-mathicgb' '--with-python=python3' '--with-readline' '--disable-doc' '--with-malloc=system' 'build_alias=i586-alt-linux' 'host_alias=i586-alt-linux' 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fPIC -fno-delete-null-pointer-checks' 'LDFLAGS=-Wl,-z,lazy' 'CPPFLAGS=-I/usr/include/flint -I/usr/include/gfanlib -I/usr/include/python3.13' 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -fPIC -fno-delete-null-pointer-checks' '--enable-omalloc' 'OMALLOC_LIBS=/usr/src/RPM/BUILD/singular-4.4.1p5/omalloc/libomalloc.la' 'OMALLOC_INCLUDES=-I/usr/src/RPM/BUILD/singular-4.4.1p5' '--htmldir=/usr/share/doc/singular' '--with-Singular' 'RESOURCES_LIBS=/usr/src/RPM/BUILD/singular-4.4.1p5/resources/libsingular_resources.la' 'RESOURCES_INCLUDES=-I/usr/src/RPM/BUILD/singular-4.4.1p5 ' 'FACTORY_LIBS=/usr/src/RPM/BUILD/singular-4.4.1p5/factory/libfactory.la' 'FACTORY_INCLUDES=-I/usr/src/RPM/BUILD/singular-4.4.1p5 -I/usr/src/RPM/BUILD/singular-4.4.1p5/factory -I/usr/src/RPM/BUILD/singular-4.4.1p5/factory/include' '--cache-file=/dev/null' '--srcdir=.'' in /usr/src/RPM/BUILD/singular-4.4.1p5/factory"
49#endif
50
51/* VERSION */
52#ifndef FACTORYVERSION
53#define FACTORYVERSION "4.4.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/* #undef HAVE_NTL */
114
115/* define if build with OMALLOC */
116#ifndef HAVE_OMALLOC
117#define HAVE_OMALLOC 1
118#endif
119
120/* Define to 1 if you have the <omalloc/omalloc.h> header file. */
121/* #undef HAVE_OMALLOC_OMALLOC_H */
122
123/* Define to 1 if you have the <signal.h> header file. */
124#ifndef HAVE_SIGNAL_H
125#define HAVE_SIGNAL_H 1
126#endif
127
128/* Define to 1 if you have the <stdarg.h> header file. */
129#ifndef HAVE_STDARG_H
130#define HAVE_STDARG_H 1
131#endif
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#ifndef HAVE_STRING
150#define HAVE_STRING 1
151#endif
152
153/* Define to 1 if you have the <strings.h> header file. */
154#ifndef HAVE_STRINGS_H
155#define HAVE_STRINGS_H 1
156#endif
157
158/* Define to 1 if you have the <string.h> header file. */
159#ifndef HAVE_STRING_H
160#define HAVE_STRING_H 1
161#endif
162
163/* Define to 1 if you have the <strstream.h> header file. */
164/* #undef HAVE_STRSTREAM_H */
165
166/* Define to 1 if you have the <sys/param.h> header file. */
167/* #undef HAVE_SYS_PARAM_H */
168
169/* Define to 1 if you have the <sys/stat.h> header file. */
170#ifndef HAVE_SYS_STAT_H
171#define HAVE_SYS_STAT_H 1
172#endif
173
174/* Define to 1 if you have the <sys/times.h> header file. */
175/* #undef HAVE_SYS_TIMES_H */
176
177/* Define to 1 if you have the <sys/types.h> header file. */
178#ifndef HAVE_SYS_TYPES_H
179#define HAVE_SYS_TYPES_H 1
180#endif
181
182/* Define to 1 if you have the <time.h> header file. */
183#ifndef HAVE_TIME_H
184#define HAVE_TIME_H 1
185#endif
186
187/* Define to 1 if you have the <unistd.h> header file. */
188#ifndef HAVE_UNISTD_H
189#define HAVE_UNISTD_H 1
190#endif
191
192/* Define to the sub-directory where libtool stores uninstalled libraries. */
193#ifndef LT_OBJDIR
194#define LT_OBJDIR ".libs/"
195#endif
196
197/* define if you do not want to activate assertions */
198/* #undef NOASSERT */
199
200/* define to build factory without stream IO */
201/* #undef NOSTREAMIO */
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.4.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.4.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 4
261#endif
262
263/* Define to 1 if all of the C89 standard headers exist (not just the ones
264 required in a freestanding environment). This macro is provided for
265 backward compatibility; new code need not use it. */
266#ifndef STDC_HEADERS
267#define STDC_HEADERS 1
268#endif
269
270/* define if you want to activate the timing stuff */
271/* #undef TIMING */
272
273/* Version number of package */
274#ifndef VERSION
275#define VERSION "4.4.1"
276#endif
277
278/* Define to empty if 'const' does not conform to ANSI C. */
279/* #undef const */
280
281/* Define to '__inline__' or '__inline' if that's what the C compiler
282 calls it, or to nothing if 'inline' is not supported under any name. */
283#ifndef __cplusplus
284/* #undef inline */
285#endif
286
287/* once: _FACTORY_CONFIG_H */
288#endif
289
290/* stuff included from ./cf_assert.h */
291
292/* emacs edit mode for this file is -*- C -*- */
293
294/**
295 * @file cf_assert.h
296 *
297 * assertions for Factory
298 *
299 * @note needs --enable-assertions at configure
300**/
301
302/* This is for compatibility with standard cf_assert.h */
303#if defined (SING_NDEBUG) && ! defined (NOASSERT)
304#define NOASSERT
305#endif
306
307/* It should be possible to include this file multiple times for different */
308/* settings of NOASSERT */
309
310/* {{{ undefines */
311#undef __ASSERT
312#undef __ASSERT1
313#undef STICKYASSERT
314#undef STICKYASSERT1
315#undef ASSERT
316#undef ASSERT1
317
318#undef __WARN
319#undef STICKYWARN
320#undef WARN
321
322#undef PVIRT_VOID
323#undef PVIRT_INTCF
324#undef PVIRT_BOOL
325#undef PVIRT_INT
326#undef PVIRT_CHARCC
327/* }}} */
328
329#ifdef __cplusplus
330#ifndef NOSTREAMIO
331#ifdef HAVE_CSTDIO
332#include <cstdio>
333#include <cstdlib>
334#else
335extern "C" {
336#include <stdio.h>
337#include <stdlib.h>
338}
339#endif
340#else
341#include <stdio.h>
342#include <stdlib.h>
343#endif
344#endif
345
346/* {{{ permanent macro definitions */
347#ifndef __GNUC__
348#define __ASSERT(expression, message, file, line) \
349(fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
350 file, line, expression ), abort(), 0 )
351#define __ASSERT1(expression, message, parameter1, file, line) \
352(fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
353 parameter1, file, line, expression ), abort(), 0 )
354
355#define STICKYASSERT(expression, message) \
356((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
357#define STICKYASSERT1(expression, message, parameter1) \
358((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
359
360#define __WARN(expression, message, file, line) \
361(fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
362 file, line, expression ), 0 )
363#define STICKYWARN(expression, message) \
364((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
365#else /* __GNUCC__ */
366/* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
367#define __ASSERT(expression, message, file, line, function) \
368(fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
369 file, line, function, expression ), abort(), 0 )
370#define __ASSERT1(expression, message, parameter1, file, line, function) \
371(fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
372 parameter1, file, line, function, expression ), abort(), 0 )
373
374#define STICKYASSERT(expression, message) \
375((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
376#define STICKYASSERT1(expression, message, parameter1) \
377((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
378
379#define __WARN(expression, message, file, line, function) \
380(fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
381 file, line, function, expression ), 0 )
382#define STICKYWARN(expression, message) \
383((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
384#endif /* __GNUCC__ */
385/* }}} */
386
387/* {{{ macro definitions dependent on NOASSERT */
388#ifndef NOASSERT
389#ifndef __GNUC__
390#define ASSERT(expression, message) \
391((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
392#define ASSERT1(expression, message, parameter1) \
393((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
394
395#define WARN(expression, message) \
396((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
397#else /* __GNUCC__ */
398/* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
399#define ASSERT(expression, message) \
400((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
401#define ASSERT1(expression, message, parameter1) \
402((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
403
404#define WARN(expression, message) \
405((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
406#endif /* __GNUCC__ */
407
408#define PVIRT_VOID(msg) \
409{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
410#define PVIRT_INTCF(msg) \
411{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
412#define PVIRT_BOOL(msg) \
413{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
414#define PVIRT_INT(msg) \
415{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
416#define PVIRT_CHARCC(msg) \
417{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
418#else /* NOASSERT */
419#define ASSERT(expression, message) do {} while (0)
420#define ASSERT1(expression, message, parameter1) do {} while (0)
421
422#define WARN(expression, message) do {} while (0)
423
424#define PVIRT_VOID(msg) = 0
425#define PVIRT_INTCF(msg) = 0
426#define PVIRT_BOOL(msg) = 0
427#define PVIRT_INT(msg) = 0
428#define PVIRT_CHARCC(msg) = 0
429#endif /* NOASSERT */
430/* }}} */
431
432#endif /* ! INCL_FACTORYCONF_H */