100d3abemp/* $FreeBSD$ */
26d57314obrien/*
36d57314obrien * config.h -- configure various defines for tcsh
46d57314obrien *
56d57314obrien * All source files should #include this FIRST.
66d57314obrien *
76d57314obrien * Edit this to match your system type.
86d57314obrien */
96d57314obrien
106d57314obrien#ifndef _h_config
116d57314obrien#define _h_config
1221a3003eadler/****************** System dependent compilation flags ****************/
136d57314obrien/*
146d57314obrien * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
156d57314obrien */
166d57314obrien#define POSIX
176d57314obrien
186d57314obrien/*
196d57314obrien * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
206d57314obrien *		job control facilities.
216d57314obrien */
226d57314obrien#define POSIXJOBS
236d57314obrien
246d57314obrien/*
2500d3abemp * VFORK	This machine has a vfork().
266d57314obrien *		It used to be that for job control to work, this define
276d57314obrien *		was mandatory. This is not the case any more.
2800d3abemp *		If you think you still need it, but you don't have vfork,
2900d3abemp *		define this anyway and then do #define vfork fork.
306d57314obrien *		I do this anyway on a Sun because of yellow pages brain damage,
316d57314obrien *		[should not be needed under 4.1]
3200d3abemp *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
336d57314obrien *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
346d57314obrien *		Note that some machines eg. rs6000 have a vfork, but not
356d57314obrien *		with the berkeley semantics, so we cannot use it there either.
366d57314obrien */
37be3e91dmp/* #define VFORK */
38be3e91dmp#define	vfork fork
396d57314obrien
406d57314obrien/*
416d57314obrien * BSDJOBS	You have BSD-style job control (both process groups and
426d57314obrien *		a tty that deals correctly
436d57314obrien */
446d57314obrien#define BSDJOBS
456d57314obrien
466d57314obrien/*
476d57314obrien * BSDTIMES	You have BSD-style process time stuff (like rusage)
486d57314obrien *		This may or may not be true.  For example, Apple Unix
4936b44d5mp *		(OREO) has BSDJOBS but not BSDTIMES.
506d57314obrien */
516d57314obrien#define BSDTIMES
526d57314obrien
536d57314obrien/*
546d57314obrien * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
556d57314obrien */
566d57314obrien#define BSDLIMIT
576d57314obrien
586d57314obrien/*
596d57314obrien * TERMIO	You have struct termio instead of struct sgttyb.
606d57314obrien * 		This is usually the case for SYSV systems, where
616d57314obrien *		BSD uses sgttyb. POSIX systems should define this
626d57314obrien *		anyway, even though they use struct termios.
636d57314obrien */
646d57314obrien#define TERMIO
656d57314obrien
666d57314obrien/*
676d57314obrien * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
686d57314obrien *		NOTE: don't do this if you are on a Pyramid -- tcsh is
696d57314obrien *		built in a BSD universe.
706d57314obrien *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
716d57314obrien *		you are running. Or set it to 0 if you are not SYSV based
726d57314obrien */
736d57314obrien#define SYSVREL	0
746d57314obrien
756d57314obrien/*
766d57314obrien * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
776d57314obrien *		to send command output to /dev/null
786d57314obrien */
7900d3abemp#undef YPBUGS
806d57314obrien
816d57314obrien/****************** local defines *********************/
826d57314obrien
836d57314obrien#if defined(__FreeBSD__)
846d57314obrien#define NLS_BUGS
8500d3abemp#define BSD_STYLE_COLORLS
86fc580aaphantom/* Use LC_MESSAGES locale category to open the message catalog */
87110a2bfphantom#define MCLoadBySet NL_CAT_LOCALE
88d6a716bmp#define BUFSIZE 8192
895217285ed#define UTMPX_FILE "/var/run/utx.active"
906d57314obrien#endif
916d57314obrien
926d57314obrien#if defined(__bsdi__)
936d57314obrien/*
946d57314obrien * _PATH_TCSHELL      if you've change the installation location (vix)
956d57314obrien */
96cd89d3fmp#include <sys/param.h>
97cd89d3fmp# ifdef _BSDI_VERSION >= 199701
986d57314obrien#  define _PATH_TCSHELL "/bin/tcsh"
9900d3abemp#  undef SYSMALLOC
1006d57314obrien#  define SYSMALLOC
1016d57314obrien# else
1026d57314obrien#  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
1036d57314obrien# endif
1046d57314obrien
10500d3abemp# undef NLS
10600d3abemp# undef NLS_CATALOGS
1076d57314obrien
1086d57314obrien#elif defined(__APPLE__)
1096d57314obrien# define SYSMALLOC
1106d57314obrien#endif
1116d57314obrien
1126d57314obrien#endif /* _h_config */
113