Fix UTIME_OMIT handling
[dragonfly.git] / contrib / tcsh-6 / config_f.h
blob0a1fb2e4ebc25154987779ee7d5d0cad8ee6eb98
1 /*
2 * config_f.h -- configure various defines for tcsh
4 * This is included by config.h.
6 * Edit this to match your particular feelings; this is set up to the
7 * way I like it.
8 */
9 /*-
10 * Copyright (c) 1980, 1991 The Regents of the University of California.
11 * All rights reserved.
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 * 3. Neither the name of the University nor the names of its contributors
22 * may be used to endorse or promote products derived from this software
23 * without specific prior written permission.
25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
37 #ifndef _h_config_f
38 #define _h_config_f
40 #ifdef HAVE_FEATURES_H
41 #include <features.h> /* for __GLIBC__ */
42 #endif
45 * SHORT_STRINGS Use at least 16 bit characters instead of 8 bit chars
46 * This fixes up quoting problems and eases implementation
47 * of nls...
50 #if defined(__NetBSD__)
51 # include <sys/param.h>
52 # if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 200000000)
53 # define SHORT_STRINGS
54 # else
55 # undef SHORT_STRINGS
56 # endif
57 #else
58 # define SHORT_STRINGS
59 #endif
62 * WIDE_STRINGS Represent strings using wide characters
63 * Allows proper function in multibyte encodings like UTF-8
65 #if defined (SHORT_STRINGS) && defined (NLS) && !defined (WINNT_NATIVE) && !defined(_OSD_POSIX) && SIZEOF_WCHAR_T > 1
66 # define WIDE_STRINGS
67 # if SIZEOF_WCHAR_T < 4
68 # define UTF16_STRINGS
69 # endif
70 #endif
73 * LOGINFIRST Source ~/.login before ~/.cshrc
75 #undef LOGINFIRST
78 * VIDEFAULT Make the VI mode editor the default
80 #undef VIDEFAULT
83 * KAI use "bye" command and rename "log" to "watchlog"
85 #undef KAI
88 * TESLA drops DTR on logout. Historical note:
89 * tesla.ee.cornell.edu was a vax11/780 with a develcon
90 * switch that sometimes would not hang up.
92 #undef TESLA
95 * DOTLAST put "." last in the default path, for security reasons
97 #define DOTLAST
100 * NODOT Don't put "." in the default path, for security reasons
102 #undef NODOT
105 * AUTOLOGOUT tries to determine if it should set autologout depending
106 * on the name of the tty, and environment.
107 * Does not make sense in the modern window systems!
109 #define AUTOLOGOUT
112 * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'.
113 * Define to get the same type of messages.
115 #define SUSPENDED
118 * KANJI Ignore meta-next, and the ISO character set. Should
119 * be used with SHORT_STRINGS (or WIDE_STRINGS)
122 #define KANJI
125 * DSPMBYTE add variable "dspmbyte" and display multi-byte string at
126 * only output, when "dspmbyte" is set. Should be used with
127 * KANJI
129 #if defined (SHORT_STRINGS) && !defined (WIDE_STRINGS)
130 # define DSPMBYTE
131 #endif
134 * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to
135 * variable "mbytemap".
136 * (use for multi-byte table check)
138 #undef MBYTEDEBUG
141 * NEWGRP Provide a newgrp builtin.
143 #undef NEWGRP
146 * SYSMALLOC Use the system provided version of malloc and friends.
147 * This can be much slower and no memory statistics will be
148 * provided.
150 #if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__) || defined(__NetBSD__)
151 # define SYSMALLOC
152 #else
153 # undef SYSMALLOC
154 #endif
157 * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.
158 * POSIX says to use stat, but stat(2) is less accurate
159 * than access(2) for determining file access.
161 #undef USE_ACCESS
164 * REMOTEHOST Try to determine the remote host that we logged in from
165 * using first getpeername, and then the utmp file. If
166 * successful, set $REMOTEHOST to the name or address of the
167 * host
169 #define REMOTEHOST
172 * COLOR_LS_F Do you want to use builtin color ls-F ?
175 #define COLOR_LS_F
178 * COLORCAT Do you want to colorful message ?
181 #undef COLORCAT
184 * FILEC support for old style file completion
186 #define FILEC
188 /* Consistency checks */
189 #ifdef WIDE_STRINGS
190 # ifdef WINNT_NATIVE
191 #error "WIDE_STRINGS cannot be used together with WINNT_NATIVE"
192 # endif
194 # ifndef SHORT_STRINGS
195 #error "SHORT_STRINGS must be defined if WIDE_STRINGS is defined"
196 # endif
198 # ifndef NLS
199 #error "NLS must be defined if WIDE_STRINGS is defined"
200 # endif
202 # ifdef DSPMBYTE
203 #error "DSPMBYTE must not be defined if WIDE_STRINGS is defined"
204 # endif
205 #endif
207 #if !defined (SHORT_STRINGS) && defined (DSPMBYTE)
208 #error "SHORT_STRINGS must be defined if DSPMBYTE is defined"
209 #endif
211 #endif /* _h_config_f */