1 /* config.h.W32 -- hand-massaged config.h file for Windows builds -*-C-*-
3 Copyright (C) 1996-2020 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
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. */
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 */
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.
36 /* #undef CRAY_STACKSEG_END */
38 /* Define to 1 if using 'alloca.c'. */
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>. */
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.
56 /* #undef GETLOADAVG_PRIVILEGED */
58 /* Define to 1 if you have 'alloca', as a function or macro. */
61 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
63 /* #undef HAVE_ALLOCA_H */
65 /* Define to 1 if you have the 'atexit' function. */
68 /* Use case insensitive file names */
69 /* #undef HAVE_CASE_INSENSITIVE_FS */
71 /* Define to 1 if you have the clock_gettime function. */
72 /* #undef HAVE_CLOCK_GETTIME */
74 /* Embed GNU Guile support. Windows build sets this on the
75 compilation command line. */
76 /* #undef HAVE_GUILE */
78 /* Define if the GNU dcgettext() function is already present or preinstalled.
80 /* #undef HAVE_DCGETTEXT */
82 /* Define to 1 if you have the declaration of 'bsd_signal', and to 0 if you
84 #define HAVE_DECL_BSD_SIGNAL 0
86 /* Define to 1 if you have the declaration of 'sys_siglist', and to 0 if you
88 #define HAVE_DECL_SYS_SIGLIST 0
90 /* Define to 1 if you have the declaration of '_sys_siglist', and to 0 if you
92 #define HAVE_DECL__SYS_SIGLIST 0
94 /* Define to 1 if you have the declaration of '__sys_siglist', and to 0 if you
96 #define HAVE_DECL___SYS_SIGLIST 0
98 /* Define to 1 if you have the <dirent.h> header file, and it defines 'DIR'.
100 #define HAVE_DIRENT_H 1
102 /* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
105 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
106 # define HAVE_DIRECT_H 1
109 /* Use platform specific coding */
110 #define HAVE_DOS_PATHS 1
112 /* Define to 1 if you have the 'dup2' function. */
115 /* Define to 1 if you have the <fcntl.h> header file. */
116 #define HAVE_FCNTL_H 1
118 /* Define to 1 if you have the 'fdopen' function. */
120 #define HAVE_FDOPEN 1
123 /* Define to 1 if you have the 'fileno' function. */
124 #define HAVE_FILENO 1
126 /* Define to 1 if you have the 'getcwd' function. */
127 #define HAVE_GETCWD 1
129 /* Define to 1 if you have the 'getgroups' function. */
130 /* #undef HAVE_GETGROUPS */
132 /* Define to 1 if you have the 'gethostbyname' function. */
133 /* #undef HAVE_GETHOSTBYNAME */
135 /* Define to 1 if you have the 'gethostname' function. */
136 /* #undef HAVE_GETHOSTNAME */
138 /* Define to 1 if you have the 'getloadavg' function. */
139 /* #undef HAVE_GETLOADAVG */
141 /* Define to 1 if you have the 'getrlimit' function. */
142 /* #undef HAVE_GETRLIMIT */
144 /* Define if the GNU gettext() function is already present or preinstalled. */
145 /* #undef HAVE_GETTEXT */
147 /* Define to 1 if you have a standard gettimeofday function */
149 #define HAVE_GETTIMEOFDAY 1
152 /* Define if you have the iconv() function. */
153 /* #undef HAVE_ICONV */
155 /* Define to 1 if you have the <inttypes.h> header file. */
157 #define HAVE_INTTYPES_H 1
160 /* Define to 1 if you have the 'dgc' library (-ldgc). */
161 /* #undef HAVE_LIBDGC */
163 /* Define to 1 if you have the 'kstat' library (-lkstat). */
164 /* #undef HAVE_LIBKSTAT */
166 /* Define to 1 if you have the <limits.h> header file. */
167 #define HAVE_LIMITS_H 1
169 /* Define to 1 if you have the <locale.h> header file. */
170 /*#define HAVE_LOCALE_H 1*/
172 /* Define to 1 if you have the 'lstat' function. */
173 /* #undef HAVE_LSTAT */
175 /* Define to 1 if you have the <mach/mach.h> header file. */
176 /* #undef HAVE_MACH_MACH_H */
178 /* Define to 1 if you have the <memory.h> header file. */
179 #define HAVE_MEMORY_H 1
181 /* Define to 1 if you have the 'mkstemp' function. */
182 /* #undef HAVE_MKSTEMP */
184 /* Define to 1 if you have the 'mktemp' function. */
185 #define HAVE_MKTEMP 1
187 /* Define to 1 if you have the <ndir.h> header file, and it defines 'DIR'. */
188 /* #undef HAVE_NDIR_H */
190 /* Define to 1 if you have the <nlist.h> header file. */
191 /* #undef HAVE_NLIST_H */
193 /* Define to 1 if you have the 'pipe' function. */
194 /* #undef HAVE_PIPE */
196 /* Define to 1 if you have the 'pstat_getdynamic' function. */
197 /* #undef HAVE_PSTAT_GETDYNAMIC */
199 /* Define to 1 if you have the 'readlink' function. */
200 /* #undef HAVE_READLINK */
202 /* Define to 1 if you have the 'realpath' function. */
203 /* #undef HAVE_REALPATH */
205 /* Define to 1 if <signal.h> defines the SA_RESTART constant. */
206 /* #undef HAVE_SA_RESTART */
208 /* Define to 1 if you have the 'setegid' function. */
209 /* #undef HAVE_SETEGID */
211 /* Define to 1 if you have the 'seteuid' function. */
212 /* #undef HAVE_SETEUID */
214 /* Define to 1 if you have the 'setlinebuf' function. */
215 /* #undef HAVE_SETLINEBUF */
217 /* Define to 1 if you have the 'setlocale' function. */
218 /*#define HAVE_SETLOCALE 1*/
220 /* Define to 1 if you have the 'setregid' function. */
221 /* #undef HAVE_SETREGID */
223 /* Define to 1 if you have the 'setreuid' function. */
224 /* #undef HAVE_SETREUID */
226 /* Define to 1 if you have the 'setrlimit' function. */
227 /* #undef HAVE_SETRLIMIT */
229 /* Define to 1 if you have the 'setvbuf' function. */
230 #define HAVE_SETVBUF 1
232 /* Define to 1 if you have the 'sigaction' function. */
233 /* #undef HAVE_SIGACTION */
235 /* Define to 1 if you have the 'sigsetmask' function. */
236 /* #undef HAVE_SIGSETMASK */
238 /* Define to 1 if you have the 'socket' function. */
239 /* #undef HAVE_SOCKET */
241 /* Define to 1 if you have the <stdint.h> header file. */
243 #define HAVE_STDINT_H 1
246 /* Define to 1 if you have the <stdlib.h> header file. */
247 #define HAVE_STDLIB_H 1
249 /* Define to 1 if you have the 'strcasecmp' function. */
251 #define HAVE_STRCASECMP 1
254 /* Define to 1 if you have the 'strcmpi' function. */
255 #define HAVE_STRCMPI 1
257 /* Define to 1 if you have the 'strcoll' function and it is properly defined.
259 #define HAVE_STRCOLL 1
261 /* Define to 1 if you have the 'strdup' function. */
262 #define HAVE_STRDUP 1
264 /* Define to 1 if you have the 'stricmp' function. */
265 #define HAVE_STRICMP 1
267 /* Define to 1 if you have the <strings.h> header file. */
269 #define HAVE_STRINGS_H 1
272 /* Define to 1 if you have the <string.h> header file. */
273 #define HAVE_STRING_H 1
275 /* Define to 1 if you have the 'strncasecmp' function. */
277 #define HAVE_STRNCASECMP 1
280 /* Define to 1 if you have the 'strncmpi' function. */
281 /* #undef HAVE_STRNCMPI */
283 /* Define to 1 if you have the 'strndup' function. */
284 /* #undef HAVE_STRNDUP */
286 /* Define to 1 if you have the 'strnicmp' function. */
288 #define HAVE_STRNICMP 1
291 /* Define to 1 if you have the 'strsignal' function. */
292 /* #undef HAVE_STRSIGNAL */
294 /* Define to 1 if `d_type' is a member of `struct dirent'. */
295 /* SV 57152: MinGW64 version of dirent doesn't support d_type. */
297 # define HAVE_STRUCT_DIRENT_D_TYPE 1
300 /* Define to 1 if you have the `isatty' function. */
301 #define HAVE_ISATTY 1
303 /* Define to 1 if you have the `ttyname' function. */
304 #define HAVE_TTYNAME 1
307 /* Define to 1 if you have the `umask' function. */
309 # define HAVE_UMASK 1
312 /* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */
313 /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
315 /* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
317 /* #undef HAVE_SYS_DIR_H */
319 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
321 /* #undef HAVE_SYS_NDIR_H */
323 /* Define to 1 if you have the <sys/param.h> header file. */
325 #define HAVE_SYS_PARAM_H 1
328 /* Define to 1 if you have the <sys/resource.h> header file. */
329 /* #undef HAVE_SYS_RESOURCE_H */
331 /* Define to 1 if you have the <sys/stat.h> header file. */
332 #define HAVE_SYS_STAT_H 1
334 /* Define to 1 if you have the <sys/timeb.h> header file. */
335 #define HAVE_SYS_TIMEB_H 1
337 /* Define to 1 if you have the <sys/time.h> header file. */
339 #define HAVE_SYS_TIME_H 1
342 /* Define to 1 if you have the <sys/types.h> header file. */
343 #define HAVE_SYS_TYPES_H 1
345 /* Define to 1 if you have the <sys/wait.h> header file. */
346 /* #undef HAVE_SYS_WAIT_H */
348 /* Define to 1 if you have the \'union wait' type in <sys/wait.h>. */
349 /* #undef HAVE_UNION_WAIT */
351 /* Define to 1 if you have the <unistd.h> header file. */
353 #define HAVE_UNISTD_H 1
356 /* Define to 1 if you have the 'wait3' function. */
357 /* #undef HAVE_WAIT3 */
359 /* Define to 1 if you have the 'waitpid' function. */
360 /* #undef HAVE_WAITPID */
362 /* Build host information. */
363 #define MAKE_HOST "Windows32"
365 /* Define to 1 to enable job server support in GNU make. */
366 #define MAKE_JOBSERVER 1
368 /* Define to 1 to enable 'load' support in GNU make. */
371 /* Define to 1 to enable symbolic link timestamp checking. */
372 /* #undef MAKE_SYMLINKS */
374 /* Define to 1 if your 'struct nlist' has an 'n_un' member. Obsolete, depend
375 on 'HAVE_STRUCT_NLIST_N_UN_N_NAME */
376 /* #undef NLIST_NAME_UNION */
378 /* Define to 1 if struct nlist.n_name is a pointer rather than an array. */
379 /* #undef NLIST_STRUCT */
381 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
382 /* #undef NO_MINUS_C_MINUS_O */
384 /* Name of this package (needed by automake) */
385 #define PACKAGE "make"
387 /* Define to the address where bug reports for this package should be sent. */
388 #define PACKAGE_BUGREPORT "bug-make@gnu.org"
390 /* Define to the full name of this package. */
391 #define PACKAGE_NAME "GNU make"
393 /* Define to the home page for this package. */
394 #define PACKAGE_URL "http://www.gnu.org/software/make/"
396 /* Define to the version of this package. */
397 #define PACKAGE_VERSION "4.3"
399 /* Define to the character that separates directories in PATH. */
400 #define PATH_SEPARATOR_CHAR ';'
402 /* Define as the return type of signal handlers ('int' or 'void'). */
403 #define RETSIGTYPE void
405 /* Define to the name of the SCCS 'get' command. */
406 #define SCCS_GET "echo no sccs get"
408 /* Define this if the SCCS 'get' command understands the '-G<file>' option. */
409 /* #undef SCCS_GET_MINUS_G */
411 /* Define to 1 if the 'setvbuf' function takes the buffering type as its
412 second argument and the buffer pointer as the third, as on System V before
414 /* #undef SETVBUF_REVERSED */
416 /* If using the C implementation of alloca, define if you know the
417 direction of stack growth for your system; otherwise it will be
418 automatically deduced at run time.
419 STACK_DIRECTION > 0 => grows toward higher addresses
420 STACK_DIRECTION < 0 => grows toward lower addresses
421 STACK_DIRECTION = 0 => direction of growth unknown */
422 /* #undef STACK_DIRECTION */
424 /* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */
425 /* #undef STAT_MACROS_BROKEN */
427 /* Define to 1 if you have the ANSI C header files. */
428 #define STDC_HEADERS 1
430 /* Define if struct stat contains a nanoseconds field */
431 /* #undef ST_MTIM_NSEC */
433 /* Define to 1 on System V Release 4. */
436 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
438 #define TIME_WITH_SYS_TIME 1
441 /* Define to 1 for Encore UMAX. */
444 /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
448 /* Version number of package */
449 #define VERSION "4.3"
451 /* Define if using the dmalloc debugging malloc package */
452 /* #undef WITH_DMALLOC */
454 /* Define to 1 if on AIX 3.
455 System headers sometimes define this.
456 We just want to avoid a redefinition error message. */
458 /* # undef _ALL_SOURCE */
461 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
462 significant byte first (like Motorola and SPARC, unlike Intel). */
463 /* # undef WORDS_BIGENDIAN */
465 /* Number of bits in a file offset, on hosts where this is settable. */
466 /* #undef _FILE_OFFSET_BITS */
468 /* Define for large files, on AIX-style hosts. */
469 /* #undef _LARGE_FILES */
471 /* Define to 1 if on MINIX. */
474 /* Define to 2 if the system does not provide POSIX.1 features except with
476 /* #undef _POSIX_1_SOURCE */
478 /* Define to 1 if you need to in order for 'stat' and other things to work. */
479 /* #undef _POSIX_SOURCE */
481 /* Define to empty if 'const' does not conform to ANSI C. */
485 # undef __USE_MINGW_ANSI_STDIO
486 # define __USE_MINGW_ANSI_STDIO 1
489 #include <sys/types.h>
491 /* Define to 'int' if <sys/types.h> doesn't define. */
494 /* Define to 'int' if <sys/types.h> does not define. */
495 /* GCC 4.x reportedly defines pid_t. */
498 #define pid_t __int64
504 /* Define to `int' if <sys/types.h> does not define. */
507 /* Define to 'int' if <sys/types.h> doesn't define. */
510 /* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
511 #if !HAVE_STDINT_H && !HAVE_INTTYPES_H
512 #define uintmax_t unsigned long
515 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
516 /* #undef HAVE_SYS_WAIT_H */
518 /* Define to the installation directory for locales. */
522 * Refer to README.W32 for info on the following settings
527 * If you have a shell that does not grok 'sh -c quoted-command-line'
528 * correctly, you need this setting. Please see below for specific
531 /*#define BATCH_MODE_ONLY_SHELL 1 */
534 * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
535 * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
537 /*#define HAVE_CYGWIN_SHELL 1 */
540 * Define if you have the MKS tool set or shell. Do NOT define
541 * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
543 /*#define HAVE_MKS_SHELL 1 */
546 * Enforce the mutual exclusivity restriction.
548 #ifdef HAVE_MKS_SHELL
549 #undef BATCH_MODE_ONLY_SHELL
552 #ifdef HAVE_CYGWIN_SHELL
553 #undef BATCH_MODE_ONLY_SHELL