xref: /dflybsd-src/contrib/tcsh-6/config/bsd4.4 (revision 60962bbc19c36433491c6251f1fac8942f00eff3)
17d8fb588SMatthias Schmidt/*
27d8fb588SMatthias Schmidt * config.h -- configure various defines for tcsh
37d8fb588SMatthias Schmidt *
47d8fb588SMatthias Schmidt * All source files should #include this FIRST.
57d8fb588SMatthias Schmidt *
67d8fb588SMatthias Schmidt * Edit this to match your system type.
77d8fb588SMatthias Schmidt */
87d8fb588SMatthias Schmidt
97d8fb588SMatthias Schmidt#ifndef _h_config
107d8fb588SMatthias Schmidt#define _h_config
117d8fb588SMatthias Schmidt/****************** System dependant compilation flags ****************/
127d8fb588SMatthias Schmidt/*
137d8fb588SMatthias Schmidt * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
147d8fb588SMatthias Schmidt */
157d8fb588SMatthias Schmidt#define POSIX
167d8fb588SMatthias Schmidt
177d8fb588SMatthias Schmidt/*
187d8fb588SMatthias Schmidt * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
197d8fb588SMatthias Schmidt *		job control facilities.
207d8fb588SMatthias Schmidt */
217d8fb588SMatthias Schmidt#define POSIXJOBS
227d8fb588SMatthias Schmidt
237d8fb588SMatthias Schmidt/*
247d8fb588SMatthias Schmidt * VFORK	This machine has a vfork().
257d8fb588SMatthias Schmidt *		It used to be that for job control to work, this define
267d8fb588SMatthias Schmidt *		was mandatory. This is not the case any more.
277d8fb588SMatthias Schmidt *		If you think you still need it, but you don't have vfork,
287d8fb588SMatthias Schmidt *		define this anyway and then do #define vfork fork.
297d8fb588SMatthias Schmidt *		I do this anyway on a Sun because of yellow pages brain damage,
307d8fb588SMatthias Schmidt *		[should not be needed under 4.1]
317d8fb588SMatthias Schmidt *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
327d8fb588SMatthias Schmidt *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
337d8fb588SMatthias Schmidt *		Note that some machines eg. rs6000 have a vfork, but not
347d8fb588SMatthias Schmidt *		with the berkeley semantics, so we cannot use it there either.
357d8fb588SMatthias Schmidt */
367d8fb588SMatthias Schmidt#define VFORK
377d8fb588SMatthias Schmidt
387d8fb588SMatthias Schmidt/*
397d8fb588SMatthias Schmidt * BSDJOBS	You have BSD-style job control (both process groups and
407d8fb588SMatthias Schmidt *		a tty that deals correctly
417d8fb588SMatthias Schmidt */
427d8fb588SMatthias Schmidt#define BSDJOBS
437d8fb588SMatthias Schmidt
447d8fb588SMatthias Schmidt/*
457d8fb588SMatthias Schmidt * BSDTIMES	You have BSD-style process time stuff (like rusage)
467d8fb588SMatthias Schmidt *		This may or may not be true.  For example, Apple Unix
477d8fb588SMatthias Schmidt *		(OREO) has BSDJOBS but not BSDTIMES.
487d8fb588SMatthias Schmidt */
497d8fb588SMatthias Schmidt#define BSDTIMES
507d8fb588SMatthias Schmidt
517d8fb588SMatthias Schmidt/*
527d8fb588SMatthias Schmidt * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
537d8fb588SMatthias Schmidt */
547d8fb588SMatthias Schmidt#define BSDLIMIT
557d8fb588SMatthias Schmidt
567d8fb588SMatthias Schmidt/*
577d8fb588SMatthias Schmidt * TERMIO	You have struct termio instead of struct sgttyb.
587d8fb588SMatthias Schmidt * 		This is usually the case for SYSV systems, where
597d8fb588SMatthias Schmidt *		BSD uses sgttyb. POSIX systems should define this
607d8fb588SMatthias Schmidt *		anyway, even though they use struct termios.
617d8fb588SMatthias Schmidt */
627d8fb588SMatthias Schmidt#define TERMIO
637d8fb588SMatthias Schmidt
647d8fb588SMatthias Schmidt/*
657d8fb588SMatthias Schmidt * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
667d8fb588SMatthias Schmidt *		NOTE: don't do this if you are on a Pyramid -- tcsh is
677d8fb588SMatthias Schmidt *		built in a BSD universe.
687d8fb588SMatthias Schmidt *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
697d8fb588SMatthias Schmidt *		you are running. Or set it to 0 if you are not SYSV based
707d8fb588SMatthias Schmidt */
717d8fb588SMatthias Schmidt#define SYSVREL	0
727d8fb588SMatthias Schmidt
737d8fb588SMatthias Schmidt/*
747d8fb588SMatthias Schmidt * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
757d8fb588SMatthias Schmidt *		to send command output to /dev/null
767d8fb588SMatthias Schmidt */
777d8fb588SMatthias Schmidt#undef YPBUGS
787d8fb588SMatthias Schmidt
797d8fb588SMatthias Schmidt/****************** local defines *********************/
807d8fb588SMatthias Schmidt
817d8fb588SMatthias Schmidt#if defined(__DragonFly__)
827d8fb588SMatthias Schmidt#define NLS_BUGS
837d8fb588SMatthias Schmidt#define BSD_STYLE_COLORLS
847d8fb588SMatthias Schmidt#endif
857d8fb588SMatthias Schmidt
867d8fb588SMatthias Schmidt#if defined(__bsdi__)
877d8fb588SMatthias Schmidt/*
887d8fb588SMatthias Schmidt * _PATH_TCSHELL      if you've change the installation location (vix)
897d8fb588SMatthias Schmidt */
907d8fb588SMatthias Schmidt#include <sys/param.h>
917d8fb588SMatthias Schmidt# ifdef _BSDI_VERSION >= 199701
927d8fb588SMatthias Schmidt#  define _PATH_TCSHELL "/bin/tcsh"
937d8fb588SMatthias Schmidt#  undef SYSMALLOC
947d8fb588SMatthias Schmidt#  define SYSMALLOC
957d8fb588SMatthias Schmidt# else
967d8fb588SMatthias Schmidt#  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
977d8fb588SMatthias Schmidt# endif
987d8fb588SMatthias Schmidt
997d8fb588SMatthias Schmidt#elif defined(__APPLE__)
1007d8fb588SMatthias Schmidt# define SYSMALLOC
101*60962bbcSJohn Marino# define BSD_STYLE_COLORLS
1027d8fb588SMatthias Schmidt#endif
1037d8fb588SMatthias Schmidt
1047d8fb588SMatthias Schmidt#endif /* _h_config */
105