2
* config.h -- configure various defines for tcsh
4
* All source files should #include this FIRST.
6
* Edit this to match your system type.
11
/****************** System dependant compilation flags ****************/
13
* POSIX This system supports IEEE Std 1003.1-1988 (POSIX).
17
#if defined(__hpux) && !defined(hpux)
19
#endif /* __hpux && !hpux */
21
#if __STDC__ && !defined(__GNUC__)
22
# define _POSIX_SOURCE
25
# endif /* !_HPUX_SOURCE */
29
* POSIXJOBS This system supports the optional IEEE Std 1003.1-1988 (POSIX)
30
* job control facilities.
35
* POSIXSIGS Use the POSIX signal facilities to emulate BSD signals.
40
* VFORK This machine has a vfork().
41
* It used to be that for job control to work, this define
42
* was mandatory. This is not the case any more.
43
* If you think you still need it, but you don't have vfork,
44
* define this anyway and then do #define vfork fork.
45
* I do this anyway on a Sun because of yellow pages brain damage,
46
* [should not be needed under 4.1]
47
* and on the iris4d cause SGI's fork is sufficiently "virtual"
48
* that vfork isn't necessary. (Besides, SGI's vfork is weird).
49
* Note that some machines eg. rs6000 have a vfork, but not
50
* with the berkeley semantics, so we cannot use it there either.
55
* BSDJOBS You have BSD-style job control (both process groups and
56
* a tty that deals correctly
61
* BSDSIGS You have 4.2-style signals, rather than USG style.
62
* Note: POSIX systems should not define this unless they
63
* have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
68
* BSDTIMES You have BSD-style process time stuff (like rusage)
69
* This may or may not be true. For example, Apple Unix
70
* (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
75
* BSDLIMIT You have BSD-style resource limit stuff (getrlimit/setrlimit)
80
* BSDNICE Your system uses setpriority() instead of nice, to
81
* change a processes scheduling priority
86
* TERMIO You have struct termio instead of struct sgttyb.
87
* This is usually the case for SYSV systems, where
88
* BSD uses sgttyb. POSIX systems should define this
89
* anyway, even though they use struct termios.
94
* SYSVREL Your machine is SYSV based (HPUX, A/UX)
95
* NOTE: don't do this if you are on a Pyramid -- tcsh is
96
* built in a BSD universe.
97
* Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
98
* you are running. Or set it to 0 if you are not SYSV based
103
* SIGVOID Define this if your signal handlers return void. On older
104
* systems, signal returns int, but on newer ones, it returns void.
109
* HAVEDUP2 Define this if your system supports dup2().
114
* UTHOST Does the utmp file have a host field?
119
* DIRENT Your system has <dirent.h> instead of <sys/dir.h>
124
* ECHO_STYLE Optionally change the behavior of the builtin echo
125
* BOTH_ECHO: Support both bsd options (-n) and sysv escapes (\nnn)
126
* BSD_ECHO: Support only -n
127
* SYSV_ECHO: Support only sysv escapes (\nnn)
128
* NONE_ECHO: Pure echo.
130
#define ECHO_STYLE BOTH_ECHO /* Both BSD and SYSV options */
132
/****************** local defines *********************/
133
#define NAMEI_BUG /* Great! you broke that one too */
135
#define HPUXVERSION 800 /* For HP-UX version 8.00 */
137
/****************** configurable hacks ****************/
138
/* have been moved to config_f.h */
139
#include "config_f.h"
140
#endif /* _h_config */