Keep the command line on the heap to avoid stack overflow.
[make.git] / config.h.W32.template
blob03efa99962de6ca198ecefa61a72ac19c72b6807
1 /* config.h.W32 -- hand-massaged config.h file for Windows builds       -*-C-*-
3 Copyright (C) 1996-2012 Free Software Foundation, Inc.
4 This file is part of GNU Make.
6 GNU Make is free software; you can redistribute it and/or modify it under the
7 terms of the GNU General Public License as published by the Free Software
8 Foundation; either version 3 of the License, or (at your option) any later
9 version.
11 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along with
16 this program.  If not, see <http://www.gnu.org/licenses/>.  */
18 /* Suppress some Visual C++ warnings.
19    Maybe after the code cleanup for ISO C we can remove some/all of these.  */
20 #if _MSC_VER > 1000
21 # pragma warning(disable:4100) /* unreferenced formal parameter */
22 # pragma warning(disable:4102) /* unreferenced label */
23 # pragma warning(disable:4127) /* conditional expression is constant */
24 # pragma warning(disable:4131) /* uses old-style declarator */
25 # pragma warning(disable:4702) /* unreachable code */
26 # define _CRT_SECURE_NO_WARNINGS  /* function or variable may be unsafe */
27 # define _CRT_NONSTDC_NO_WARNINGS /* functions w/o a leading underscore */
28 #endif
30 /* Define to 1 if the 'closedir' function returns void instead of 'int'. */
31 /* #undef CLOSEDIR_VOID */
33 /* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP
34    systems. This function is required for 'alloca.c' support on those systems.
35    */
36 /* #undef CRAY_STACKSEG_END */
38 /* Define to 1 if using 'alloca.c'. */
39 /* #undef C_ALLOCA */
41 /* Define to 1 if using 'getloadavg.c'. */
42 #define C_GETLOADAVG 1
44 /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */
45 /* #undef DGUX */
47 /* Define to 1 if translation of program messages to the user's native
48    language is requested. */
49 /* #undef ENABLE_NLS */
51 /* Use high resolution file timestamps if nonzero. */
52 #define FILE_TIMESTAMP_HI_RES 0
54 /* Define to 1 if the 'getloadavg' function needs to be run setuid or setgid.
55    */
56 /* #undef GETLOADAVG_PRIVILEGED */
58 /* Define to 1 if you have 'alloca', as a function or macro. */
59 #define HAVE_ALLOCA 1
61 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
62    */
63 /* #undef HAVE_ALLOCA_H */
65 /* Define to 1 if your compiler conforms to the ANSI C standard. */
66 #define HAVE_ANSI_COMPILER 1
68 /* Define to 1 if you have the 'atexit' function. */
69 #define HAVE_ATEXIT 1
71 /* Use case insensitive file names */
72 /* #undef HAVE_CASE_INSENSITIVE_FS */
74 /* Define to 1 if you have the clock_gettime function. */
75 /* #undef HAVE_CLOCK_GETTIME */
77 /* Embed GNU Guile support.  Windows build sets this on the
78    compilation command line.  */
79 /* #undef HAVE_GUILE */
81 /* Define if the GNU dcgettext() function is already present or preinstalled.
82    */
83 /* #undef HAVE_DCGETTEXT */
85 /* Define to 1 if you have the declaration of 'bsd_signal', and to 0 if you
86    don't. */
87 #define HAVE_DECL_BSD_SIGNAL 0
89 /* Define to 1 if you have the declaration of 'sys_siglist', and to 0 if you
90    don't. */
91 #define HAVE_DECL_SYS_SIGLIST 0
93 /* Define to 1 if you have the declaration of '_sys_siglist', and to 0 if you
94    don't. */
95 #define HAVE_DECL__SYS_SIGLIST 0
97 /* Define to 1 if you have the declaration of '__sys_siglist', and to 0 if you
98    don't. */
99 #define HAVE_DECL___SYS_SIGLIST 0
101 /* Define to 1 if you have the <dirent.h> header file, and it defines 'DIR'.
102    */
103 #define HAVE_DIRENT_H 1
105 /* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
106    and chdir().
107    */
108 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
109 # define HAVE_DIRECT_H 1
110 #endif
112 /* Define to 1 if you don't have 'vprintf' but do have '_doprnt.' */
113 /* #undef HAVE_DOPRNT */
115 /* Use platform specific coding */
116 #define HAVE_DOS_PATHS 1
118 /* Define to 1 if you have the 'dup2' function. */
119 #define HAVE_DUP2 1
121 /* Define to 1 if you have the <fcntl.h> header file. */
122 #define HAVE_FCNTL_H 1
124 /* Define to 1 if you have the 'fdopen' function. */
125 #ifdef __MINGW32__
126 #define HAVE_FDOPEN 1
127 #endif
129 /* Define to 1 if you have the 'fileno' function. */
130 #define HAVE_FILENO 1
132 /* Define to 1 if you have the 'fork' function. */
133 /* #undef HAVE_FORK */
135 /* Define to 1 if you have the 'getcwd' function.  */
136 #define HAVE_GETCWD 1
138 /* Define to 1 if you have the 'getgroups' function. */
139 /* #undef HAVE_GETGROUPS */
141 /* Define to 1 if you have the 'gethostbyname' function. */
142 /* #undef HAVE_GETHOSTBYNAME */
144 /* Define to 1 if you have the 'gethostname' function. */
145 /* #undef HAVE_GETHOSTNAME */
147 /* Define to 1 if you have the 'getloadavg' function. */
148 /* #undef HAVE_GETLOADAVG */
150 /* Define to 1 if you have the 'getrlimit' function. */
151 /* #undef HAVE_GETRLIMIT */
153 /* Define if the GNU gettext() function is already present or preinstalled. */
154 /* #undef HAVE_GETTEXT */
156 /* Define to 1 if you have a standard gettimeofday function */
157 #ifdef __MINGW32__
158 #define HAVE_GETTIMEOFDAY 1
159 #endif
161 /* Define if you have the iconv() function. */
162 /* #undef HAVE_ICONV */
164 /* Define to 1 if you have the <inttypes.h> header file. */
165 #ifdef __MINGW32__
166 #define HAVE_INTTYPES_H 1
167 #endif
169 /* Define to 1 if you have the 'dgc' library (-ldgc). */
170 /* #undef HAVE_LIBDGC */
172 /* Define to 1 if you have the 'kstat' library (-lkstat). */
173 /* #undef HAVE_LIBKSTAT */
175 /* Define to 1 if you have the <limits.h> header file. */
176 #define HAVE_LIMITS_H 1
178 /* Define to 1 if you have the <locale.h> header file. */
179 /*#define HAVE_LOCALE_H 1*/
181 /* Define to 1 if you have the 'lstat' function. */
182 /* #undef HAVE_LSTAT */
184 /* Define to 1 if you have the <mach/mach.h> header file. */
185 /* #undef HAVE_MACH_MACH_H */
187 /* Define to 1 if you have the <memory.h> header file. */
188 #define HAVE_MEMORY_H 1
190 /* Define to 1 if you have the 'mkstemp' function. */
191 /* #undef HAVE_MKSTEMP */
193 /* Define to 1 if you have the 'mktemp' function. */
194 #define HAVE_MKTEMP 1
196 /* Define to 1 if you have the <ndir.h> header file, and it defines 'DIR'. */
197 /* #undef HAVE_NDIR_H */
199 /* Define to 1 if you have the <nlist.h> header file. */
200 /* #undef HAVE_NLIST_H */
202 /* Define to 1 if you have the 'pipe' function. */
203 /* #undef HAVE_PIPE */
205 /* Define to 1 if you have the 'pstat_getdynamic' function. */
206 /* #undef HAVE_PSTAT_GETDYNAMIC */
208 /* Define to 1 if you have the 'readlink' function. */
209 /* #undef HAVE_READLINK */
211 /* Define to 1 if you have the 'realpath' function. */
212 /* #undef HAVE_REALPATH */
214 /* Define to 1 if <signal.h> defines the SA_RESTART constant. */
215 /* #undef HAVE_SA_RESTART */
217 /* Define to 1 if you have the 'setegid' function. */
218 /* #undef HAVE_SETEGID */
220 /* Define to 1 if you have the 'seteuid' function. */
221 /* #undef HAVE_SETEUID */
223 /* Define to 1 if you have the 'setlinebuf' function. */
224 /* #undef HAVE_SETLINEBUF */
226 /* Define to 1 if you have the 'setlocale' function. */
227 /*#define HAVE_SETLOCALE 1*/
229 /* Define to 1 if you have the 'setregid' function. */
230 /* #undef HAVE_SETREGID */
232 /* Define to 1 if you have the 'setreuid' function. */
233 /* #undef HAVE_SETREUID */
235 /* Define to 1 if you have the 'setrlimit' function. */
236 /* #undef HAVE_SETRLIMIT */
238 /* Define to 1 if you have the 'setvbuf' function. */
239 #define HAVE_SETVBUF 1
241 /* Define to 1 if you have the 'sigaction' function. */
242 /* #undef HAVE_SIGACTION */
244 /* Define to 1 if you have the 'sigsetmask' function. */
245 /* #undef HAVE_SIGSETMASK */
247 /* Define to 1 if you have the 'socket' function. */
248 /* #undef HAVE_SOCKET */
250 /* Define to 1 if you have the <stdarg.h> header file. */
251 #define HAVE_STDARG_H 1
253 /* Define to 1 if you have the <stdint.h> header file. */
254 #ifdef __MINGW32__
255 #define HAVE_STDINT_H 1
256 #endif
258 /* Define to 1 if you have the <stdlib.h> header file. */
259 #define HAVE_STDLIB_H 1
261 /* Define to 1 if you have the 'strcasecmp' function. */
262 #ifdef __MINGW32__
263 #define HAVE_STRCASECMP 1
264 #endif
266 /* Define to 1 if you have the 'strcmpi' function. */
267 #define HAVE_STRCMPI 1
269 /* Define to 1 if you have the 'strcoll' function and it is properly defined.
270    */
271 #define HAVE_STRCOLL 1
273 /* Define to 1 if you have the 'strdup' function. */
274 #define HAVE_STRDUP 1
276 /* Define to 1 if you have the 'strerror' function. */
277 #define HAVE_STRERROR 1
279 /* Define to 1 if you have the 'stricmp' function. */
280 #define HAVE_STRICMP 1
282 /* Define to 1 if you have the <strings.h> header file. */
283 /* #define HAVE_STRINGS_H 1 */
285 /* Define to 1 if you have the <string.h> header file. */
286 #define HAVE_STRING_H 1
288 /* Define to 1 if you have the 'strncasecmp' function. */
289 #ifdef __MINGW32__
290 #define HAVE_STRNCASECMP 1
291 #endif
293 /* Define to 1 if you have the 'strncmpi' function. */
294 /* #undef HAVE_STRNCMPI */
296 /* Define to 1 if you have the 'strndup' function. */
297 /* #undef HAVE_STRNDUP */
299 /* Define to 1 if you have the 'strnicmp' function. */
300 #ifdef __MINGW32__
301 #define HAVE_STRNICMP 1
302 #endif
304 /* Define to 1 if you have the 'strsignal' function. */
305 /* #undef HAVE_STRSIGNAL */
307 /* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */
308 /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
310 /* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
311    */
312 /* #undef HAVE_SYS_DIR_H */
314 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
315    */
316 /* #undef HAVE_SYS_NDIR_H */
318 /* Define to 1 if you have the <sys/param.h> header file. */
319 #ifdef __MINGW32__
320 #define HAVE_SYS_PARAM_H 1
321 #endif
323 /* Define to 1 if you have the <sys/resource.h> header file. */
324 /* #undef HAVE_SYS_RESOURCE_H */
326 /* Define to 1 if you have the <sys/stat.h> header file. */
327 #define HAVE_SYS_STAT_H 1
329 /* Define to 1 if you have the <sys/timeb.h> header file. */
330 #define HAVE_SYS_TIMEB_H 1
332 /* Define to 1 if you have the <sys/time.h> header file. */
333 #ifdef __MINGW32__
334 #define HAVE_SYS_TIME_H 1
335 #endif
337 /* Define to 1 if you have the <sys/types.h> header file. */
338 #define HAVE_SYS_TYPES_H 1
340 /* Define to 1 if you have the <sys/wait.h> header file. */
341 /* #undef HAVE_SYS_WAIT_H */
343 /* Define to 1 if you have the \'union wait' type in <sys/wait.h>. */
344 /* #undef HAVE_UNION_WAIT */
346 /* Define to 1 if you have the <unistd.h> header file. */
347 #ifdef __MINGW32__
348 #define HAVE_UNISTD_H 1
349 #endif
351 /* Define to 1 if you have the <varargs.h> header file. */
352 /* #undef HAVE_VARARGS_H */
354 /* Define to 1 if you have the 'vfork' function. */
355 /* #undef HAVE_VFORK */
357 /* Define to 1 if you have the <vfork.h> header file. */
358 /* #undef HAVE_VFORK_H */
360 /* Define to 1 if you have the 'vprintf' function. */
361 #define HAVE_VPRINTF 1
364 /* Define to 1 if you have the 'wait3' function. */
365 /* #undef HAVE_WAIT3 */
367 /* Define to 1 if you have the 'waitpid' function. */
368 /* #undef HAVE_WAITPID */
370 /* Define to 1 if 'fork' works. */
371 /* #undef HAVE_WORKING_FORK */
373 /* Define to 1 if 'vfork' works. */
374 /* #undef HAVE_WORKING_VFORK */
376 /* Build host information. */
377 #define MAKE_HOST "Windows32"
379 /* Define to 1 to enable job server support in GNU make. */
380 #define MAKE_JOBSERVER 1
382 /* Define to 1 to enable symbolic link timestamp checking. */
383 /* #undef MAKE_SYMLINKS */
385 /* Define to 1 if your 'struct nlist' has an 'n_un' member. Obsolete, depend
386    on 'HAVE_STRUCT_NLIST_N_UN_N_NAME */
387 /* #undef NLIST_NAME_UNION */
389 /* Define to 1 if struct nlist.n_name is a pointer rather than an array. */
390 /* #undef NLIST_STRUCT */
392 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
393 /* #undef NO_MINUS_C_MINUS_O */
395 /* Name of this package (needed by automake) */
396 #define PACKAGE "%PACKAGE%"
398 /* Define to the address where bug reports for this package should be sent. */
399 #define PACKAGE_BUGREPORT "bug-make@gnu.org"
401 /* Define to the full name of this package. */
402 #define PACKAGE_NAME "GNU make"
404 /* Define to the home page for this package. */
405 #define PACKAGE_URL "http://www.gnu.org/software/make/"
407 /* Define to the version of this package. */
408 #define PACKAGE_VERSION "%VERSION%"
410 /* Define to the character that separates directories in PATH. */
411 #define PATH_SEPARATOR_CHAR ';'
413 /* Define as the return type of signal handlers ('int' or 'void'). */
414 #define RETSIGTYPE void
416 /* Define to the name of the SCCS 'get' command. */
417 #define SCCS_GET "echo no sccs get"
419 /* Define this if the SCCS 'get' command understands the '-G<file>' option. */
420 /* #undef SCCS_GET_MINUS_G */
422 /* Define to 1 if the 'setvbuf' function takes the buffering type as its
423    second argument and the buffer pointer as the third, as on System V before
424    release 3. */
425 /* #undef SETVBUF_REVERSED */
427 /* If using the C implementation of alloca, define if you know the
428    direction of stack growth for your system; otherwise it will be
429    automatically deduced at run time.
430         STACK_DIRECTION > 0 => grows toward higher addresses
431         STACK_DIRECTION < 0 => grows toward lower addresses
432         STACK_DIRECTION = 0 => direction of growth unknown */
433 /* #undef STACK_DIRECTION */
435 /* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */
436 /* #undef STAT_MACROS_BROKEN */
438 /* Define to 1 if you have the ANSI C header files. */
439 #define STDC_HEADERS 1
441 /* Define if struct stat contains a nanoseconds field */
442 /* #undef ST_MTIM_NSEC */
444 /* Define to 1 on System V Release 4. */
445 /* #undef SVR4 */
447 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
448 #ifdef __MINGW32__
449 #define TIME_WITH_SYS_TIME 1
450 #endif
452 /* Define to 1 for Encore UMAX. */
453 /* #undef UMAX */
455 /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
456    <sys/cpustats.h>. */
457 /* #undef UMAX4_3 */
459 /* Version number of package */
460 #define VERSION "%VERSION%"
462 /* Define if using the dmalloc debugging malloc package */
463 /* #undef WITH_DMALLOC */
465 /* Define to 1 if on AIX 3.
466    System headers sometimes define this.
467    We just want to avoid a redefinition error message.  */
468 #ifndef _ALL_SOURCE
469 /* # undef _ALL_SOURCE */
470 #endif
472 /* Number of bits in a file offset, on hosts where this is settable. */
473 /* #undef _FILE_OFFSET_BITS */
475 /* Define for large files, on AIX-style hosts. */
476 /* #undef _LARGE_FILES */
478 /* Define to 1 if on MINIX. */
479 /* #undef _MINIX */
481 /* Define to 2 if the system does not provide POSIX.1 features except with
482    this defined. */
483 /* #undef _POSIX_1_SOURCE */
485 /* Define to 1 if you need to in order for 'stat' and other things to work. */
486 /* #undef _POSIX_SOURCE */
488 /* Define to empty if 'const' does not conform to ANSI C. */
489 /* #undef const */
491 #include <sys/types.h>
493 /* Define to 'int' if <sys/types.h> doesn't define. */
494 #define gid_t int
496 /* Define to 'int' if <sys/types.h> does not define. */
497 /* GCC 4.x reportedly defines pid_t.  */
498 #ifndef _PID_T_
499 #ifdef _WIN64
500 #define pid_t __int64
501 #else
502 #define pid_t int
503 #endif
504 #endif
506 /* Define to 'int' if <sys/types.h> doesn't define. */
507 #define uid_t int
509 /* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
510 #if !HAVE_STDINT_H && !HAVE_INTTYPES_H
511 #define uintmax_t unsigned long
512 #endif
514 /* Define as 'fork' if 'vfork' does not work. */
515 /*#define vfork fork*/
517 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
518 /* #undef HAVE_SYS_WAIT_H */
520 /* Define to the installation directory for locales.  */
521 #define LOCALEDIR ""
524  * Refer to README.W32 for info on the following settings
525  */
529  * If you have a shell that does not grok 'sh -c quoted-command-line'
530  * correctly, you need this setting. Please see below for specific
531  * shell support.
532  */
533 /*#define BATCH_MODE_ONLY_SHELL 1 */
536  * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
537  * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
538  */
539 /*#define HAVE_CYGWIN_SHELL 1 */
542  * Define if you have the MKS tool set or shell. Do NOT define
543  * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
544  */
545 /*#define HAVE_MKS_SHELL 1 */
548  * Enforce the mutual exclusivity restriction.
549  */
550 #ifdef HAVE_MKS_SHELL
551 #undef BATCH_MODE_ONLY_SHELL
552 #endif
554 #ifdef HAVE_CYGWIN_SHELL
555 #undef BATCH_MODE_ONLY_SHELL
556 #endif