home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gawk213s.lzh / GAWK213S / CONFIG.H < prev    next >
Text File  |  1993-07-29  |  8KB  |  288 lines

  1. /*
  2.  * config.h -- configuration definitions for gawk.
  3.  *
  4.  * MS-DOS systems using MSC 5.1
  5.  */
  6.  
  7. /* 
  8.  * Copyright (C) 1991, the Free Software Foundation, Inc.
  9.  * 
  10.  * This file is part of GAWK, the GNU implementation of the
  11.  * AWK Progamming Language.
  12.  * 
  13.  * GAWK is free software; you can redistribute it and/or modify
  14.  * it under the terms of the GNU General Public License as published by
  15.  * the Free Software Foundation; either version 1, or (at your option)
  16.  * any later version.
  17.  * 
  18.  * GAWK is distributed in the hope that it will be useful,
  19.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21.  * GNU General Public License for more details.
  22.  * 
  23.  * You should have received a copy of the GNU General Public License
  24.  * along with GAWK; see the file COPYING.  If not, write to
  25.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  26.  */
  27.  
  28. /*
  29.  * This file isolates configuration dependencies for gnu awk.
  30.  * You should know something about your system, perhaps by having
  31.  * a manual handy, when you edit this file.  You should copy config.h-dist
  32.  * to config.h, and edit config.h.  Do not modify config.h-dist, so that
  33.  * it will be easy to apply any patches that may be distributed.
  34.  *
  35.  * The general idea is that systems conforming to the various standards
  36.  * should need to do the least amount of changing.  Definining the various
  37.  * items in ths file usually means that your system is missing that
  38.  * particular feature.
  39.  *
  40.  * The order of preference in standard conformance is ANSI C, POSIX,
  41.  * and the SVID.
  42.  *
  43.  * If you have no clue as to what's going on with your system, try
  44.  * compiling gawk without editing this file and see what shows up
  45.  * missing in the link stage.  From there, you can probably figure out
  46.  * which defines to turn on.
  47.  */
  48.  
  49. /**************************/
  50. /* Miscellanious features */
  51. /**************************/
  52.  
  53. /*
  54.  * BLKSIZE_MISSING
  55.  *
  56.  * Check your /usr/include/sys/stat.h file.  If the stat structure
  57.  * does not have a member named st_blksize, define this.  (This will
  58.  * most likely be the case on most System V systems prior to V.4.)
  59.  */
  60. #define    BLKSIZE_MISSING    1
  61.  
  62. /*
  63.  * SIGTYPE
  64.  *
  65.  * The return type of the routines passed to the signal function.
  66.  * Modern systems use `void', older systems use `int'.
  67.  * If left undefined, it will default to void.
  68.  */
  69. /* #define SIGTYPE    int */
  70.  
  71. /*
  72.  * SIZE_T_MISSING
  73.  *
  74.  * If your system has no typedef for size_t, define this to get a default
  75.  */
  76. #define    SIZE_T_MISSING    1
  77.  
  78. /*
  79.  * CHAR_UNSIGNED
  80.  *
  81.  * If your machine uses unsigned characters (IBM RT and RS/6000 and others)
  82.  * then define this for use in regex.c
  83.  */
  84. /* #define CHAR_UNSIGNED    1 */
  85.  
  86. /*
  87.  * HAVE_UNDERSCORE_SETJMP
  88.  *
  89.  * Check in your /usr/include/setjmp.h file.  If there are routines
  90.  * there named _setjmp and _longjmp, then you should define this.
  91.  * Typically only systems derived from Berkeley Unix have this.
  92.  */
  93. /* #define HAVE_UNDERSCORE_SETJMP    1 */
  94.  
  95. /***********************************************/
  96. /* Missing library subroutines or system calls */
  97. /***********************************************/
  98.  
  99. /*
  100.  * GETOPT_MISSING
  101.  *
  102.  * Define this if your library does not have the getopt(3) library
  103.  * routine for parsing command line arguments.
  104.  */
  105. #define    GETOPT_MISSING    1
  106.  
  107. /*
  108.  * MEMCMP_MISSING
  109.  * MEMCPY_MISSING
  110.  * MEMSET_MISSING
  111.  *
  112.  * These three routines are for manipulating blocks of memory. Most
  113.  * likely they will either all three be present or all three be missing,
  114.  * so they're grouped together.
  115.  */
  116. /* #define MEMCMP_MISSING    1 */
  117. /* #define MEMCPY_MISSING    1 */
  118. /* #define MEMSET_MISSING    1 */
  119.  
  120. /*
  121.  * RANDOM_MISSING
  122.  *
  123.  * Your system does not have the random(3) suite of random number
  124.  * generating routines.  These are different than the old rand(3)
  125.  * routines!
  126.  */
  127. #define    RANDOM_MISSING    1
  128.  
  129. /*
  130.  * STRCASE_MISSING
  131.  *
  132.  * Your system does not have the strcasemp() and strncasecmp()
  133.  * routines that originated in Berkeley Unix.
  134.  */
  135. #define    STRCASE_MISSING    1
  136.  
  137. /*
  138.  * STRCHR_MISSING
  139.  *
  140.  * Your system does not have the strchr() and strrchr() functions.
  141.  */
  142. /* #define STRCHR_MISSING    1 */
  143.  
  144. /*
  145.  * STRERROR_MISSING
  146.  *
  147.  * Your system lacks the ANSI C strerror() routine for returning the
  148.  * strings associated with errno values.
  149.  */
  150. /* #define STRERROR_MISSING    1 */
  151.  
  152. /*
  153.  * STRTOD_MISSING
  154.  *
  155.  * Your system does not have the strtod() routine for converting
  156.  * strings to double precision floating point values.
  157.  */
  158. /* #define STRTOD_MISSING    1 */
  159.  
  160. /*
  161.  * STRTOL_MISSING
  162.  *
  163.  * Your system does not have the strtol() routine for converting
  164.  * strings to long integers.
  165.  */
  166. #define    STRTOL_MISSING    1
  167.  
  168. /*
  169.  * STRFTIME_MISSING
  170.  *
  171.  * Your system lacks the ANSI C strftime() routine for formatting
  172.  * broken down time values.
  173.  */
  174. #define    STRFTIME_MISSING    1
  175.  
  176. /*
  177.  * TZSET_MISSING
  178.  *
  179.  * If you have a 4.2 BSD vintage system, then the strftime() routine
  180.  * supplied in the missing directory won't be enough, because it relies on the
  181.  * tzset() routine from System V / Posix.  Fortunately, there is an
  182.  * emulation for tzset() too that should do the trick.  If you don't
  183.  * have tzset(), define this.
  184.  */
  185. /* #define TZSET_MISSING    1 */
  186.  
  187. /*
  188.  * TZNAME_MISSING
  189.  *
  190.  * Some systems do not support the external variables tzname and daylight.
  191.  * If this is the case *and* strftime() is missing, define this.
  192.  */
  193. /* #define TZNAME_MISSING    1 */
  194.  
  195. /*
  196.  * STDC_HEADERS
  197.  *
  198.  * If your system does have ANSI compliant header files that
  199.  * provide prototypes for library routines, then define this.
  200.  */
  201. /* #define STDC_HEADERS    1 */
  202.  
  203. /*
  204.  * NO_TOKEN_PASTING
  205.  *
  206.  * If your compiler define's __STDC__ but does not support token
  207.  * pasting (tok##tok), then define this.
  208.  */
  209. /* #define NO_TOKEN_PASTING    1 */
  210.  
  211. /*****************************************************************/
  212. /* Stuff related to the Standard I/O Library.             */
  213. /*****************************************************************/
  214. /* Much of this is (still, unfortunately) black magic in nature. */
  215. /* You may have to use some or all of these together to get gawk */
  216. /* to work correctly.                         */
  217. /*****************************************************************/
  218.  
  219. /*
  220.  * NON_STD_SPRINTF
  221.  *
  222.  * Look in your /usr/include/stdio.h file.  If the return type of the
  223.  * sprintf() function is NOT `int', define this.
  224.  */
  225. /* #define NON_STD_SPRINTF    1 */
  226.  
  227. /*
  228.  * VPRINTF_MISSING
  229.  *
  230.  * Define this if your system lacks vprintf() and the other routines
  231.  * that go with it.
  232.  */
  233. /* #define VPRINTF_MISSING    1 */
  234.  
  235. /*
  236.  * BSDSTDIO
  237.  *
  238.  * Define this if your standard i/o library is internally compatible
  239.  * with the one shipped with Berkeley Unix systems (4.n, n <= 3-reno).
  240.  * If you've defined VPRINTF_MISSING, you probably will need this too.
  241.  */
  242. /* #define BSDSTDIO        1 */
  243.  
  244. /*
  245.  * DOPRNT_MISSING
  246.  *
  247.  * Define this if your standard i/o library does not have the _doprnt()
  248.  * routine.  This is used in an attempt to simulate the vfprintf()
  249.  * routine.
  250.  */
  251. /* #define DOPRNT_MISSING    1 */
  252.  
  253. /*
  254.  * Casts from size_t to int and back.  These will become unnecessary
  255.  * at some point in the future, but for now are required where the
  256.  * two types are a different representation.
  257.  */
  258. /* #define SZTC */
  259. /* #define INTC */
  260.  
  261. /*
  262.  * SYSTEM_MISSING
  263.  *
  264.  * Define this if your library does not provide a system function
  265.  * or you are not entirely happy with it and would rather use
  266.  * a provided replacement (atari only).
  267.  */
  268. /* #define SYSTEM_MISSING   1 */
  269.  
  270.  
  271. /*******************************/
  272. /* Gawk configuration options. */
  273. /*******************************/
  274.  
  275. /*
  276.  * DEFPATH
  277.  *
  278.  * The default search path for the -f option of gawk.  It is used
  279.  * if the AWKPATH environment variable is undefined.  The default
  280.  * definition is provided here.  Most likely you should not change
  281.  * this.
  282.  */
  283.  
  284. /* #define DEFPATH    ".:/usr/lib/awk:/usr/local/lib/awk" */
  285. /* #define ENVSEP    ':' */
  286.  
  287. /* anything that follows is for system-specific short-term kludges */
  288.