/[ascend]/trunk/base/generic/ConfigAscend.in
ViewVC logotype

Contents of /trunk/base/generic/ConfigAscend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 634 - (show annotations) (download)
Sat May 27 05:52:47 2006 UTC (18 years, 3 months ago) by johnpye
File size: 16679 byte(s)
The ';' was messing up the build, see
http://buildbot.cruncher2.dyndns.org/ascend-autotools/builds/36/step-compile/0
1 # @configure_input@
2 #
3 # This is a configuration file for ASCEND.
4 # If it has the name "ConfigAscend.in", then it is a template
5 # for the "ConfigAscend" configuration file. To generate the
6 # actual "ConfigAscend" file, run "./configure", which is a
7 # configuration script generated by the "autoconf" program.
8 # Constructs like @foo@ will be replaced in the actual
9 # "ConfigAscend" configuration file.
10 #
11 # This file contains the definitions and macros needed by all the
12 # ascend sub-makefiles.
13 #
14 # by Ben Allan June 25, 1994.
15 # $Revision: 1.18 $
16 # $Date: 1999/01/19 16:09:02 $
17 # $Author: mthomas $
18 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/ascend4/ConfigAscend.in,v $
19 #
20 # To build ASCEND you must set some configuration information in
21 # this file and then type 'make'.
22 #
23
24 # tcl/tk basis
25 LIB_RUNTIME_DIR=@TCLCONFIG@
26 # required for Debian style installs:
27 LIB_RUNTIME_DIR_TK=@TKCONFIG@
28 @NOTCLCONFIG@include $(LIB_RUNTIME_DIR)/tclConfig.sh
29 @NOTCLCONFIG@include $(LIB_RUNTIME_DIR_TK)/tkConfig.sh
30
31 ####>>> C <<<###############################################################
32
33 # CC
34 # your ansi-compliant C compiler and C preprocessor
35 #
36 CC = @CC@
37 CPP = @CPP@
38
39 # CFLAGS
40 # options for the C compilter
41 # This is where optimization and debugging options should be set.
42 #
43 # The flags which `configure' sets should be sufficient to compile
44 # ascend; however for more error checking and warnings at compile
45 # time, you may want to add the following to the CFLAGS variable.
46 # Note that these flags are compiler and OS dependent.
47 #
48 # Any GCC
49 #CCWARN = -ansi -Wall -Wshadow -W -pedantic -D_GNU_SOURCE
50 # DEC Alpha OSF or Digital-Unix
51 #CCWARN = -std1 -verbose
52 # DEC Ultrix
53 #CCWARN = -std -w0
54 # HP/UX
55 #CCWARN = +w1
56 # IBM AIX
57 #CCWARN =
58 # SGI IRIX
59 #CCWARN = +w
60 # Sun Solaris (2.x) (/opt/SUNWspro/bin/cc)
61 #CCWARN = -v -Xc
62 # Sun SunOS (Solaris 1.x) (/usr/lang/cc)
63 #CCWARN = -vc -Xc
64 #
65 CFLAGS = -O $(CCWARN) # for optimization
66 CFLAGS = -g $(CCWARN) # for debugging
67 CFLAGS = @CFLAGS@ $(CCWARN)
68
69 # All switches to pass to the C compiler
70 #
71 CC_SWITCHES = $(INCLUDES) $(DEFINES) $(CFLAGS)
72
73 # The list of includes. DIR_SPECIFIC_INCS are includes that are specific
74 # to a particular subdirectory of the ASCEND build
75 #
76 INCLUDES = $(ASC_INCS) $(DIR_SPECIFIC_INCS)
77
78 # The list of defines. DIR_SPECIFIC_DEFS are defines that are specific
79 # to a particular subdirectory of the ASCEND build
80 #
81 DEFINES = $(CONFIGURE_DEFS) $(DIR_SPECIFIC_DEFS) \
82 $(MOD_ASCMALLOC) $(FATFUNC) $(MEM_DECREASE)
83
84 # DEBUGGER LIBRARIES
85 # any special files/libraries needed for building a debugging version
86 # of a binary
87 #
88 DEBUG_LIBS = @DEBUG_LIBS@
89
90 # DEFINES
91 # definitions that `configure' generates
92 #
93 CONFIGURE_DEFS = @DEFS@
94
95 # AR
96 # the archiver (normally /bin/ar)
97 #
98 AR = ar
99
100 # RANLIB
101 # set this to ":" on SysV systems; to "ranlib" elsewhere
102 #
103 RANLIB = @RANLIB@
104
105 # LD
106 # the linker/loader
107 #
108 LD = ld
109
110 # YACC
111 # On some old systems yacc writes some K&R extern definitions to
112 # the .c file that it generates. This has caused havoc on at least
113 # one system. Define your yacc here. For the Suns in particular
114 # /usr/lang/SC1.0/ansi/yacc was required. If you cannot find an ansi
115 # compatible yacc, delete the 'extern char *malloc(), realloc() definitions
116 # if generated at the top of your .c created from the .y file.
117 #
118 YACC = @YACC@
119
120 # LEX
121 # We require the flex lexer
122 #
123 LEX = @LEX@
124 LEXLIB = @LEXLIB@
125
126 # UNSIGNED CHARACTERS
127 # Some compilers (notably AIX3.1 cc) default chars to be unsigned which
128 # causes many things to break in file operations, particularly the
129 # detection of EOF conditions. Uncomment one of the CHAR_SIGNS
130 # if your compiler defaults char to be unsigned char.
131 #
132 #CHAR_SIGNS = -qchars=signed
133
134
135 ####>>> FILE UTILITIES <<<##################################################
136
137 # Basic File Utilities
138 #
139 CMP = cmp
140 CP = cp
141 ECHO = echo
142 LN_S = @LN_S@
143 MKDIR = mkdir
144 MV = mv
145 RM = rm -f
146 SED = sed
147
148
149 ####>>> MATH <<<############################################################
150
151 # Some compilers need to be told where to find the math libraries
152 #
153 MATH_LIBS = @MATH_LIBS@
154
155
156 ####>>> X11 <<<#############################################################
157
158 # The interface and 1 file in the solver directory need to know where the
159 # include files and library for X11 are. If your C compiler doesn't know
160 # automatically where the X files are, or if they are in a non-standard
161 # place, set the following variables to point at them. These should be
162 # the same X files that Tk was built with on your system.
163 # Most systems do not need these variables to be set.
164 #
165 # The include files for X11:
166 X11_INCS = @X11_INCLUDES@
167
168 # The libraries files for X11:
169 X11_LIBS = @X11_LIBRARIES@ -lX11 @X11_EXTRA_LIBS@ @X11_RUN_PATH@
170
171
172
173 ####>>> TCL / TK <<<########################################################
174
175
176 # Set the location of the Tcl/Tk libraries and include files.
177 #
178 # The location of the libtk.a and libtcl.a libraries.
179 # The order should be -ltk -ltcl
180 TCL_LIBRARY = @TCLLIB@
181 TK_LIBRARY = @TKLIB@
182 TK_LIBS = $(TK_LIBRARY) $(TCL_LIBRARY) @TK_LD_HACK@ $(DL_LIBS)
183
184 # The location of the tcl.h and tk.h header files
185 # These should always be the same since tk 8.0
186 TK_INCS = @TCLINCLUDE@ # @TKINCLUDE@
187
188 # If TK_LIBS and TK_INCS are not properly set, ASCEND cannot build.
189
190
191 # We also need the TkTable widget which does not come as a
192 # standard part of the Tcl/Tk distribution. This library can
193 # either be loaded statically or dynamically. If the configure
194 # script found libTktable.a, use static loading; otherwise, use
195 # dynamic loading.
196 #
197 HAVE_TKTABLE = @HAVE_TKTABLE@
198 TKTABLE_LIB = @TKTABLE_LIB@
199
200
201 ####>>> SOLVERS / INTEGRATORS <<<###########################################
202
203 # If you are linking to MINOS or other external solvers, the solver
204 # interface needs to know about it.
205 # Set the comment flags as appropriate on the following definitions.
206 # If the settings here do not match the libraries you link, you will
207 # almost certainly get runtime errors if not link errors.
208
209 # to build with slv, uncomment the next line
210 #EXT_SLV = -DSTATIC_SLV
211
212 # to build with optsqp, uncomment the next line
213 #AWW20041129:EXT_OPTSQP = @HAVE_OPTSQP@
214 #
215 # location of the rsqp library
216 #AWW20041206:OPTSQPLIB = @OPTSQPLIB@
217
218 # to build with qrslv, uncomment the next line
219 EXT_QRSLV = -DSTATIC_QRSLV
220
221 # to build with mps, uncomment the next line
222 #EXT_MPS = -DSTATIC_MPS
223
224 # to build with ngslv, uncomment the next line
225 #EXT_NGSLV = -DSTATIC_NGSLV
226
227 # to build with cmslv, uncomment the next line
228 EXT_CMSLV = -DSTATIC_CMSLV
229
230 # to build with lrslv, uncomment the next line
231 #EXT_LRSLV = -DSTATIC_LRSLV
232
233 # the configure script sets the following depending on its search for minos.
234 # to force a build WITHOUT minos, comment the next line
235 #EXT_MINOS = @HAVE_MINOS@
236 #
237 # location of the minos library
238 #MINOSLIB = @MINOSLIB@
239
240 # the configure script sets the following depending on its search for conopt.
241 # to force a build WITHOUT conopt, comment the next line
242 #AWW20041129:EXT_CONOPT = @HAVE_CONOPT@
243 #
244 # location of the conopt library
245 #AWW20041206:CONOPTLIB = @CONOPTLIB@
246
247 # the configure script sets the following depending on its search for lsode.
248 # to force a build WITHOUT lsode, comment the next line
249 EXT_LSOD = @HAVE_LSOD@
250 #
251 # location of the lsode library
252 LSODLIB = @LSODLIB@
253
254 # combine all the defines for the solver into a single variable
255 #AWW20041206:SOLVER_DEFS = $(EXT_SLV) $(EXT_OPTSQP) $(EXT_QRSLV) $(EXT_MPS) $(EXT_NGSLV) \
256 #AWW20041206: $(EXT_CMSLV) $(EXT_LRSLV) $(EXT_MINOS) $(EXT_CONOPT) $(EXT_LSOD) \
257 #AWW20041206: $(EXT_OPTSQP)
258 SOLVER_DEFS = $(EXT_QRSLV) $(EXT_LSOD) $(EXT_CMSLV) $(EXT_LRSLV) $(EXT_NGSLV) $(EXT_MINOS) $(EXT_CONOPT)
259
260
261
262
263 ####>>> PACKAGES <<<########################################################
264
265 # Build ascend with packages.
266 # Packages are bits of compiled code that represent models, or solvers,
267 # or, in general, any bits of external code.
268
269 # Packages may be dynamically or statically linked/loaded. Add one or
270 # the other defines : -DSTATIC_PACKAGES or -DDYNAMIC_PACKAGES
271 #
272 #HAVE_PACKAGES = -DSTATIC_PACKAGES
273 #HAVE_PACKAGES = -DDYNAMIC_PACKAGES
274
275 # If statically linked, i.e. -DSTATIC_PACKAGES, then set PACK_LIBS
276 # to where your external packages exist. If dynamically linked or
277 # if you are building with NO_PACKAGES, leave PACK_LIBS empty.
278 #
279 PACK_LIBS = ../archive/libascpackages.a
280 #PACK_LIBS =
281
282 # The default behavor is to have packages, so if you don't want
283 # packages, you have to uncomment the following line
284 #HAVE_PACKAGES = -DNO_PACKAGES
285
286
287 ####>>> SHARED OBJECTS <<<##################################################
288
289 # When using dynamic packages or no packages, the Makefile needs
290 # to know how to make a shared object and what suffix the
291 # shared object should have.
292 #
293 # Library file(s) to link against for dynamic loading to work
294 DL_LIBS = @DL_LIBS@
295 #
296 # Flags to pass to the C compiler when linking object files
297 # into an executable application binary
298 LD_FLAGS = @LD_FLAGS@
299 #
300 # Flags to pass to ld to tell the run-time linker where to find
301 # shared objects
302 LD_SEARCH_FLAGS = @LD_SEARCH_FLAGS@
303 #
304 # Flags to pass to the C compiler when compiling the components
305 # of a shared library
306 SHLIB_CFLAGS = @SHLIB_CFLAGS@
307 #
308 # Base command to use to combing object files into a shared library
309 SHLIB_LD = @SHLIB_LD@
310 #
311 # Dependent libraries for the linker to scan when creating a shared
312 # library
313 SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
314 #
315 # Suffix to use for the names of dynamically loadable objects.
316 SHLIB_SUFFIX = @SHLIB_SUFFIX@
317 #
318 # Specifies everything that comes after libfoo in the shared library
319 # "foo"
320 ASC_LIB_SUFFIX = @ASC_LIB_SUFFIX@
321
322
323 ####>>> F77 <<<#############################################################
324
325 # F77
326 # your f77 compiler
327 #
328 F77 = @F77@
329
330 # Fortran compilation flags:
331 # These are used for making the ASCEND libraries based on FORTRAN codes.
332 # These should be set to get the best performance possible out of your
333 # f77 compiler without optimizing away functions that are not obviously
334 # called, as some compilers do by default.
335 #
336 F77FLAGS = -I4 -O
337 #
338 # F77LIBS is for the base f77 libraries. If you are linking no f77
339 # objects to ascend, it may be left undefined.
340 # Set F77LIBS appropriate for your machine and desired loader behavior.
341 #
342 F77_LIBS = @F77LIBS@
343 #
344 # F77_OPTS are for miscellaneous options, such as -tmpdir=
345 #
346 F77_OPTS =
347 #
348 # All the flags to pass to F77
349 #
350 F77_SWITCHES = $(F77FLAGS) $(F77_OPTS)
351
352 ####>>> FORTRAN LIBRARIES <<<###############################################
353
354 # If building ASCEND with MINOS or other FORTRAN based solvers/packages,
355 # uncomment one of the FOR_LIBS definitions below to indicate the FORTRAN
356 # libraries to link into ASCEND.
357 #
358 # Set the BLAS and LINPACK library definitions to point at
359 # machine specific libraries (if you have them) to get the
360 # best speed out of ASCEND.
361 #
362 BLASLIB = @BLASLIB@
363 LPAKLIB = @LPAKLIB@
364
365 FOR_LIBS = $(LSODLIB) $(MINOSLIB) $(OPTSQPLIB) $(CONOPTLIB) \
366 $(LPAKLIB) $(BLASLIB) \
367 $(F77_LIBS)
368
369
370 ####>>> INSTALL <<<#########################################################
371
372 # Location to install program, libs, etc, and the install program
373
374 # First, set INSTALL to the location of a BSD-compatible install program
375 #
376 INSTALL = @INSTALL@
377 INSTALL_PROGRAM = @INSTALL_PROGRAM@
378 INSTALL_DATA = @INSTALL_DATA@
379
380 # Where to install information
381 #
382 # prefix for platform dependent files:
383 exec_prefix = @exec_prefix@
384 #
385 # prefix for platfrom independent files (.h, .tcl, .asc, etc)
386 prefix = @prefix@
387 #
388 # directory for ascend binary
389 BIN_DIR = $(exec_prefix)/bin
390 #
391 # directory for ascend scripts
392 SCRIPT_DIR = $(prefix)/bin
393 #
394 # directory for ascend documentation
395 DOC_DIR = $(prefix)/doc
396 #
397 # directory for ascend include files
398 INCLUDE_DIR = $(prefix)/include
399 #
400 # directory for ascend info-style files
401 INFO_DIR = $(prefix)/info
402 #
403 # directory for ascend platform-dependent libraries
404 LIB_DIR = $(exec_prefix)/lib
405 #
406 # top level directory for ascend man pages
407 MAN_DIR = $(prefix)/man
408 #
409 # directories for specific man pages
410 MAN1_DIR = $(MAN_DIR)/man1
411 MAN3_DIR = $(MAN_DIR)/man3
412 MAN5_DIR = $(MAN_DIR)/man5
413 MAN8_DIR = $(MAN_DIR)/man8
414 MANn_DIR = $(MAN_DIR)/mann
415 #
416 # directory for ascend help files
417 HELP_DIR = $(prefix)/help
418 #
419 # directory for ascend models (libraries & examples)
420 MODELS_DIR = @INSTALL_ASCDATA@/models
421 #
422 # directory for ascend package code
423 PACK_DIR = $(prefix)/packages
424 #
425 # directory for general tcl/tk code
426 TK_LIBRARY_DIR = $(prefix)/lib/tcl
427 #
428 # directory for ascend specific tcl/tk code
429 # Note: the name for this is TK, not tcltk/TK.
430 ASCEND_TK_DIR = @INSTALL_ASCDATA@/TK
431
432 QUIET_INSTALL=@QUIET_INSTALL@
433
434 ####>>> CMU DEVELOPERS <<<##################################################
435
436 # The following flags control sources that are not part of the standard
437 # distribution. Do not uncomment any of these lines unless you know
438 # what you are doing; in particular, don't mess with these and then
439 # expect us to be able to help you when it won't build.
440
441 # Tom Epperly's malloc debugger:
442 #
443 # slow
444 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG
445 # slower
446 #MOD_ASCMALLOC = -DMOD_ASCMALLOC -DMALLOC_DEBUG -DALLOCATED_TESTS
447
448 # Damned expensive malloc debugger (sources not distributed):
449 #
450 # slowest
451 #DEBUG_MALLOC_LIBS = ../dbmalloc/libdbmalloc.a
452 #DEBUG_MALLOC = -DBEBUG_MALLOC
453
454 # Find Dependencies: makedepend/g++dep executable
455 #
456 # all dependencies
457 DEPEND = /usr/local/bin/makedepend
458 DEPEND = /usr/local/lib/ascend/etc/g++dep
459 #
460 # all but system dependencies
461 DEPEND_NOSYS = /usr/local/lib/ascend/etc/g++dep_nosys
462 # to make without-system-dependencies the default, uncomment the next line
463 #DEPEND = $(DEPEND_NOSYS)
464 #
465 # remove dependencies information version
466 DEPEND_RM = /usr/local/lib/ascend/etc/g++nodep
467 #
468 # All switches to pass to the dependency generator
469 #
470 DEPEND_FLAGS = $(INCLUDES) $(DEFINES)
471
472
473 # Tags
474 #
475 ETAGS = /usr/local/bin/etags
476 CTAGS = /usr/local/bin/ctags
477
478
479 # cflow, sparc only. on other platforms cflow and dot, if they exist,
480 # may need different switches. dot works well on sun/solaris/hpux OS.
481 # with a bit of hacking on usr/local/lib/ascend we could have dot on
482 # all but alphas since Ben has the sources. Finding cflow may be harder.
483 CFLFLAGS = -DNDEBUG -I.. -I.
484 RCFLFLAGS = -DNDEBUG -I.. -I. -r
485
486 # replaces tabs with 2 blanks for human consumption, and eat externals
487 #CPRCOM = |/usr/5bin/pr -e2 -t | eatcflowext
488 # eat external function calls (fprintf, etc) only
489 CPRCOM = | eatcflowext
490
491 # eat external calls and convert to dot input format
492 CPSCOM = | eatcflowext | eatcflow2dot
493
494 # note sunos4 /bin/cflow is fatally stupid. use sys5 version
495 CFLOW = /usr/lang/cflow
496 # you probably don't have this. It's in my path (~ballan/bin/dot)
497 # dot can be stunningly slow on twisty files.
498 DOT = dot
499 # can also generate mif (-Tmif), etc. see dot man page.
500 DOTFLAGS = -Tps
501 # eatcflowext,eatcflow2dot are tcl script ben wrote. vagu:~ballan/bin
502 # dot is the proprietary lucent graph utility.
503
504
505 # Purify
506 #
507 PURIFY = purify
508 QUANTIFY = quantify
509 #set dirs in the next 3 accordingly
510 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
511 -windows=no -inuse-at-exit=yes
512 PURIFY_OPTS = -always-use-cache-dir -cache-dir=/usr1/ballan/tmp/purify \
513 -inuse-at-exit=yes
514 QUANTIFY_OPTS = $(PURIFY_OPTS) -record-system-calls=no
515 # use these if you haven't paid pureatria yet.
516 PURIFY_OPTS =
517 QUANTIFY_OPTS = $(PURIFY_OPTS)
518
519
520 # Pixie
521 # (only available on the alpha)
522 #
523 PIXIE = pixie
524 PIXIE_OPTS = -pixie -heavy -lines -invocations -procedures
525 PIXIEDIR= a4
526
527
528 # set the following to -DCHRIS_FUNC to get the extra fucn properties
529 # needed for the Chris Welhelmy solver.
530 #
531 #FATFUNC = -DCHRIS_FUNC
532
533
534 # if your machine's memory is allocated in decreasing order, set the
535 # following to -DMEM_DECREASE to try to keep memory usage more compact
536 #
537 #MEM_DECREASE = -DMEM_DECREASE
538
539
540 ####>>> MISC <<<############################################################
541
542 # include files for ascend
543 #
544 #AWW: See comments in configure.in just before asc_include is set. I am
545 #AWW: not sure why -I@asc_include@ is here, but I know the others are
546 #AWW: needed - based on those comments.
547 #AWW20041206: ASC_INCS = -I@asc_include@ -I..
548 ASC_INCS = -I@fullpathsrcdir@/../generic -I@fullpathsrcdir@/../../tcltk/generic -I..
549
550 # library files for ascend
551 #
552 ASC_LIB_STEMS=if compiler solver utilities general
553 ASC_LIBS=$(ASC_LIB_STEMS:%=../archive/libasc%.a) $(PACK_LIBS)
554
555 # The time/place stamp for the executable.
556 # Reverse the comment flags if your cpp doesn't understand it
557 #
558 TIMESTAMP = -DTIMESTAMP="\"by `whoami`@`hostname`\""
559 #TIMESTAMP = -DTIMESTAMP="\"\""
560
561 # Force emacs to treat this file as a Makefile
562 #
563 # Local Variables: ***
564 # mode:Makefile ***
565 # End: ***

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