1/*
2 * config.h -- configure various defines for tcsh
3 *
4 * All source files should #include this FIRST.
5 *
6 * Edit this to match your system type.
7 */
8
9#ifndef _h_config
10#define _h_config
11/****************** System dependant compilation flags ****************/
12/*
13 * For A/UX < 2.00 you can undefine POSIX and POSIXJOBS, delete
14 * -ZP in CFLAGS and -lposix  in LIBES
15 */
16/*
17 * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
18 */
19#define POSIX
20#ifndef _POSIX_SOURCE
21#define _POSIX_SOURCE
22#endif
23
24/*
25 * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
26 *		job control facilities.
27 */
28#define POSIXJOBS
29
30/*
31 * VFORK	This machine has a vfork().
32 *		It used to be that for job control to work, this define
33 *		was mandatory. This is not the case any more.
34 *		If you think you still need it, but you don't have vfork,
35 *		define this anyway and then do #define vfork fork.
36 *		I do this anyway on a Sun because of yellow pages brain damage,
37 *		[should not be needed under 4.1]
38 *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
39 *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
40 *		Note that some machines eg. rs6000 have a vfork, but not
41 *		with the berkeley semantics, so we cannot use it there either.
42 */
43#undef VFORK
44
45/*
46 * BSDJOBS	You have BSD-style job control (both process groups and
47 *		a tty that deals correctly
48 */
49#define BSDJOBS
50
51/*
52 * BSDTIMES	You have BSD-style process time stuff (like rusage)
53 *		This may or may not be true.  For example, Apple Unix
54 *		(OREO) has BSDJOBS but not BSDTIMES.
55 */
56#undef BSDTIMES
57
58/*
59 * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
60 */
61#undef BSDLIMIT
62
63/*
64 * TERMIO	You have struct termio instead of struct sgttyb.
65 * 		This is usually the case for SYSV systems, where
66 *		BSD uses sgttyb. POSIX systems should define this
67 *		anyway, even though they use struct termios.
68 */
69#define TERMIO
70
71/*
72 * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
73 *		NOTE: don't do this if you are on a Pyramid -- tcsh is
74 *		built in a BSD universe.
75 *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
76 *		you are running. Or set it to 0 if you are not SYSV based
77 */
78#define SYSVREL	2
79
80/*
81 * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
82 *		to send command output to /dev/null
83 */
84#undef YPBUGS
85
86/***************** local defines *********************/
87/*
88 * OREO		You are running Apple Unix.
89 */
90#define OREO
91
92#ifndef _BSD_SOURCE
93# define _BSD_SOURCE
94#endif /* _BSD_SOURCE */
95#ifndef _SYSV_SOURCE
96# define _SYSV_SOURCE
97#endif /* _SYSV_SOURCE */
98
99#undef NLS_CATALOGS
100#endif /* _h_config */
101