2
* config.h -- configuration definitions for gawk.
8
* Copyright (C) 1991, 1992, 1993 the Free Software Foundation, Inc.
10
* This file is part of GAWK, the GNU implementation of the
11
* AWK Progamming Language.
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 2, or (at your option)
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.
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, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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.
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
40
* The order of preference in standard conformance is ANSI C, POSIX,
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.
49
/**************************/
50
/* Miscellanious features */
51
/**************************/
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.)
60
/* #define BLKSIZE_MISSING 1 */
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.
69
/* #define SIGTYPE int */
74
* If your system has no typedef for size_t, define this to get a default
76
/* #define SIZE_T_MISSING 1 */
81
* If your machine uses unsigned characters (IBM RT and RS/6000 and others)
82
* then define this for use in regex.c
84
/* #define CHAR_UNSIGNED 1 */
87
* HAVE_UNDERSCORE_SETJMP
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.
93
/* #define HAVE_UNDERSCORE_SETJMP 1 */
98
* You don't have a <limits.h> include file.
100
/* #define LIMITS_H_MISSING 1 */
102
/***********************************************/
103
/* Missing library subroutines or system calls */
104
/***********************************************/
111
* These three routines are for manipulating blocks of memory. Most
112
* likely they will either all three be present or all three be missing,
113
* so they're grouped together.
115
/* #define MEMCMP_MISSING 1 */
116
/* #define MEMCPY_MISSING 1 */
117
/* #define MEMSET_MISSING 1 */
122
* Your system does not have the random(3) suite of random number
123
* generating routines. These are different than the old rand(3)
126
/* #define RANDOM_MISSING 1 */
131
* Your system does not have the strcasemp() and strncasecmp()
132
* routines that originated in Berkeley Unix.
134
/* #define STRCASE_MISSING 1 */
139
* Your system does not have the strchr() and strrchr() functions.
141
/* #define STRCHR_MISSING 1 */
146
* Your system lacks the ANSI C strerror() routine for returning the
147
* strings associated with errno values.
149
/* #define STRERROR_MISSING 1 */
154
* Your system does not have the strtod() routine for converting
155
* strings to double precision floating point values.
157
/* #define STRTOD_MISSING 1 */
162
* Your system lacks the ANSI C strftime() routine for formatting
163
* broken down time values.
165
/* #define STRFTIME_MISSING 1 */
170
* If you have a 4.2 BSD vintage system, then the strftime() routine
171
* supplied in the missing directory won't be enough, because it relies on the
172
* tzset() routine from System V / Posix. Fortunately, there is an
173
* emulation for tzset() too that should do the trick. If you don't
174
* have tzset(), define this.
176
/* #define TZSET_MISSING 1 */
181
* Some systems do not support the external variables tzname and daylight.
182
* If this is the case *and* strftime() is missing, define this.
184
/* #define TZNAME_MISSING 1 */
189
* Your "struct tm" is missing the tm_zone field.
190
* If this is the case *and* strftime() is missing *and* tzname is missing,
193
/* #define TM_ZONE_MISSING 1 */
198
* If your system does have ANSI compliant header files that
199
* provide prototypes for library routines, then define this.
201
/* #define STDC_HEADERS 1 */
206
* If your compiler define's __STDC__ but does not support token
207
* pasting (tok##tok), then define this.
209
/* #define NO_TOKEN_PASTING 1 */
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
/*****************************************************************/
222
* Look in your /usr/include/stdio.h file. If the return type of the
223
* sprintf() function is NOT `int', define this.
225
/* #define NON_STD_SPRINTF 1 */
230
* Define this if your system lacks vprintf() and the other routines
231
* that go with it. This will trigger an attempt to use _doprnt().
232
* If you don't have that, this attempt will fail and you are on your own.
234
/* #define VPRINTF_MISSING 1 */
237
* Casts from size_t to int and back. These will become unnecessary
238
* at some point in the future, but for now are required where the
239
* two types are a different representation.
247
* Define this if your library does not provide a system function
248
* or you are not entirely happy with it and would rather use
249
* a provided replacement (atari only).
251
/* #define SYSTEM_MISSING 1 */
256
* Define this if your system lacks the fmod() function and modf() will
259
/* #define FMOD_MISSING 1 */
262
/*******************************/
263
/* Gawk configuration options. */
264
/*******************************/
269
* The default search path for the -f option of gawk. It is used
270
* if the AWKPATH environment variable is undefined. The default
271
* definition is provided here. Most likely you should not change
275
/* #define DEFPATH ".:/usr/lib/awk:/usr/local/lib/awk" */
276
/* #define ENVSEP ':' */
279
* alloca already has a prototype defined - don't redefine it
281
/* #define ALLOCA_PROTO 1 */
284
* srandom already has a prototype defined - don't redefine it
286
/* #define SRANDOM_PROTO 1 */
289
* getpgrp() in sysvr4 and POSIX takes no argument
291
/* #define GETPGRP_NOARG 0 */
294
* define const to nothing if not __STDC__
300
/* If svr4 and not gcc */