config_f.h revision 69408
169408Sache/* $Header: /src/pub/tcsh/config_f.h,v 3.23 2000/06/11 02:14:10 kim Exp $ */ 259243Sobrien/* 359243Sobrien * config_f.h -- configure various defines for tcsh 459243Sobrien * 559243Sobrien * This is included by config.h. 659243Sobrien * 759243Sobrien * Edit this to match your particular feelings; this is set up to the 859243Sobrien * way I like it. 959243Sobrien */ 1059243Sobrien/*- 1159243Sobrien * Copyright (c) 1980, 1991 The Regents of the University of California. 1259243Sobrien * All rights reserved. 1359243Sobrien * 1459243Sobrien * Redistribution and use in source and binary forms, with or without 1559243Sobrien * modification, are permitted provided that the following conditions 1659243Sobrien * are met: 1759243Sobrien * 1. Redistributions of source code must retain the above copyright 1859243Sobrien * notice, this list of conditions and the following disclaimer. 1959243Sobrien * 2. Redistributions in binary form must reproduce the above copyright 2059243Sobrien * notice, this list of conditions and the following disclaimer in the 2159243Sobrien * documentation and/or other materials provided with the distribution. 2259243Sobrien * 3. All advertising materials mentioning features or use of this software 2359243Sobrien * must display the following acknowledgement: 2459243Sobrien * This product includes software developed by the University of 2559243Sobrien * California, Berkeley and its contributors. 2659243Sobrien * 4. Neither the name of the University nor the names of its contributors 2759243Sobrien * may be used to endorse or promote products derived from this software 2859243Sobrien * without specific prior written permission. 2959243Sobrien * 3059243Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3159243Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3259243Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3359243Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3459243Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3559243Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3659243Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3759243Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3859243Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3959243Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 4059243Sobrien * SUCH DAMAGE. 4159243Sobrien */ 4259243Sobrien#ifndef _h_config_f 4359243Sobrien#define _h_config_f 4459243Sobrien 4559243Sobrien/* 4659243Sobrien * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars 4759243Sobrien * This fixes up quoting problems and eases implementation 4859243Sobrien * of nls... 4959243Sobrien * 5059243Sobrien */ 5159243Sobrien#define SHORT_STRINGS 5259243Sobrien 5359243Sobrien/* 5459243Sobrien * NLS: Use Native Language System 5559243Sobrien * Routines like setlocale() are needed 5659243Sobrien * if you don't have <locale.h>, you don't want 5759243Sobrien * to define this. 5859243Sobrien */ 5959243Sobrien#define NLS 6059243Sobrien 6159243Sobrien/* 6259243Sobrien * NLS_CATALOGS:Use Native Language System catalogs for 6359243Sobrien * international messages. 6459243Sobrien * Routines like catopen() are needed 6559243Sobrien * if you don't have <nl_types.h>, you don't want 6659243Sobrien * to define this. 6759243Sobrien */ 6859243Sobrien#undef NLS_CATALOGS 6959243Sobrien 7059243Sobrien/* 7159243Sobrien * LOGINFIRST Source ~/.login before ~/.cshrc 7259243Sobrien */ 7359243Sobrien#undef LOGINFIRST 7459243Sobrien 7559243Sobrien/* 7659243Sobrien * VIDEFAULT Make the VI mode editor the default 7759243Sobrien */ 7859243Sobrien#undef VIDEFAULT 7959243Sobrien 8059243Sobrien/* 8159243Sobrien * KAI use "bye" command and rename "log" to "watchlog" 8259243Sobrien */ 8359243Sobrien#undef KAI 8459243Sobrien 8559243Sobrien/* 8659243Sobrien * TESLA drops DTR on logout. Historical note: 8759243Sobrien * tesla.ee.cornell.edu was a vax11/780 with a develcon 8859243Sobrien * switch that sometimes would not hang up. 8959243Sobrien */ 9059243Sobrien#undef TESLA 9159243Sobrien 9259243Sobrien/* 9359243Sobrien * DOTLAST put "." last in the default path, for security reasons 9459243Sobrien */ 9559243Sobrien#define DOTLAST 9659243Sobrien 9759243Sobrien/* 9859243Sobrien * NODOT Don't put "." in the default path, for security reasons 9959243Sobrien */ 10059243Sobrien#undef NODOT 10159243Sobrien 10259243Sobrien/* 10359243Sobrien * AUTOLOGOUT tries to determine if it should set autologout depending 10459243Sobrien * on the name of the tty, and environment. 10559243Sobrien * Does not make sense in the modern window systems! 10659243Sobrien */ 10759243Sobrien#define AUTOLOGOUT 10859243Sobrien 10959243Sobrien/* 11059243Sobrien * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 11159243Sobrien * Define to get the same type of messages. 11259243Sobrien */ 11359243Sobrien#define SUSPENDED 11459243Sobrien 11559243Sobrien/* 11659243Sobrien * KANJI Ignore meta-next, and the ISO character set. Should 11759243Sobrien * be used with SHORT_STRINGS 11859243Sobrien * 11959243Sobrien */ 12059243Sobrien#undef KANJI 12159243Sobrien 12259243Sobrien/* 12359243Sobrien * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 12459243Sobrien * only output, when "dspmbyte" is set. Should be used with 12559243Sobrien * KANJI 12659243Sobrien */ 12759243Sobrien#undef DSPMBYTE 12859243Sobrien 12959243Sobrien/* 13059243Sobrien * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 13159243Sobrien * variable "mbytemap". 13259243Sobrien * (use for multi-byte table check) 13359243Sobrien */ 13459243Sobrien#undef MBYTEDEBUG 13559243Sobrien 13659243Sobrien/* 13759243Sobrien * NEWGRP Provide a newgrp builtin. 13859243Sobrien */ 13959243Sobrien#undef NEWGRP 14059243Sobrien 14159243Sobrien/* 14259243Sobrien * SYSMALLOC Use the system provided version of malloc and friends. 14359243Sobrien * This can be much slower and no memory statistics will be 14459243Sobrien * provided. 14559243Sobrien */ 14669408Sache#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) 14759243Sobrien# define SYSMALLOC 14859243Sobrien#else 14959243Sobrien# undef SYSMALLOC 15059243Sobrien#endif 15159243Sobrien 15259243Sobrien/* 15359243Sobrien * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined. 15459243Sobrien * POSIX says to use stat, but stat(2) is less accurate 15559243Sobrien * than access(2) for determining file access. 15659243Sobrien */ 15759243Sobrien#undef USE_ACCESS 15859243Sobrien 15959243Sobrien/* 16059243Sobrien * REMOTEHOST Try to determine the remote host that we logged in from 16159243Sobrien * using first getpeername, and then the utmp file. If 16259243Sobrien * successful, set $REMOTEHOST to the name or address of the 16359243Sobrien * host 16459243Sobrien */ 16559243Sobrien#define REMOTEHOST 16659243Sobrien 16759243Sobrien/* 16859243Sobrien * COLOR_LS_F Do you want to use builtin color ls-F ? 16959243Sobrien * 17059243Sobrien */ 17159243Sobrien#define COLOR_LS_F 17259243Sobrien 17359243Sobrien/* 17459243Sobrien * COLORCAT Do you want to colorful message ? 17559243Sobrien * 17659243Sobrien */ 17759243Sobrien#undef COLORCAT 17859243Sobrien 17959243Sobrien/* 18059243Sobrien * RCSID This defines if we want rcs strings in the binary or not 18159243Sobrien * 18259243Sobrien */ 18359243Sobrien#if !defined(lint) && !defined(SABER) && !defined(__CLCC__) 18459243Sobrien# ifndef __GNUC__ 18559243Sobrien# define RCSID(id) static char *rcsid = (id); 18659243Sobrien# else 18759243Sobrien# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 18859243Sobrien# endif /* !__GNUC__ */ 18959243Sobrien#else 19059243Sobrien# define RCSID(id) /* Nothing */ 19159243Sobrien#endif /* !lint && !SABER */ 19259243Sobrien 19359243Sobrien#endif /* _h_config_f */ 194