source: git/Singular/mod2.h.in @ 6a51ef

spielwiese
Last change on this file since 6a51ef was 6a51ef, checked in by Kai Krüger <krueger@…>, 26 years ago
use a scanner when loading libraries. git-svn-id: file:///usr/local/Singular/svn/trunk@1195 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 7.9 KB
Line 
1/*******************************************************************
2 *  Computer Algebra System SINGULAR
3 *
4 *  mod2.h: Main configuration file for Singular
5 *          DO NOT EDIT!
6 *
7 *******************************************************************/
8#ifndef MOD2_H
9#define MOD2_H
10
11/*******************************************************************
12 * Defines which are set by configure
13 ******************************************************************/
14/* Define if you have TeXInfo */
15#undef HAVE_INFO
16/* Define to use readline lib for fancy display */
17#undef HAVE_READLINE
18/* Define to use built-in command line parser */
19#undef HAVE_FEREAD
20/* Define if you want to use dld's */
21#undef HAVE_DLD
22/* Define to have dbm links */
23#undef HAVE_DBM
24/* Define to use gmp for rational arithmetic */
25#undef HAVE_GMP
26/* Define to have smallgmp */
27#undef HAVE_SMALLGMP
28/* Define to have MP links */
29#undef HAVE_MPSR
30/* Define to have factory functionality added */
31#undef HAVE_FACTORY
32/* Define to have libfac functionality added */
33#undef HAVE_LIBFAC_P
34/* Define if you have stdc headers */
35#undef STDC_HEADERS
36/* Define if you have sys/file.h */
37#undef HAVE_SYS_FILE_H
38/* Define if you have sys/ioctl.h */
39#undef HAVE_SYS_IOCTL_H
40/* Define if you have sys/time.h */
41#undef HAVE_SYS_TIME_H
42/* Define if you have sys/times.h */
43#undef HAVE_SYS_TIMES_H
44/* Define if time.h and sys/time.h can be included at the same time */
45#undef TIME_WITH_SYS_TIME
46/* Define if you have alloca.h */
47#undef HAVE_ALLOCA_H
48/* Define if you have alloca */
49#undef HAVE_ALLOCA
50/* Define if you have getpagesize */
51#undef GETPAGESIZE
52/* Define if you have vprintf */
53#undef HAVE_VPRINTF
54/* Define if you have gettimeofday */
55#undef HAVE_GETTIMEOFDAY
56/* Define if you have strstr */
57#undef HAVE_STRSTR
58/* Define if you have strtod */
59#undef HAVE_STRTOD
60/* Define if you have strtol */
61#undef HAVE_STRTOL
62/* Define if you have atexit */
63#undef HAVE_ATEXIT
64/* Define if you have bcopy, bzero and bcmp
65   Linux needs that define! */
66#undef HAVE_BCOPY
67/* Define if sprintf does not return number of printed chars */
68#undef BSD_SPRINTF
69/* Define sizeof(char) */
70#define SIZEOF_CHAR 1
71/* Define sizeof(short) */
72#define SIZEOF_SHORT 2
73/* Define sizeof(int) */
74#define SIZEOF_INT 4
75/* Define sizeof(long) */
76#define SIZEOF_LONG 4
77/* Define sizeof(void*) */
78#define SIZEOF_VOIDP 4
79/* Define if your integer format is big endian */
80#undef WORDS_BIGENDIAN
81/* Define the type of the exponents to be used in monomials */
82#define EXPONENT_TYPE short
83/* Define the size of exponent */
84#define SIZEOF_EXPONENT SIZEOF_SHORT
85/* Define major version of Singular -- should be set in configure.in!!!*/
86#define SINGULAR_MAJOR_VERSION 0
87/* Define minor version of Singular -- should be set in configure.in!!! */
88#define SINGULAR_MINOR_VERSION 0
89/* Define sub version of Singular -- should be set in configure.in!!! */
90#define SINGULAR_SUB_VERSION 0
91/* Define version as a string */
92#define S_VERSION1 ""
93/* Define version date as a string */
94#define S_VERSION2 ""
95/* Define the data directory where Singular searches for libs and gftables */
96#define SINGULAR_DATADIR "/usr/local/share/Singular"
97/* Define the info directory where Singular searches for help files */
98#define SINGULAR_INFODIR "/usr/local/info"
99
100/*******************************************************************
101 * Defines which are not set by configure
102 ******************************************************************/
103/* Default value for timer resolution in ticks per second */
104/* set to 10 for resolution of tenth of a second, etc */
105#define TIMER_RESOLUTION 1
106/* Undefine to disable the quote/eval of expressions */
107#define SIQ 1
108/* Define to enable TCL interface */
109#undef HAVE_TCL
110/* Define to enable working in Weyl algebras */
111#undef DRING
112/* Define to enable working in exterior algebras */
113#undef SRING
114/* Undefine to disable Gerhard's and Wilfried's fast and dirty std computations */
115#define FAST_AND_DIRTY
116/* works around a quirk in the generation of parser tables */
117#define INIT_BUG
118
119/* Define to use new namespaces techniks */
120#undef HAVE_NAMESPACES
121
122/* Define to use scanner when loading libraries */
123#define HAVE_LIBPARSER
124
125/*#define PROFILING*/
126#ifdef PROFILING
127#define PROFILER ,0,0
128#else
129#define PROFILER
130#endif
131
132/*******************************************************************
133 * Evaluate the set defines
134 ******************************************************************/
135/* FGLM needs factory */
136#ifdef HAVE_FACTORY
137#define HAVE_FGLM
138#endif
139
140/* In case we do not have strstr, we provide our own version */
141#ifndef HAVE_STRSTR
142char *strstr(const char *haystack, const char *needle);
143#endif
144
145/* Undefine to disable real time measurments  */
146#ifdef HAVE_GETTIMEOFDAY
147#if ! defined(macintosh) && ! defined(MSDOS)
148#define HAVE_RTIMER
149#else
150#undef HAVE_RTIMER
151#endif
152#endif
153
154#if SIZEOF_VOIDP == 8
155#define ALIGN_8
156#endif
157
158#define SINGULAR_VERSION (SINGULAR_MAJOR_VERSION*1000 + SINGULAR_MINOR_VERSION*100 + SINGULAR_SUB_VERSION)
159#ifdef DRING
160#define SDRING
161#endif
162
163#ifdef SRING
164#define SDRING
165#endif
166
167#if HAVE_INFO != 1
168#define buildin_help 1
169#endif
170
171#ifdef macintosh
172#ifndef buildin_help
173#define buildin_help 1
174#endif
175#ifdef HAVE_GMP
176#define buildin_gmp 1
177#endif
178#endif
179
180#if SIZEOF_EXPONENT == 1
181#define MAX_EXPONENT 0x7f
182#elif SIZEOF_EXPONENT == 2
183#define MAX_EXPONENT 0x7fff
184#else // SIZEOF_EXPONENT == 4
185#define MAX_EXPONENT 0x7fffffff
186#endif
187
188/*******************************************************************
189 * Miscellanous Defines
190 ******************************************************************/
191/* define MM_COUNT to enable "memory(0)" (resp. memory(1))*/
192#define MM_COUNT 1
193
194/* define YYDEBUG 1 for debugging bison texts, 0 otherwise */
195#define YYDEBUG 0
196
197#ifndef HAVE_LIBPARSER
198#  undef YYLPDEBUG
199#else
200#  define YYLPDEBUG 0
201#endif
202
203#ifndef FALSE
204#define FALSE       0
205#endif
206
207#ifndef TRUE
208#define TRUE        1
209#endif
210
211#ifndef NULL
212#define NULL        (0)
213#endif
214
215#ifndef SEEK_END
216#define SEEK_END 2
217#endif
218
219#ifndef SEEK_SET
220#define SEEK_SET 0
221#endif
222
223#define HALT() m2_end(2)
224
225#define memcpy4 memcpy
226
227/* define OLD_RES for res/sres/mres(i,j,k) */
228#define OLD_RES
229
230/* the maximal ascii length of an int number + 1 = 11 for 32 bit int */
231#define MAX_INT_LEN 11
232extern int pShortOut;
233
234#ifdef DO_PROFILE
235/* define to enable explicit profiling of some crucial inline routines and defines */
236#define DO_DEEP_PROFILE
237#endif
238/*******************************************************************
239 * DEBUG OPTIONS
240 * -- only significant for for compiling without -DNDEBUG
241 * -- you better know what your are doing, if you touch this
242 ******************************************************************/
243#define buildin_rand 1
244#ifndef NDEBUG
245
246/* define MDEBUG 0 for checking Alloc/Free */
247#define MDEBUG 0
248/* define MDEBUG 1 for allowing to keep track of Alloc/Free */
249/* undefine MMDEBUG otherwise */
250/*#define MDEBUG 0 */
251/* define MLIST for listing used blocks at programm end */
252/* undefine otherwise */
253/*#define MLIST */
254/* define MM_BEFORE for also printing the previous block while debugging */
255/*#define MM_BEFORE 1 */
256/* define PDEBUG checking polys, undefine otherwise */
257/* define PDEBUG 1 for additionally checking access to polys  -- vewry slow !*/
258#define PDEBUG 1
259/* define KDEBUG checking during standard base computation */
260#define KDEBUG
261/* define LDEBUG checking numbers, undefine otherwise */
262#define LDEBUG
263/* define RDEBUG checking rings (together with TRACE=9) */
264#define RDEBUG
265/* define TEST for non time critical tests, undefine otherwise */
266#define TEST
267/* define MM_STAT for printing block stats */
268/* #define MM_STAT 1 */
269/* #define PAGE_TEST */
270/* #define PAGE_COUNT */
271
272/* Undefine to disable debugging of MP stuff */
273#ifdef HAVE_MPSR
274#define MPSR_DEBUG
275#endif
276
277/* MLIST requires MDEBUG */
278#ifdef MLIST
279#ifndef MDEBUG
280#define MDEBUG 0
281#endif
282#endif
283
284/* PDEBUG requires MDEBUG */
285#ifdef PDEBUG
286#ifndef MDEBUG
287#define MDEBUG 0
288#endif
289#endif
290
291#ifdef TEST
292#ifndef buildin_rand
293#define buildin_rand 1
294#endif
295#endif
296
297#ifdef PAGE_COUNT
298#define PAGE_TEST
299#endif
300
301#endif /* not NDEBUG */
302
303
304#endif /* MOD2_H  */
Note: See TracBrowser for help on using the repository browser.