home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / config / config.vms < prev    next >
Encoding:
Text File  |  1994-02-21  |  3.4 KB  |  147 lines

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