/[ascend]/trunk/base/generic/utilities/config.h.in
ViewVC logotype

Annotation of /trunk/base/generic/utilities/config.h.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 968 - (hide annotations) (download)
Mon Dec 18 05:49:00 2006 UTC (12 years, 11 months ago) by johnpye
File size: 7611 byte(s)
Added SCons tests to check SIGINT and to replace ascresetneeded (need replacement for this in Autoconf as well).
Removed debugging from createinst.c
Typo (text) in evaluate.c
Commented out redundant code in importhandler.c
Added signal handling in ExecuteCASGN.
Added missing ospath_free in ModuleSearchPath.
Exported InitSymbolTable, DestroySymbolTable in symtab (dubious)
Moved FPRESET macro out of ascConfig.h and into ascSignal.h
Added Asc_SignalHandler{Push,Pop}Default.
Added ASC_RESETNEEDED and HAVE_C99FPE macros in config.h.in.
Found the bug causing the SIGFPE in idakryx.a4c (raises a question about int/float division in modelling, I think)
Added system_destroy call in Simulation::~Simulation (dubious).
1 johnpye 669 /*
2     This file will be processed by SCons and output as config.h.
3     Don't edit this file unless it's named 'config.h.in' unless
4     it doesn't bother you that your changes will be IGNORED!
5 johnpye 542
6 johnpye 669 DUAL SUPPORT FOR BOTH AUTOTOOLS AND SCONS
7    
8     When I add a new flag to SCons, I will use the form (replace \ by /):
9 johnpye 800
10 johnpye 669 \* #define FLAGNAME @FLAGNAME@ *\
11    
12     Using SCons, I can uncomment these lines using text-substitution.
13     If you want to add support for these flags in your autotools build
14     you just need to uncomment these lines; no changes to the SCons build
15     will be necessary (as it will also hunt for @FLAGNAME@ in its
16     text-subst.
17     */
18 johnpye 596 #ifndef ASC_CONFIG_H
19     #define ASC_CONFIG_H
20    
21 johnpye 819 /**
22 johnpye 968 If signal handlers (<signal.h>) on this platform need to be reset after
23     each 'catch', the ASC_RESETNEEDED macro should be set true.
24     */
25     #ifndef ASC_RESETNEEDED
26     /* #define ASC_RESETNEEDED @ASC_RESETNEEDED@ */
27     #endif
28    
29     /**
30     If we have C99 FPE (floating point error) routines available on this
31     platform/compiler.
32     */
33     #ifndef HAVE_C99FPE
34     /* #define HAVE_C99FPE @HAVE_C99FPE@ */
35     #endif
36    
37     /**
38 johnpye 819 The name of the environment variable containing a list' of paths
39     to search when trying to open a module. The list is in the style
40     of the native OS: colon-separated on UNIX and semicolon separated
41     under Windows.
42     */
43     #define PATHENVIRONMENTVAR "ASCENDLIBRARY"
44    
45 johnpye 596 #define ASC_DEFAULTPATH "@DEFAULT_ASCENDLIBRARY@"
46    
47     /*
48 johnpye 628 This variable determines how ASCEND goes about finding all its stuff at runtime,
49     assuming the ASCENDDIST environment variable is *not* present.
50 johnpye 589
51 johnpye 628 ASCENDDIST is where Python, Tcl/Tk and model scripts, as well as graphics etc are
52     kept in the filesystem. Normally it is expected that ASCEND should be able to
53     know or work out this location itself.
54 johnpye 589
55 johnpye 628 If ASC_ABSOLUTE_PATHS is defined, ASCEND will used a fixed absolute path to locate
56     its data files. This is the standard Red Hat and Debian system, in which
57     binaries are typically located in /usr/bin but related non-exe files are located
58     in /usr/share/appname/. See ASC_DATADIR in this case.
59 johnpye 589
60 johnpye 628 If not defined, ASCEND will locate its data files using a relative path based on
61     the location of the running executable. See ASC_DISTDIR_REL_BIN. This is the
62     'application folder' style made popular on early Macs, and also favoured by CMU.
63 johnpye 596
64     For a discussion of this, see
65     http://linux.slashdot.org/article.pl?sid=04/04/03/174249
66    
67     At present, the only place this has any effect is in the Tcl/Tk
68     interface, in Driver.c's choices for default values of non-specified
69 johnpye 628 environment variables. @TODO migrate this to Python as well.
70 johnpye 605
71 johnpye 669 SCons will uncomment the #define line if required.
72     Doing it this (hacky) way so as not to mess up autoconf.
73 johnpye 628
74     Note: do not use ASC_ABSOLUTE_PATHS on Windows. Absolute paths mess up the
75     ability of the installer to relocate files at install-time.
76 johnpye 596 */
77 johnpye 669 #ifndef ASC_ABSOLUTE_PATHS
78     /* #define ASC_ABSOLUTE_PATHS @ASC_ABSOLUTE_PATHS@ */
79 johnpye 605 #endif
80 johnpye 596
81     /*
82 johnpye 628 See ASC_ABSOLUTE_PATHS above. ASC_DATADIR is the default value of ASCCENDDIST
83     in the case of ASC_ABSOLUTE_PATHS.
84     */
85     #define ASC_DATADIR "@INSTALL_ASCDATA@"
86 johnpye 594
87 johnpye 628 /*
88     See ASC_ABSOLUTE_PATHS above. In the case of relative paths, ASCENDDIST is
89     derived from ASC_DISTDIR_REL_BIN: this path is suffixed to the name of
90     the directory in which the currently-running executable is located. Depending
91     on how you are installing ASCEND, sensible values are likely to be
92     either '..' or '../share/ascend'.
93    
94     Only applies when ASC_ABSOLUTE_PATHS is *not* defined.
95     */
96     #define ASC_DISTDIR_REL_BIN "@ASC_DISTDIR_REL_BIN@"
97    
98     /*
99     This is the default location of the tcl/tk scripts. Environment
100     variables (dollar sign followed by uppercase letters)
101     will be expanded at runtime, so a good value for example is
102    
103 johnpye 596 $ASCENDDIST/TK
104     */
105 johnpye 589 #define ASC_ENV_TK_DEFAULT "@ASC_ENV_TK_DEFAULT@"
106 johnpye 594
107 johnpye 596
108     /*
109 johnpye 594 Whether to use xterm colours when writing 'error.h' output, eg
110     'ERROR' in red, etc. If not defined, colour will never be used.
111     If defined, colour will be used any time the the TERM environment
112     variable is set to 'xterm' or 'msys'. MSYS uses the 'rxvt' console,
113     which knows about xterm colour codes.
114 johnpye 595
115 johnpye 669 SCons will uncomment the #define line if required.
116 johnpye 597 Doing it this (hacky) way so as not to mess up autoconf.
117 johnpye 594 */
118 johnpye 669 #ifndef ASC_XTERM_COLORS
119     /* #define ASC_XTERM_COLORS @ASC_XTERM_COLORS@ */
120 johnpye 597 #endif
121 johnpye 594
122 johnpye 552 /*
123 johnpye 597 Whether to do use testing malloc. Required for some of the CUnit
124     tests to work fully.
125 johnpye 598
126 johnpye 669 SCons will uncomment the #define line if required.
127 johnpye 598 Doing it this (hacky) way so as not to mess up autoconf.
128 johnpye 597 */
129 johnpye 669 #ifndef MALLOC_DEBUG
130     /* #define MALLOC_DEBUG @MALLOC_DEBUG@ */
131 johnpye 597 #endif
132    
133 johnpye 938 /*
134     Whether the dmalloc library was detected. Should permit much reduced
135     complexity in ascMalloc.c, hopefully.
136    
137     SCons will uncomment the #define line if required.
138     Doing it this (hacky) way so as not to mess up autoconf.
139     */
140     #ifndef ASC_WITH_DMALLOC
141     /* #define ASC_WITH_DMALLOC @ASC_WITH_DMALLOC@ */
142     #endif
143    
144 johnpye 800 /*-----------------------------------------------------------------------
145     IDA
146     */
147    
148 johnpye 597 /*
149 johnpye 669 Whether to compile with support for the IDA DAE solver.
150    
151 johnpye 800 Note that this option is automatically configured based on the value of
152 johnpye 669 WITH_SOLVERS in the SCons options.
153    
154     SCons will uncomment the #define line if required.
155     Doing it this (hacky) way so as not to mess up autoconf.
156     */
157     #ifndef ASC_WITH_IDA
158     /* #define ASC_WITH_IDA @ASC_WITH_IDA@ */
159     #endif
160    
161 johnpye 800 /*-----------------------------------------------------------------------
162     CONOPT
163     */
164    
165 johnpye 783 /*
166     Whether to compile with support for the IDA DAE solver.
167 johnpye 669
168 johnpye 800 Note that this option is automatically configured based on the value of
169 johnpye 783 WITH_SOLVERS in the SCons options.
170    
171     SCons will uncomment the #define line if required.
172     Doing it this (hacky) way so as not to mess up autoconf.
173     */
174     #ifndef ASC_WITH_CONOPT
175     /* #define ASC_WITH_CONOPT @ASC_WITH_CONOPT@ */
176     #endif
177    
178 johnpye 669 /*
179 johnpye 800 This is the name of the CONOPT .so or DLL. On Windows
180     it's called 'copopt3' but on linux it seems to be called
181     'consub3.so'.
182     */
183     #define ASC_CONOPT_LIB "@ASC_CONOPT_LIB@"
184    
185     /*
186     This is the name of the optional environment variable which will
187     be used for the value of the searchpath for the CONOPT DLL/SO.
188     */
189     #define ASC_CONOPT_ENVVAR "@ASC_CONOPT_ENVVAR@"
190    
191     /*
192     This is the default *fallback* searchpath that will be used when hunting
193     for CONOPT at runtime
194    
195 johnpye 791 Searchpath for CONOPT DLL/SO. This is in platform-specific
196     form (paths with ';' separator in Windows, ':' separator on Linux).
197     */
198 johnpye 800 #define ASC_CONOPT_DLPATH "@ASC_CONOPT_DLPATH@"
199 johnpye 791
200 johnpye 800 /*-------------------------------------------------------------------------
201     LSODE
202     */
203    
204 johnpye 791 /*
205 johnpye 800 Whether to compile with support for the LSODE integration engine.
206     Note that you will usually need to manually specify the location of your
207 johnpye 669 'libg2c.a' in the link step, see F2C_* Scons options.
208    
209 johnpye 800 Note that this option is automatically configured based on the value of
210 johnpye 669 WITH_SOLVERS in the SCons options.
211    
212     SCons will uncomment the #define line if required.
213     Doing it this (hacky) way so as not to mess up autoconf.
214     */
215     #ifndef ASC_WITH_LSODE
216     /* #define ASC_WITH_LSODE @ASC_WITH_LSODE@ */
217     #endif
218    
219 johnpye 800 /*--------------------------------------------------------------------------
220     ENV VAR
221     */
222    
223 johnpye 669 /*
224 johnpye 586 The following are the environment variables ASCEND requires.
225     If the user does not have the ASC_ENV_DIST set in his or her
226     environment, a default value is set based on the directory where the
227     ascend binary lives. The other environment variables will be set
228     to default values keyed off of ASC_ENV_DIST. See the function
229     CheckEnvironmentVars later in this file for the details.
230 johnpye 552 */
231 johnpye 586 #define ASC_ENV_DIST "ASCENDDIST"
232     #define ASC_ENV_TK "ASCENDTK"
233     #define ASC_ENV_BITMAPS "ASCENDBITMAPS"
234 johnpye 596 #define ASC_ENV_LIBRARY "ASCENDLIBRARY"
235     #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22