home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / tcshsrc.zoo / tcsh / config / config.symmetr < prev    next >
Encoding:
Text File  |  1991-08-06  |  3.9 KB  |  162 lines

  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. /****************** System dependant compilation flags ****************/
  10. /*
  11.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  12.  */
  13. #ifdef _SEQUENT_
  14. # define POSIX
  15. #else /* _SEQUENT_ */
  16. # undef POSIX
  17. #endif /* _SEQUENT_ */
  18.  
  19. /*
  20.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  21.  *        job control facilities.
  22.  */
  23. #ifdef _SEQUENT_
  24. # define POSIXJOBS
  25. #else /* _SEQUENT_ */
  26. # undef POSIXJOBS
  27. #endif /* _SEQUENT_ */
  28.  
  29. /*
  30.  * VFORK    This machine has a vfork().  
  31.  *        It used to be that for job control to work, this define
  32.  *        was mandatory. This is not the case any more.
  33.  *        If you think you still need it, but you don't have vfork, 
  34.  *        define this anyway and then do #define vfork fork.  
  35.  *        I do this anyway on a Sun because of yellow pages brain damage,
  36.  *        [should not be needed under 4.1]
  37.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  38.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  39.  *        Note that some machines eg. rs6000 have a vfork, but not
  40.  *        with the berkeley semantics, so we cannot use it there either.
  41.  */
  42. #define VFORK
  43.  
  44. /*
  45.  * BSDJOBS    You have BSD-style job control (both process groups and
  46.  *        a tty that deals correctly
  47.  */
  48. #define BSDJOBS
  49.  
  50. /*
  51.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  52.  *        Note: POSIX systems should not define this unless they
  53.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  54.  */
  55. #define BSDSIGS
  56.  
  57. /*
  58.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  59.  *        This may or may not be true.  For example, Apple Unix
  60.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  61.  */
  62. #ifdef _SEQUENT_
  63. # undef BSDTIMES
  64. #else /* _SEQUENT_ */
  65. # define BSDTIMES
  66. #endif /* _SEQUENT_ */
  67.  
  68. /*
  69.  * BSDNICE    Your system uses setpriority() instead of nice, to
  70.  *        change a processes scheduling priority
  71.  */
  72. #ifdef _SEQUENT_
  73. # undef BSDNICE
  74. #else /* _SEQUENT_ */
  75. # define BSDNICE
  76. #endif /* _SEQUENT_ */
  77.  
  78. /*
  79.  * TERMIO    You have struct termio instead of struct sgttyb.
  80.  *         This is usually the case for SVID systems, where
  81.  *        BSD uses sgttyb. POSIX systems should define this
  82.  *        anyway, even though they use struct termios.
  83.  */
  84. #ifdef _SEQUENT_
  85. # define TERMIO
  86. #else /* _SEQUENT_ */
  87. # undef TERMIO
  88. #endif /* _SEQUENT_ */
  89.  
  90. /*
  91.  * SVID        Your machine is SVID complient (Sys V, HPUX, A/UX)
  92.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  93.  *        built in a BSD universe.
  94.  *        Set SVID to 1, 2, or 3, depending the version of System V
  95.  *        you are running. Or set it to 0 if you are not SVID based
  96.  */
  97. #ifdef _SEQUENT_
  98. # define SVID    3
  99. #else /* _SEQUENT_ */
  100. # define SVID    0
  101. #endif /* _SEQUENT_ */
  102.  
  103. /*
  104.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  105.  *        to send command output to /dev/null
  106.  *        This is fixed in sunos 4.1, broken in 4.0..
  107.  */
  108. #ifdef _SEQUENT_
  109. # undef YPBUGS
  110. #else /* _SEQUENT_ */
  111. # define YPBUGS
  112. #endif /* _SEQUENT_ */
  113.   
  114. /*
  115.  * SIGVOID    Define this if your signal handlers return void.  On older
  116.  *        systems, signal returns int, but on newer ones, it returns void.
  117.  */
  118. #ifdef _SEQUENT_
  119. # define SIGVOID 
  120. #else /* _SEQUENT_ */
  121. # undef SIGVOID 
  122. #endif /* _SEQUENT_ */
  123.  
  124. /*
  125.  * HAVEDUP2    Define this if your system supports dup2().
  126.  */
  127. #define HAVEDUP2
  128.  
  129. /*
  130.  * UTHOST    Does the utmp file have a host field?
  131.  */
  132. #define UTHOST
  133.  
  134. /*
  135.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  136.  */
  137. #ifdef _SEQUENT_
  138. #define DIRENT
  139. #else /* _SEQUENT_ */
  140. #undef DIRENT
  141. #endif /* _SEQUENT_ */
  142.  
  143. /*
  144.  * BSD        Your system has <strings.h> instead of <string.h>
  145.  */
  146. #ifdef _SEQUENT_
  147. #undef BSD
  148. #else /* _SEQUENT_ */
  149. #define BSD
  150. #endif /* _SEQUENT_ */
  151.  
  152. /****************** local defines *********************/
  153. /****************** configurable hacks ****************/
  154. /* have been moved to config_f.h */
  155. #include "config_f.h"
  156.  
  157. #ifdef _SEQUENT_
  158. #define NAMEI_BUG
  159. #else /* _SEQUENT_ */
  160. #undef NLS
  161. #endif /* _SEQUENT_ */
  162.