config_f.h revision 69408
1274955Ssvnmir/* $Header: /src/pub/tcsh/config_f.h,v 3.23 2000/06/11 02:14:10 kim Exp $ */
2274955Ssvnmir/*
3274955Ssvnmir * config_f.h -- configure various defines for tcsh
4274955Ssvnmir *
5274955Ssvnmir * This is included by config.h.
6274955Ssvnmir *
7274955Ssvnmir * Edit this to match your particular feelings; this is set up to the
8274955Ssvnmir * way I like it.
9274955Ssvnmir */
10274955Ssvnmir/*-
11274955Ssvnmir * Copyright (c) 1980, 1991 The Regents of the University of California.
12274955Ssvnmir * All rights reserved.
13274955Ssvnmir *
14274955Ssvnmir * Redistribution and use in source and binary forms, with or without
15274955Ssvnmir * modification, are permitted provided that the following conditions
16274955Ssvnmir * are met:
17274955Ssvnmir * 1. Redistributions of source code must retain the above copyright
18274955Ssvnmir *    notice, this list of conditions and the following disclaimer.
19274955Ssvnmir * 2. Redistributions in binary form must reproduce the above copyright
20274955Ssvnmir *    notice, this list of conditions and the following disclaimer in the
21274955Ssvnmir *    documentation and/or other materials provided with the distribution.
22274955Ssvnmir * 3. All advertising materials mentioning features or use of this software
23274955Ssvnmir *    must display the following acknowledgement:
24274955Ssvnmir *	This product includes software developed by the University of
25274955Ssvnmir *	California, Berkeley and its contributors.
26274955Ssvnmir * 4. Neither the name of the University nor the names of its contributors
27274955Ssvnmir *    may be used to endorse or promote products derived from this software
28274955Ssvnmir *    without specific prior written permission.
29274955Ssvnmir *
30274955Ssvnmir * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
31274955Ssvnmir * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32274955Ssvnmir * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33274955Ssvnmir * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
34274955Ssvnmir * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
35274955Ssvnmir * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
36274955Ssvnmir * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
37274955Ssvnmir * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
38274955Ssvnmir * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
39274955Ssvnmir * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40274955Ssvnmir * SUCH DAMAGE.
41274955Ssvnmir */
42274955Ssvnmir#ifndef _h_config_f
43274955Ssvnmir#define _h_config_f
44274955Ssvnmir
45274955Ssvnmir/*
46274955Ssvnmir * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars
47274955Ssvnmir * 	         This fixes up quoting problems and eases implementation
48274955Ssvnmir *	         of nls...
49274955Ssvnmir *
50274955Ssvnmir */
51274955Ssvnmir#define SHORT_STRINGS
52274955Ssvnmir
53274955Ssvnmir/*
54280031Sdim * NLS:		Use Native Language System
55274955Ssvnmir *		Routines like setlocale() are needed
56274955Ssvnmir *		if you don't have <locale.h>, you don't want
57274955Ssvnmir *		to define this.
58274955Ssvnmir */
59274955Ssvnmir#define NLS
60274955Ssvnmir
61274955Ssvnmir/*
62274955Ssvnmir * NLS_CATALOGS:Use Native Language System catalogs for
63274955Ssvnmir *		international messages.
64274955Ssvnmir *		Routines like catopen() are needed
65274955Ssvnmir *		if you don't have <nl_types.h>, you don't want
66274955Ssvnmir *		to define this.
67274955Ssvnmir */
68274955Ssvnmir#undef NLS_CATALOGS
69274955Ssvnmir
70274955Ssvnmir/*
71274955Ssvnmir * LOGINFIRST   Source ~/.login before ~/.cshrc
72274955Ssvnmir */
73274955Ssvnmir#undef LOGINFIRST
74274955Ssvnmir
75274955Ssvnmir/*
76274955Ssvnmir * VIDEFAULT    Make the VI mode editor the default
77274955Ssvnmir */
78274955Ssvnmir#undef VIDEFAULT
79274955Ssvnmir
80274955Ssvnmir/*
81274955Ssvnmir * KAI          use "bye" command and rename "log" to "watchlog"
82274955Ssvnmir */
83274955Ssvnmir#undef KAI
84274955Ssvnmir
85274955Ssvnmir/*
86274955Ssvnmir * TESLA	drops DTR on logout. Historical note:
87274955Ssvnmir *		tesla.ee.cornell.edu was a vax11/780 with a develcon
88274955Ssvnmir *		switch that sometimes would not hang up.
89274955Ssvnmir */
90274955Ssvnmir#undef TESLA
91274955Ssvnmir
92274955Ssvnmir/*
93274955Ssvnmir * DOTLAST      put "." last in the default path, for security reasons
94274955Ssvnmir */
95274955Ssvnmir#define DOTLAST
96274955Ssvnmir
97274955Ssvnmir/*
98274955Ssvnmir * NODOT	Don't put "." in the default path, for security reasons
99274955Ssvnmir */
100274955Ssvnmir#undef NODOT
101274955Ssvnmir
102274955Ssvnmir/*
103274955Ssvnmir * AUTOLOGOUT	tries to determine if it should set autologout depending
104274955Ssvnmir *		on the name of the tty, and environment.
105274955Ssvnmir *		Does not make sense in the modern window systems!
106274955Ssvnmir */
107280031Sdim#define AUTOLOGOUT
108274955Ssvnmir
109274955Ssvnmir/*
110274955Ssvnmir * SUSPENDED	Newer shells say 'Suspended' instead of 'Stopped'.
111274955Ssvnmir *		Define to get the same type of messages.
112274955Ssvnmir */
113274955Ssvnmir#define SUSPENDED
114274955Ssvnmir
115280031Sdim/*
116280031Sdim * KANJI	Ignore meta-next, and the ISO character set. Should
117280031Sdim *		be used with SHORT_STRINGS
118280031Sdim *
119280031Sdim */
120274955Ssvnmir#undef KANJI
121274955Ssvnmir
122274955Ssvnmir/*
123274955Ssvnmir * DSPMBYTE	add variable "dspmbyte" and display multi-byte string at
124274955Ssvnmir *		only output, when "dspmbyte" is set. Should be used with
125274955Ssvnmir *		KANJI
126274955Ssvnmir */
127274955Ssvnmir#undef DSPMBYTE
128280031Sdim
129280031Sdim/*
130280031Sdim * MBYTEDEBUG	when "dspmbyte" is changed, set multi-byte checktable to
131280031Sdim *		variable "mbytemap".
132280031Sdim *		(use for multi-byte table check)
133280031Sdim */
134280031Sdim#undef MBYTEDEBUG
135274955Ssvnmir
136274955Ssvnmir/*
137274955Ssvnmir * NEWGRP	Provide a newgrp builtin.
138274955Ssvnmir */
139274955Ssvnmir#undef NEWGRP
140274955Ssvnmir
141274955Ssvnmir/*
142274955Ssvnmir * SYSMALLOC	Use the system provided version of malloc and friends.
143274955Ssvnmir *		This can be much slower and no memory statistics will be
144274955Ssvnmir *		provided.
145274955Ssvnmir */
146274955Ssvnmir#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__)
147274955Ssvnmir# define SYSMALLOC
148274955Ssvnmir#else
149274955Ssvnmir# undef SYSMALLOC
150274955Ssvnmir#endif
151274955Ssvnmir
152274955Ssvnmir/*
153274955Ssvnmir * USE_ACCESS	Use access(2) rather than stat(2) when POSIX is defined.
154274955Ssvnmir *		POSIX says to use stat, but stat(2) is less accurate
155274955Ssvnmir *		than access(2) for determining file access.
156274955Ssvnmir */
157274955Ssvnmir#undef USE_ACCESS
158274955Ssvnmir
159274955Ssvnmir/*
160274955Ssvnmir * REMOTEHOST	Try to determine the remote host that we logged in from
161274955Ssvnmir *		using first getpeername, and then the utmp file. If
162274955Ssvnmir *		successful, set $REMOTEHOST to the name or address of the
163274955Ssvnmir *		host
164274955Ssvnmir */
165274955Ssvnmir#define REMOTEHOST
166274955Ssvnmir
167274955Ssvnmir/*
168274955Ssvnmir * COLOR_LS_F Do you want to use builtin color ls-F ?
169274955Ssvnmir *
170274955Ssvnmir */
171274955Ssvnmir#define COLOR_LS_F
172274955Ssvnmir
173274955Ssvnmir/*
174274955Ssvnmir * COLORCAT Do you want to colorful message ?
175274955Ssvnmir *
176274955Ssvnmir */
177274955Ssvnmir#undef COLORCAT
178274955Ssvnmir
179274955Ssvnmir/*
180274955Ssvnmir * RCSID	This defines if we want rcs strings in the binary or not
181274955Ssvnmir *
182274955Ssvnmir */
183274955Ssvnmir#if !defined(lint) && !defined(SABER) && !defined(__CLCC__)
184274955Ssvnmir# ifndef __GNUC__
185274955Ssvnmir#  define RCSID(id) static char *rcsid = (id);
186274955Ssvnmir# else
187274955Ssvnmir#  define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); }
188274955Ssvnmir# endif /* !__GNUC__ */
189274955Ssvnmir#else
190274955Ssvnmir# define RCSID(id)	/* Nothing */
191274955Ssvnmir#endif /* !lint && !SABER */
192274955Ssvnmir
193274955Ssvnmir#endif /* _h_config_f */
194274955Ssvnmir