]> git.ipfire.org Git - thirdparty/git.git/blame - config.mak.uname
mingw: let's use gettext with MSYS2
[thirdparty/git.git] / config.mak.uname
CommitLineData
e1b6dbb5
JK
1# Platform specific Makefile tweaks based on uname detection
2
3uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
4uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
5uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
6uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
7uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
8uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
9
10ifdef MSVC
11 # avoid the MingW and Cygwin configuration sections
12 uname_S := Windows
13 uname_O := Windows
14endif
15
16# We choose to avoid "if .. else if .. else .. endif endif"
17# because maintaining the nesting to match is a pain. If
18# we had "elif" things would have been much nicer...
19
20ifeq ($(uname_M),x86_64)
21 XDL_FAST_HASH = YesPlease
22endif
23ifeq ($(uname_S),OSF1)
24 # Need this for u_short definitions et al
25 BASIC_CFLAGS += -D_OSF_SOURCE
26 SOCKLEN_T = int
27 NO_STRTOULL = YesPlease
28 NO_NSEC = YesPlease
29endif
30ifeq ($(uname_S),Linux)
61f76a36 31 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
32 NO_STRLCPY = YesPlease
33 NO_MKSTEMPS = YesPlease
34 HAVE_PATHS_H = YesPlease
35 LIBC_CONTAINS_LIBINTL = YesPlease
36 HAVE_DEV_TTY = YesPlease
148d6771 37 HAVE_CLOCK_GETTIME = YesPlease
a6c3c638 38 HAVE_CLOCK_MONOTONIC = YesPlease
0cc30e0e 39 HAVE_GETDELIM = YesPlease
e1b6dbb5
JK
40endif
41ifeq ($(uname_S),GNU/kFreeBSD)
61f76a36 42 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
43 NO_STRLCPY = YesPlease
44 NO_MKSTEMPS = YesPlease
45 HAVE_PATHS_H = YesPlease
46 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
47 LIBC_CONTAINS_LIBINTL = YesPlease
48endif
49ifeq ($(uname_S),UnixWare)
50 CC = cc
51 NEEDS_SOCKET = YesPlease
52 NEEDS_NSL = YesPlease
53 NEEDS_SSL_WITH_CRYPTO = YesPlease
54 NEEDS_LIBICONV = YesPlease
55 SHELL_PATH = /usr/local/bin/bash
56 NO_IPV6 = YesPlease
57 NO_HSTRERROR = YesPlease
58 NO_MKSTEMPS = YesPlease
59 BASIC_CFLAGS += -Kthread
60 BASIC_CFLAGS += -I/usr/local/include
61 BASIC_LDFLAGS += -L/usr/local/lib
62 INSTALL = ginstall
63 TAR = gtar
64 NO_STRCASESTR = YesPlease
65 NO_MEMMEM = YesPlease
66endif
67ifeq ($(uname_S),SCO_SV)
68 ifeq ($(uname_R),3.2)
69 CFLAGS = -O2
70 endif
71 ifeq ($(uname_R),5)
72 CC = cc
73 BASIC_CFLAGS += -Kthread
74 endif
75 NEEDS_SOCKET = YesPlease
76 NEEDS_NSL = YesPlease
77 NEEDS_SSL_WITH_CRYPTO = YesPlease
78 NEEDS_LIBICONV = YesPlease
79 SHELL_PATH = /usr/bin/bash
80 NO_IPV6 = YesPlease
81 NO_HSTRERROR = YesPlease
82 NO_MKSTEMPS = YesPlease
83 BASIC_CFLAGS += -I/usr/local/include
84 BASIC_LDFLAGS += -L/usr/local/lib
85 NO_STRCASESTR = YesPlease
86 NO_MEMMEM = YesPlease
87 INSTALL = ginstall
88 TAR = gtar
89endif
90ifeq ($(uname_S),Darwin)
91 NEEDS_CRYPTO_WITH_SSL = YesPlease
92 NEEDS_SSL_WITH_CRYPTO = YesPlease
93 NEEDS_LIBICONV = YesPlease
9eeff2f6
JH
94 # Note: $(uname_R) gives us the underlying Darwin version.
95 # - MacOS 10.0.* and MacOS 10.1.0 = Darwin 1.*
96 # - MacOS 10.x.* = Darwin (x+4).* for (1 <= x)
97 # i.e. "begins with [15678] and a dot" means "10.4.* or older".
e1b6dbb5
JK
98 ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
99 OLD_ICONV = UnfortunatelyYes
9c7a0bee 100 NO_APPLE_COMMON_CRYPTO = YesPlease
e1b6dbb5
JK
101 endif
102 ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
103 NO_STRLCPY = YesPlease
104 endif
4e368785
ES
105 ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1)
106 HAVE_GETDELIM = YesPlease
107 endif
e1b6dbb5
JK
108 NO_MEMMEM = YesPlease
109 USE_ST_TIMESPEC = YesPlease
110 HAVE_DEV_TTY = YesPlease
111 COMPAT_OBJS += compat/precompose_utf8.o
112 BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
a42643aa 113 BASIC_CFLAGS += -DPROTECT_HFS_DEFAULT=1
9529080d 114 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
115endif
116ifeq ($(uname_S),SunOS)
117 NEEDS_SOCKET = YesPlease
118 NEEDS_NSL = YesPlease
119 SHELL_PATH = /bin/bash
120 SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
61f76a36 121 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
122 NO_STRCASESTR = YesPlease
123 NO_MEMMEM = YesPlease
124 NO_MKDTEMP = YesPlease
125 NO_MKSTEMPS = YesPlease
126 NO_REGEX = YesPlease
e1b6dbb5
JK
127 NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
128 HAVE_DEV_TTY = YesPlease
129 ifeq ($(uname_R),5.6)
130 SOCKLEN_T = int
131 NO_HSTRERROR = YesPlease
132 NO_IPV6 = YesPlease
133 NO_SOCKADDR_STORAGE = YesPlease
134 NO_UNSETENV = YesPlease
135 NO_SETENV = YesPlease
136 NO_STRLCPY = YesPlease
137 NO_STRTOUMAX = YesPlease
138 GIT_TEST_CMP = cmp
139 endif
140 ifeq ($(uname_R),5.7)
141 NEEDS_RESOLV = YesPlease
142 NO_IPV6 = YesPlease
143 NO_SOCKADDR_STORAGE = YesPlease
144 NO_UNSETENV = YesPlease
145 NO_SETENV = YesPlease
146 NO_STRLCPY = YesPlease
147 NO_STRTOUMAX = YesPlease
148 GIT_TEST_CMP = cmp
149 endif
150 ifeq ($(uname_R),5.8)
151 NO_UNSETENV = YesPlease
152 NO_SETENV = YesPlease
153 NO_STRTOUMAX = YesPlease
154 GIT_TEST_CMP = cmp
155 endif
156 ifeq ($(uname_R),5.9)
157 NO_UNSETENV = YesPlease
158 NO_SETENV = YesPlease
159 NO_STRTOUMAX = YesPlease
160 GIT_TEST_CMP = cmp
161 endif
162 INSTALL = /usr/ucb/install
163 TAR = gtar
61f76a36 164 BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
e1b6dbb5
JK
165endif
166ifeq ($(uname_O),Cygwin)
167 ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
168 NO_D_TYPE_IN_DIRENT = YesPlease
e1b6dbb5
JK
169 NO_STRCASESTR = YesPlease
170 NO_MEMMEM = YesPlease
171 NO_MKSTEMPS = YesPlease
172 NO_SYMLINK_HEAD = YesPlease
173 NO_IPV6 = YesPlease
174 OLD_ICONV = UnfortunatelyYes
f593ef77
ML
175 # There are conflicting reports about this.
176 # On some boxes NO_MMAP is needed, and not so elsewhere.
177 # Try commenting this out if you suspect MMAP is more efficient
178 NO_MMAP = YesPlease
92f63d2b
ML
179 else
180 NO_REGEX = UnfortunatelyYes
e1b6dbb5 181 endif
61f76a36 182 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
183 NEEDS_LIBICONV = YesPlease
184 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
e1b6dbb5 185 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
e1b6dbb5 186 X = .exe
e1b6dbb5
JK
187 UNRELIABLE_FSTAT = UnfortunatelyYes
188 SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
189endif
190ifeq ($(uname_S),FreeBSD)
191 NEEDS_LIBICONV = YesPlease
192 OLD_ICONV = YesPlease
193 NO_MEMMEM = YesPlease
194 BASIC_CFLAGS += -I/usr/local/include
195 BASIC_LDFLAGS += -L/usr/local/lib
196 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
197 USE_ST_TIMESPEC = YesPlease
198 ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
199 PTHREAD_LIBS = -pthread
200 NO_UINTMAX_T = YesPlease
201 NO_STRTOUMAX = YesPlease
202 endif
203 PYTHON_PATH = /usr/local/bin/python
204 HAVE_PATHS_H = YesPlease
66547547 205 GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
9529080d 206 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
207endif
208ifeq ($(uname_S),OpenBSD)
209 NO_STRCASESTR = YesPlease
210 NO_MEMMEM = YesPlease
211 USE_ST_TIMESPEC = YesPlease
212 NEEDS_LIBICONV = YesPlease
213 BASIC_CFLAGS += -I/usr/local/include
214 BASIC_LDFLAGS += -L/usr/local/lib
215 HAVE_PATHS_H = YesPlease
9529080d 216 HAVE_BSD_SYSCTL = YesPlease
92164af9
BS
217endif
218ifeq ($(uname_S),MirBSD)
219 NO_STRCASESTR = YesPlease
220 NO_MEMMEM = YesPlease
221 USE_ST_TIMESPEC = YesPlease
222 NEEDS_LIBICONV = YesPlease
223 HAVE_PATHS_H = YesPlease
9529080d 224 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
225endif
226ifeq ($(uname_S),NetBSD)
227 ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
228 NEEDS_LIBICONV = YesPlease
229 endif
230 BASIC_CFLAGS += -I/usr/pkg/include
231 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
232 USE_ST_TIMESPEC = YesPlease
233 NO_MKSTEMPS = YesPlease
234 HAVE_PATHS_H = YesPlease
9529080d 235 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
236endif
237ifeq ($(uname_S),AIX)
238 DEFAULT_PAGER = more
239 NO_STRCASESTR = YesPlease
240 NO_MEMMEM = YesPlease
241 NO_MKDTEMP = YesPlease
242 NO_MKSTEMPS = YesPlease
243 NO_STRLCPY = YesPlease
244 NO_NSEC = YesPlease
245 FREAD_READS_DIRECTORIES = UnfortunatelyYes
246 INTERNAL_QSORT = UnfortunatelyYes
247 NEEDS_LIBICONV = YesPlease
248 BASIC_CFLAGS += -D_LARGE_FILES
249 ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
250 NO_PTHREADS = YesPlease
251 else
252 PTHREAD_LIBS = -lpthread
253 endif
254 ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
255 INLINE = ''
256 endif
257 GIT_TEST_CMP = cmp
258endif
259ifeq ($(uname_S),GNU)
260 # GNU/Hurd
61f76a36 261 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
262 NO_STRLCPY = YesPlease
263 NO_MKSTEMPS = YesPlease
264 HAVE_PATHS_H = YesPlease
265 LIBC_CONTAINS_LIBINTL = YesPlease
266endif
267ifeq ($(uname_S),IRIX)
268 NO_SETENV = YesPlease
269 NO_UNSETENV = YesPlease
270 NO_STRCASESTR = YesPlease
271 NO_MEMMEM = YesPlease
272 NO_MKSTEMPS = YesPlease
273 NO_MKDTEMP = YesPlease
274 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
275 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
276 # git dies with a segmentation fault when trying to access the first
277 # entry of a reflog. The conservative choice is made to always set
278 # NO_MMAP. If you suspect that your compiler is not affected by this
279 # issue, comment out the NO_MMAP statement.
280 NO_MMAP = YesPlease
281 NO_REGEX = YesPlease
e1b6dbb5
JK
282 SNPRINTF_RETURNS_BOGUS = YesPlease
283 SHELL_PATH = /usr/gnu/bin/bash
284 NEEDS_LIBGEN = YesPlease
285endif
286ifeq ($(uname_S),IRIX64)
287 NO_SETENV = YesPlease
288 NO_UNSETENV = YesPlease
289 NO_STRCASESTR = YesPlease
290 NO_MEMMEM = YesPlease
291 NO_MKSTEMPS = YesPlease
292 NO_MKDTEMP = YesPlease
293 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
294 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
295 # git dies with a segmentation fault when trying to access the first
296 # entry of a reflog. The conservative choice is made to always set
297 # NO_MMAP. If you suspect that your compiler is not affected by this
298 # issue, comment out the NO_MMAP statement.
299 NO_MMAP = YesPlease
300 NO_REGEX = YesPlease
e1b6dbb5
JK
301 SNPRINTF_RETURNS_BOGUS = YesPlease
302 SHELL_PATH = /usr/gnu/bin/bash
303 NEEDS_LIBGEN = YesPlease
304endif
305ifeq ($(uname_S),HP-UX)
306 INLINE = __inline
307 NO_IPV6 = YesPlease
308 NO_SETENV = YesPlease
309 NO_STRCASESTR = YesPlease
310 NO_MEMMEM = YesPlease
311 NO_MKSTEMPS = YesPlease
312 NO_STRLCPY = YesPlease
313 NO_MKDTEMP = YesPlease
314 NO_UNSETENV = YesPlease
315 NO_HSTRERROR = YesPlease
316 NO_SYS_SELECT_H = YesPlease
e1b6dbb5
JK
317 SNPRINTF_RETURNS_BOGUS = YesPlease
318 NO_NSEC = YesPlease
319 ifeq ($(uname_R),B.11.00)
320 NO_INET_NTOP = YesPlease
321 NO_INET_PTON = YesPlease
322 endif
323 ifeq ($(uname_R),B.10.20)
324 # Override HP-UX 11.x setting:
325 INLINE =
326 SOCKLEN_T = size_t
327 NO_PREAD = YesPlease
328 NO_INET_NTOP = YesPlease
329 NO_INET_PTON = YesPlease
330 endif
331 GIT_TEST_CMP = cmp
332endif
333ifeq ($(uname_S),Windows)
334 GIT_VERSION := $(GIT_VERSION).MSVC
335 pathsep = ;
61f76a36 336 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
337 NO_PREAD = YesPlease
338 NEEDS_CRYPTO_WITH_SSL = YesPlease
339 NO_LIBGEN_H = YesPlease
340 NO_POLL = YesPlease
341 NO_SYMLINK_HEAD = YesPlease
342 NO_IPV6 = YesPlease
343 NO_UNIX_SOCKETS = YesPlease
344 NO_SETENV = YesPlease
e1b6dbb5
JK
345 NO_STRCASESTR = YesPlease
346 NO_STRLCPY = YesPlease
e1b6dbb5
JK
347 NO_MEMMEM = YesPlease
348 # NEEDS_LIBICONV = YesPlease
349 NO_ICONV = YesPlease
350 NO_STRTOUMAX = YesPlease
e1b6dbb5
JK
351 NO_MKDTEMP = YesPlease
352 NO_MKSTEMPS = YesPlease
353 SNPRINTF_RETURNS_BOGUS = YesPlease
354 NO_SVN_TESTS = YesPlease
e1b6dbb5
JK
355 RUNTIME_PREFIX = YesPlease
356 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
357 NO_NSEC = YesPlease
358 USE_WIN32_MMAP = YesPlease
359 # USE_NED_ALLOCATOR = YesPlease
360 UNRELIABLE_FSTAT = UnfortunatelyYes
361 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
362 NO_REGEX = YesPlease
bad866a2 363 NO_GETTEXT = YesPlease
e1b6dbb5
JK
364 NO_PYTHON = YesPlease
365 BLK_SHA1 = YesPlease
e0492c5b 366 ETAGS_TARGET = ETAGS
4ab75274
RJ
367 NO_INET_PTON = YesPlease
368 NO_INET_NTOP = YesPlease
e1b6dbb5
JK
369 NO_POSIX_GOODIES = UnfortunatelyYes
370 NATIVE_CRLF = YesPlease
371 DEFAULT_HELP_FORMAT = html
372
373 CC = compat/vcbuild/scripts/clink.pl
374 AR = compat/vcbuild/scripts/lib.pl
375 CFLAGS =
376 BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
377 COMPAT_OBJS = compat/msvc.o compat/winansi.o \
378 compat/win32/pthread.o compat/win32/syslog.o \
379 compat/win32/dirent.o
61f76a36 380 COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
a08e803d 381 BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
4b623d80 382 EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
e1b6dbb5
JK
383 PTHREAD_LIBS =
384 lib =
2b4c6efc 385 BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
e1b6dbb5 386ifndef DEBUG
a08e803d 387 BASIC_CFLAGS += -GL -Os -MD
e1b6dbb5
JK
388 BASIC_LDFLAGS += -LTCG
389 AR += -LTCG
390else
a08e803d 391 BASIC_CFLAGS += -Zi -MDd
e1b6dbb5
JK
392endif
393 X = .exe
394endif
395ifeq ($(uname_S),Interix)
396 NO_INITGROUPS = YesPlease
397 NO_IPV6 = YesPlease
398 NO_MEMMEM = YesPlease
399 NO_MKDTEMP = YesPlease
400 NO_STRTOUMAX = YesPlease
401 NO_NSEC = YesPlease
402 NO_MKSTEMPS = YesPlease
403 ifeq ($(uname_R),3.5)
404 NO_INET_NTOP = YesPlease
405 NO_INET_PTON = YesPlease
406 NO_SOCKADDR_STORAGE = YesPlease
e1b6dbb5
JK
407 endif
408 ifeq ($(uname_R),5.2)
409 NO_INET_NTOP = YesPlease
410 NO_INET_PTON = YesPlease
411 NO_SOCKADDR_STORAGE = YesPlease
e1b6dbb5
JK
412 endif
413endif
414ifeq ($(uname_S),Minix)
415 NO_IPV6 = YesPlease
416 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
417 NO_NSEC = YesPlease
418 NEEDS_LIBGEN =
419 NEEDS_CRYPTO_WITH_SSL = YesPlease
420 NEEDS_IDN_WITH_CURL = YesPlease
421 NEEDS_SSL_WITH_CURL = YesPlease
422 NEEDS_RESOLV =
423 NO_HSTRERROR = YesPlease
424 NO_MMAP = YesPlease
425 NO_CURL =
426 NO_EXPAT =
427endif
428ifeq ($(uname_S),NONSTOP_KERNEL)
429 # Needs some C99 features, "inline" is just one of them.
430 # INLINE='' would just replace one set of warnings with another and
431 # still not compile in c89 mode, due to non-const array initializations.
432 CC = cc -c99
433 # Disable all optimization, seems to result in bad code, with -O or -O2
434 # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
435 # abends on "git push". Needs more investigation.
436 CFLAGS = -g -O0
437 # We'd want it to be here.
438 prefix = /usr/local
439 # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
440 PERL_PATH = ${prefix}/bin/perl
441 PYTHON_PATH = ${prefix}/bin/python
442
443 # As detected by './configure'.
444 # Missdetected, hence commented out, see below.
445 #NO_CURL = YesPlease
446 # Added manually, see above.
447 NEEDS_SSL_WITH_CURL = YesPlease
448 HAVE_LIBCHARSET_H = YesPlease
449 HAVE_STRINGS_H = YesPlease
450 NEEDS_LIBICONV = YesPlease
451 NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
452 NO_SYS_SELECT_H = UnfortunatelyYes
453 NO_D_TYPE_IN_DIRENT = YesPlease
454 NO_HSTRERROR = YesPlease
455 NO_STRCASESTR = YesPlease
e1b6dbb5
JK
456 NO_MEMMEM = YesPlease
457 NO_STRLCPY = YesPlease
458 NO_SETENV = YesPlease
459 NO_UNSETENV = YesPlease
460 NO_MKDTEMP = YesPlease
461 NO_MKSTEMPS = YesPlease
462 # Currently libiconv-1.9.1.
463 OLD_ICONV = UnfortunatelyYes
464 NO_REGEX = YesPlease
465 NO_PTHREADS = UnfortunatelyYes
466
467 # Not detected (nor checked for) by './configure'.
468 # We don't have SA_RESTART on NonStop, unfortunalety.
469 COMPAT_CFLAGS += -DSA_RESTART=0
470 # Apparently needed in compat/fnmatch/fnmatch.c.
471 COMPAT_CFLAGS += -DHAVE_STRING_H=1
472 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
473 NO_NSEC = YesPlease
474 NO_PREAD = YesPlease
475 NO_MMAP = YesPlease
476 NO_POLL = YesPlease
477 NO_INTPTR_T = UnfortunatelyYes
478 # Bug report 10-120822-4477 submitted to HP NonStop development.
479 MKDIR_WO_TRAILING_SLASH = YesPlease
480 # RFE 10-120912-4693 submitted to HP NonStop development.
481 NO_SETITIMER = UnfortunatelyYes
482 SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
483 SHELL_PATH = /usr/local/bin/bash
484 # as of H06.25/J06.14, we might better use this
485 #SHELL_PATH = /usr/coreutils/bin/bash
486endif
487ifneq (,$(findstring MINGW,$(uname_S)))
488 pathsep = ;
22f4c27e 489 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
490 NO_PREAD = YesPlease
491 NEEDS_CRYPTO_WITH_SSL = YesPlease
492 NO_LIBGEN_H = YesPlease
493 NO_POLL = YesPlease
494 NO_SYMLINK_HEAD = YesPlease
495 NO_UNIX_SOCKETS = YesPlease
496 NO_SETENV = YesPlease
e1b6dbb5
JK
497 NO_STRCASESTR = YesPlease
498 NO_STRLCPY = YesPlease
e1b6dbb5
JK
499 NO_MEMMEM = YesPlease
500 NEEDS_LIBICONV = YesPlease
e1b6dbb5
JK
501 NO_STRTOUMAX = YesPlease
502 NO_MKDTEMP = YesPlease
503 NO_MKSTEMPS = YesPlease
504 NO_SVN_TESTS = YesPlease
505 NO_PERL_MAKEMAKER = YesPlease
506 RUNTIME_PREFIX = YesPlease
507 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
508 NO_NSEC = YesPlease
509 USE_WIN32_MMAP = YesPlease
510 USE_NED_ALLOCATOR = YesPlease
511 UNRELIABLE_FSTAT = UnfortunatelyYes
512 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
513 NO_REGEX = YesPlease
514 NO_PYTHON = YesPlease
515 BLK_SHA1 = YesPlease
516 ETAGS_TARGET = ETAGS
517 NO_INET_PTON = YesPlease
518 NO_INET_NTOP = YesPlease
519 NO_POSIX_GOODIES = UnfortunatelyYes
65db0443 520 DEFAULT_HELP_FORMAT = html
7b40ae86 521 COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
e1b6dbb5
JK
522 COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
523 COMPAT_OBJS += compat/mingw.o compat/winansi.o \
524 compat/win32/pthread.o compat/win32/syslog.o \
525 compat/win32/dirent.o
2b4c6efc 526 BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
e1b6dbb5 527 EXTLIBS += -lws2_32
ce39c2e0 528 GITLIBS += git.res
e1b6dbb5 529 PTHREAD_LIBS =
ce39c2e0 530 RC = windres -O coff
95f31e9a 531 NATIVE_CRLF = YesPlease
e1b6dbb5
JK
532 X = .exe
533 SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
534ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
535 htmldir = doc/git/html/
536 prefix =
537 INSTALL = /bin/install
538 EXTLIBS += /mingw/lib/libz.a
539 NO_R_TO_GCC_LINKER = YesPlease
540 INTERNAL_QSORT = YesPlease
541 HAVE_LIBCHARSET_H = YesPlease
ca354871 542 NO_GETTEXT = YesPlease
df5218b4 543 COMPAT_CLFAGS += -D__USE_MINGW_ACCESS
e1b6dbb5 544else
df5218b4
JS
545 ifeq ($(shell expr "$(uname_R)" : '2\.'),2)
546 # MSys2
7b40ae86
JS
547 prefix = /usr/
548 ifeq (MINGW32,$(MSYSTEM))
549 prefix = /mingw32
550 endif
551 ifeq (MINGW64,$(MSYSTEM))
552 prefix = /mingw64
553 else
554 COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
555 BASIC_LDFLAGS += -Wl,--large-address-aware
556 endif
df5218b4 557 CC = gcc
df5218b4
JS
558 COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0
559 INSTALL = /bin/install
560 NO_R_TO_GCC_LINKER = YesPlease
561 INTERNAL_QSORT = YesPlease
562 HAVE_LIBCHARSET_H = YesPlease
f9206ce2 563 NO_GETTEXT =
df5218b4
JS
564 USE_LIBPCRE= YesPlease
565 NO_CURL =
566 USE_NED_ALLOCATOR = YesPlease
567 else
568 COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
569 NO_CURL = YesPlease
570 endif
e1b6dbb5
JK
571endif
572endif
573ifeq ($(uname_S),QNX)
574 COMPAT_CFLAGS += -DSA_RESTART=0
081fd8d0 575 EXPAT_NEEDS_XMLPARSE_H = YesPlease
e1b6dbb5
JK
576 HAVE_STRINGS_H = YesPlease
577 NEEDS_SOCKET = YesPlease
e1b6dbb5
JK
578 NO_GETPAGESIZE = YesPlease
579 NO_ICONV = YesPlease
580 NO_MEMMEM = YesPlease
581 NO_MKDTEMP = YesPlease
582 NO_MKSTEMPS = YesPlease
583 NO_NSEC = YesPlease
584 NO_PTHREADS = YesPlease
585 NO_R_TO_GCC_LINKER = YesPlease
586 NO_STRCASESTR = YesPlease
587 NO_STRLCPY = YesPlease
588endif