]> git.zerfleddert.de Git - micropolis/blame - src/tclx/config.mk
XINCLUDE: use /usr/X11R6/include everywhere
[micropolis] / src / tclx / config.mk
CommitLineData
6a5fa4e0
MG
1#
2# Config.mk --
3#
4# Master configuration file for Extended Tcl. This should be the only
5# file you have to modify to get Extended Tcl to work.
6#
7#------------------------------------------------------------------------------
8# Copyright 1992 Karl Lehenbauer and Mark Diekhans.
9#
10# Permission to use, copy, modify, and distribute this software and its
11# documentation for any purpose and without fee is hereby granted, provided
12# that the above copyright notice appear in all copies. Karl Lehenbauer and
13# Mark Diekhans make no representations about the suitability of this
14# software for any purpose. It is provided "as is" without express or
15# implied warranty.
16#------------------------------------------------------------------------------
17# $Id: Config.mk,v 2.3 1992/11/09 07:33:02 markd Exp $
18#------------------------------------------------------------------------------
19#
20
21#==============================================================================
22# Configuration file specification. Set the macro TCL_CONFIG_FILE to the
23# name of the file to use in the config directory (don't include the directory
24# name). If you find problems with these files or have new onces please send
25# them to us (tcl-project@neosoft.com). At the end of this file is a
26# description of all the flags that can be set in the config file.
27#
28TCL_CONFIG_FILE=linux
29
30#==============================================================================
31#
32# Configuration section. Modify this section to set some general options and
33# selecting a config file for a specific Unix implementation.
34#
35#==============================================================================
36
37#------------------------------------------------------------------------------
38# Location of the UCB Tcl distribution relative to this directory. TclX works
39# with Tcl 6.3 and Tcl 6.4.
40#
41TCL_UCB_DIR=../tcl
42
43#------------------------------------------------------------------------------
44# If you are a Tk user and would like to build a version "wish", the Tk shell,
45# that includes the TclX command set, define TCL_TK_SHELL=wish and the
46# location of your Tk directory in TCL_TK_DIR relative to this directory. If
47# you do not want a "wish" compiled, don't define TCL_TK_SHELL. The libraries
48# required to link Tk are defined in the system specific sections below.
49# TK_LIBRARY must be set to the same value specified in the compile of the Tk
50# source. If TCL_TK_SHELL is define, Tk manual pages will be installed by the
51# install script.
52#
53TCL_TK_SHELL=wish
54TCL_TK_DIR=../tk
55TK_LIBRARY=/usr/local/lib/tk
56XPM_LIBS=-L/usr/X11R6/lib -lXpm
939cf665 57XINCLUDE=/usr/X11R6/include
6a5fa4e0
MG
58
59#------------------------------------------------------------------------------
60# Compiler debug/optimization/profiling flag to use. Not that if debugging or
61# profiling is enabled, the DO_STRIPPING option below must be disabled.
62#
63
2a3a6b15 64#CC=gcc
6a5fa4e0
MG
65
66OPTIMIZE_FLAG=-O3 -DIS_LINUX
67#OPTIMIZE_FLAG=-g -DIS_LINUX
68
69#------------------------------------------------------------------------------
70# Stripping of the final tclshell binary. Specify `true' if the binary is to
71# be stripped (optimized case) or specify `false' if the binary is not to be
72# stripped (debugging case).
73#
74DO_STRIPPING=false
75#DO_STRIPPING=true
76
77#------------------------------------------------------------------------------
78# Definition of the compiler you want to use, as well as extra flags for the
79# compiler and linker. Also the yacc program you wish to use.
80#
81AR=ar
82XCFLAGS=
83XLDFLAGS=
84YACC=yacc
85#YACC=bison -b y
86
87#------------------------------------------------------------------------------
88# If C++ is to be used these should be used. Specifying CPLUSOBJS includes the
89# C++ support code in the Tcl library. CCPLUS is the command to run your C++
90# compiler. CPLUSINCL is the location of your standard C++ include files.
91#
92#CPLUSOBJS=tcl++.o
93CCPLUS=CC
94CPLUSINCL=/usr/include/CC
95
96#------------------------------------------------------------------------------
97# Enable or disable Tcl history in the Tcl flag. If this macro is set to
98# '-DTCL_NOHISTORY', the `history' command will not be available in the Tcl
99# shell. Many people do not find the history command useful and its rather
100# large, so this way it can be excluded from the standard shell. It will
101# still be in the library and will be available in other applications if they
102# use `Tcl_RecordAndEval'.
103#
104HISTORY_FLAG=
105
106#------------------------------------------------------------------------------
107# Memory debugging defines. These are only of interest if you are adding C
108# code to Tcl or debugging Tcl C code. You probably don't need this unless it
109# seems like you have memory problems. They help find memory overwrites and
110# leaks. One or more of the following flags may be specified (in the form
111# -DFLAGNAME).
112#
113# o TCL_MEM_DEBUG - Turn on memory debugging.
114# o TCL_SHELL_MEM_LEAK - Dump a list of active memory blocks when the
115# shell exits an eof (requires TCL_MEM_DEBUG).
116#
117# NOTE: If TCL_MEM_DEBUG is enabled, the Berkeley Tcl distribution must be
118# recompiled with this option as well, or it will not link or may fail
119# with some mysterious memory problems. Same goes for Tk if you are using
120# Tk. If this option is to be used, all code being tested MUST be compiled
121# with TCL_MEM_DEBUG and use ckalloc and ckfree for all memory passed between
122# the application and Tcl.
123#
124# An addition a flag MEM_VALIDATE may be specified in the Berkeley Tcl
125# compilation to do validation of all memory blocks on each allocation or
126# deallocation (very slow).
127#
128MEM_DEBUG_FLAGS=
129
130#==============================================================================
131# Install options sections. This sections describes the installation options.
132# Your might want to change some of these values before installing.
133#..............................................................................
134#
135# o TCL_OWNER - The user that will own all Tcl files after installation.
136# o TCL_GROUP - The group that all Tcl files will belong to after installation.
137#
138TCL_OWNER=bin
139TCL_GROUP=bin
140
141# o TCL_DEFAULT - Base name of Tcl default file. This name will have a
142# version number appended.
143#
144#TCL_DEFAULT=/etc/default/tcl
145TCL_DEFAULT=/usr/local/lib/tcldefault
146
147#
148# The directory to install Tcl binary into.
149#
150TCL_BINDIR=/usr/local/bin
151
152#
153# The directory tcl.a library goes into.
154#
155TCL_LIBDIR=/usr/local/lib
156
157#
158# The directory the Tcl .h files go into.
159#
160TCL_INCLUDEDIR=/usr/local/include
161
162#
163# The directory .tcl files and the .tlib library goes into.
164#
165TCL_TCLDIR=/usr/local/lib/tcl
166
167#==============================================================================
168# These defines specify where and how the manual pages are to be installed.
169# They are actually defined in the system specific configuration file in the
170# config directory. Install manual pages is somewhat problematic, so a global
171# option not to install manual pages is provided. Since there are so many
172# manual pages provided, they are placed together in one Tcl manual page
173# directory, rather than splitting into the standard manual pages directories.
174# The actual definitions of these variables are set for in the system
175# dependent file. You might want to modify these values.
176#..............................................................................
177
178#
179# Set to 1 to install manual files, to 0 to not install manual files.
180#
181
182TCL_MAN_INSTALL=1
183
184#
185# o TCL_MAN_BASEDIR - Base manual directory where all of the man.* and cat.*
186# directories live.
187#
188TCL_MAN_BASEDIR=/usr/local/man
189
190#
191# o TCL_MAN_CMD_SECTION - Section for Tcl command manual pages. Normal `1' or
192# `C'. You might perfer TCL since there are some many.
193#
194# o TCL_MAN_FUNC_SECTION - Section for Tcl C level function manual pages.
195# In some cases it might be desirable install all manual pages in one
196# section, in this case, the value should be the same as TCL_MAN_CMD_SECTION.
197#
198#TCL_MAN_CMD_SECTION=TCL
199#TCL_MAN_FUNC_SECTION=TCL
200TCL_MAN_CMD_SECTION=1
201TCL_MAN_FUNC_SECTION=3
202
203#
204# o TK_MAN_CMD_SECTION - Section for Tk command manual pages. Normal `1' or
205# `C'. You might perfer TK since there are some many.
206#
207# o TK_MAN_FUNC_SECTION - Section for Tk C level function manual pages.
208# In some cases it might be desirable install all manual pages in one
209# section, in this case, the value should be the same as TK_MAN_CMD_SECTION.
210#
211#TK_MAN_CMD_SECTION=TK
212#TK_MAN_FUNC_SECTION=TK
213TK_MAN_CMD_SECTION=1
214TK_MAN_FUNC_SECTION=3
215
216
217#..............................................................................
218# The rest of the manual page install options are set in the system dependent
219# configuration file (config/*)
220#
221
222# o TCL_MAN_SEPARATOR - The separator character used in the directory name
223# of the cat* and man* manual directories. This is usually empty or
224# a period.
225#
226# o TCL_MAN_STYLE - The style of manual management the system has.It is
227# a string with one of the following values:
228# o SHORT - Short file name installation (an index can be generated).
229# o LONG - Long file name installation, a link will be made for each
230# name the manual page is to be available under.
231# This flag is optional, if omitted LONG is assumed.
232#
233# o TCL_MAN_INDEX - If 1, then a manual page index will be build in the manual
234# base directory named index.TCL. Not useful if TCL_MAN_STYLE is LONG. Each
235# line in the file has the form:
236# mansubject manfile section
237# This flag is optional, if omitted 0 is assumed.
238#
239
240#==============================================================================
241# System specific configuration. A system configuration file in the config
242# directory defines the following mactos required for your version of Unix.
243# In addition to the options defined in the Berkeley source the following
244# options can be defined here. This information will help you build your own
245# system configuration if one is not supplied here. The configuration file
246# name is specified an the end of this section.
247#
248# o SYS_DEP_FLAGS - The system dependency flags. The following options are
249# available, these should be defined using -Dflag.
250#
251# o TCL_HAVE_SETLINEBUF - Define if the `setlinebuf' is available as part
252# of stdio.
253#
254# o TCL_32_BIT_RANDOM - Define if the `rand' function returns a value in
255# the range 0..(2^31)-1, leave undefined if `rand' returns a value
256# in the range 0..(2^15)-1.
257#
258# o TCL_NO_SELECT - The select call is not available.
259#
260# o TCL_NEED_SYS_SELECT_H - Define if <sys/select.h> is required. May not
261# need it, even if it is there.
262#
263# o TCL_USE_BZERO_MACRO - Use a macro to define bzero for the select
264# FD_ZERO macro.
265#
266# o TCL_POSIX_SIG - Set if posix signals are available (sigaction, etc).
267#
268# o TCL_HAVE_CATGETS - Set if XPG/3 message catalogs are available
269# (catopen, catgets, etc).
270#
271# o TCL_TM_GMTOFF - Set if the seconds east of GMT field in struct tm is
272# names 'tm_gmtoff'. Not set if its is names 'tm_tzadj'.
273#
274# o TCL_TIMEZONE_VAR - If the timezone varaible is used in place of
275# one of the fields from struct tm.
276#
277# o TCL_NEED_TIME_H - Set if time.h is required.
278#
279# o TCL_SIG_PROC_INT - Set if signal functions return int rather than
280# void.
281#
282# o TCL_NO_ITIMER - Set if setitimer is not available.
283#
284# o TCL_IEEE_FP_MATH - Set if IEEE 745-1985 error reporting via the value
285# a function returns is to be used instead of the standard matherr
286# mechanism.
287#
288# o TCL_NO_FILE_LOCKING - Set if the fcntl system call does not support
289# file locking.
290#
291# o TCL_DUP_CLK_TCK - On some systems that have both time.h and
292# sys/time.h, tclUnix.h defines CLK_TCK then tclExtdInt.h includes
293# time.h and you get a redefiniton warning. Set this flag to prevent
294# the warning (its not safe to just unset it).
295#
296# o LIBS - The flags to specify when linking the tclshell.
297#
298# o TCL_TK_LIBS - The libraries to link the TK wish program. This should
299# also include libraries specified for LIBS, as both values may not be
300# used together due to library ordering constraints.
301#
302# o RANLIB_CMD - Either `ranlib' if ranlib is required or `true' if ranlib
303# should not be used.
304#
305# o MCS_CMD - Command to delete comments from the object file comment
306# section, if available. The command `true' if it's not available. This
307# makes the object file even smaller after its stipped.
308#
309# o SUPPORT_FLAGS - The flags for SUPPORT_OBJS code. The following options
310# are available, these should be defined using -Dflag.
311#
312# o TCL_HAS_TM_ZONE - If if 'struct tm' has the 'tm_zone' field. Used
313# by strftime.
314#
315# o SUPPORT_OBJS - The object files to compile to implement library
316# functions that are not available on this particular version of Unix or
317# do not function correctly. The following are available:
318# o strftime.o
319#
320#..............................................................................
Impressum, Datenschutz