home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume7 / nstrings.bsd / config.h next >
Encoding:
C/C++ Source or Header  |  1989-06-03  |  2.7 KB  |  88 lines

  1. /*
  2.  * This file is used within strings.
  3.  * You can add specific defines for a machine below. Define neither
  4.  * SAFETY_FIRST nor USE_USER_DEFINES
  5.  * Defines for your current machine should go in tune.h. Define
  6.  * USE_USER_DEFINES.
  7.  *
  8.  * sccsid : @(#)  config.h  (v6.5 5/22/89)
  9.  *
  10.  * FOUND will contain a string telling what defines have been used.
  11.  */
  12.  
  13. # ifndef SAFETY_FIRST
  14. #    ifdef USE_USER_DEFINES
  15. #        define FOUND        "Using the user defines."
  16. #        include "tune.h"
  17. #    else USE_USER_DEFINES
  18.         /*
  19.          * Add (all) defines for your machine here.
  20.          */
  21. #        if defined(nsc32000) && defined(sinix) && defined(ns16000)
  22. #            define FOUND                        "Using defaults for sinix MX2."
  23. #            define FCNTL                        2
  24. #            define FAST_COPY(from,to,count)        bcopy(from,to,count)
  25. #            define WHAT_LSEEK                    1
  26. #            define I_SPECIAL
  27. #            define IN_BUF_LEN                    1024
  28. #            define OUT_BUF_LEN                    8192
  29. #            define THRESHOLD                    1024
  30. #        endif /* nsc32000 && sinix && ns16000 */
  31. #        if defined(unix) && defined(vax) && !defined(ultrix)
  32. #            define FOUND                        "Using defaults for VAX (BSD?)."
  33. #            define FCNTL                        1
  34. #            define FAST_COPY(from,to,count)        bcopy(from,to,count)
  35. #            define WHAT_LSEEK                    1
  36. #            define I_SPECIAL
  37. #            define IN_BUF_LEN                    4096
  38. #            define OUT_BUF_LEN                    16384
  39. #            define THRESHOLD                    4096
  40. #        endif /* vax */
  41. #        if defined(unix) && defined(sun) && defined(mc68020)
  42. #            define FOUND                        "Using defaults for SUN (SUN OS 3.*)."
  43. #            define FCNTL                        1
  44. #            define FAST_COPY(from,to,count)        bcopy(from,to,count)
  45. #            define WHAT_LSEEK                    1
  46. #            define I_SPECIAL
  47. #            define IN_BUF_LEN                    4096
  48. #            define OUT_BUF_LEN                    16384
  49. #            define THRESHOLD                    4096
  50. #        endif /* sun */
  51. #        if defined(unix) && defined(ultrix) && defined(bsd4_2)
  52. #            define FOUND                        "Using defaults for VAX (ULTRIX 2.0)"
  53. #            define FCNTL                        1
  54. #            define FAST_COPY(from,to,count)        bcopy(from,to,count)
  55. #            define WHAT_LSEEK                    1
  56. #            define I_SPECIAL
  57. #            define IN_BUF_LEN                    4096
  58. #            define OUT_BUF_LEN                    16384
  59. #            define THRESHOLD                    4096
  60. #        endif /* vax ultrix */
  61. #        if defined(vms) && defined(vax)
  62. #            define FOUND                        "Using defaults for VAX (VMS)"
  63. /* don't define FCNTL, O_RDONLY flag is in file.h and is 0 */
  64. #            define FAST_COPY(from,to,count)        memcpy(to,from,count)
  65. #            define WHAT_LSEEK                    2
  66. /*            define I_SPECIAL*/
  67. #            define IN_BUF_LEN                    4096
  68. #            define OUT_BUF_LEN                    16384
  69. #            define THRESHOLD                    4096
  70. #        endif /* vax ultrix */
  71. #    endif USE_USER_DEFINES
  72. # endif SAFETY_FIRST
  73.  
  74. # ifndef FOUND
  75. /*
  76.  * We have to use the defaults.
  77.  */
  78. #    define FOUND                            "Using minimal defaults."
  79. /* dont    define FCNTL */
  80. /* FAST_COPY will be a real routine */
  81. #    define WHAT_LSEEK                        1
  82. /* don't define I_SPECIAL */
  83. #    define IN_BUF_LEN                        1024
  84. #    define OUT_BUF_LEN                        8192
  85. #    define THRESHOLD                        1024
  86.  
  87. # endif FOUND
  88.