]> git.ipfire.org Git - thirdparty/git.git/blame - config.mak.uname
t1430: add another refs-escape test
[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
105 NO_MEMMEM = YesPlease
106 USE_ST_TIMESPEC = YesPlease
107 HAVE_DEV_TTY = YesPlease
108 COMPAT_OBJS += compat/precompose_utf8.o
109 BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
a42643aa 110 BASIC_CFLAGS += -DPROTECT_HFS_DEFAULT=1
9529080d 111 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
112endif
113ifeq ($(uname_S),SunOS)
114 NEEDS_SOCKET = YesPlease
115 NEEDS_NSL = YesPlease
116 SHELL_PATH = /bin/bash
117 SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
61f76a36 118 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
119 NO_STRCASESTR = YesPlease
120 NO_MEMMEM = YesPlease
121 NO_MKDTEMP = YesPlease
122 NO_MKSTEMPS = YesPlease
123 NO_REGEX = YesPlease
e1b6dbb5
JK
124 NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
125 HAVE_DEV_TTY = YesPlease
126 ifeq ($(uname_R),5.6)
127 SOCKLEN_T = int
128 NO_HSTRERROR = YesPlease
129 NO_IPV6 = YesPlease
130 NO_SOCKADDR_STORAGE = YesPlease
131 NO_UNSETENV = YesPlease
132 NO_SETENV = YesPlease
133 NO_STRLCPY = YesPlease
134 NO_STRTOUMAX = YesPlease
135 GIT_TEST_CMP = cmp
136 endif
137 ifeq ($(uname_R),5.7)
138 NEEDS_RESOLV = YesPlease
139 NO_IPV6 = YesPlease
140 NO_SOCKADDR_STORAGE = YesPlease
141 NO_UNSETENV = YesPlease
142 NO_SETENV = YesPlease
143 NO_STRLCPY = YesPlease
144 NO_STRTOUMAX = YesPlease
145 GIT_TEST_CMP = cmp
146 endif
147 ifeq ($(uname_R),5.8)
148 NO_UNSETENV = YesPlease
149 NO_SETENV = YesPlease
150 NO_STRTOUMAX = YesPlease
151 GIT_TEST_CMP = cmp
152 endif
153 ifeq ($(uname_R),5.9)
154 NO_UNSETENV = YesPlease
155 NO_SETENV = YesPlease
156 NO_STRTOUMAX = YesPlease
157 GIT_TEST_CMP = cmp
158 endif
159 INSTALL = /usr/ucb/install
160 TAR = gtar
61f76a36 161 BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
e1b6dbb5
JK
162endif
163ifeq ($(uname_O),Cygwin)
164 ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
165 NO_D_TYPE_IN_DIRENT = YesPlease
166 NO_D_INO_IN_DIRENT = YesPlease
167 NO_STRCASESTR = YesPlease
168 NO_MEMMEM = YesPlease
169 NO_MKSTEMPS = YesPlease
170 NO_SYMLINK_HEAD = YesPlease
171 NO_IPV6 = YesPlease
172 OLD_ICONV = UnfortunatelyYes
f593ef77
ML
173 # There are conflicting reports about this.
174 # On some boxes NO_MMAP is needed, and not so elsewhere.
175 # Try commenting this out if you suspect MMAP is more efficient
176 NO_MMAP = YesPlease
92f63d2b
ML
177 else
178 NO_REGEX = UnfortunatelyYes
e1b6dbb5 179 endif
61f76a36 180 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
181 NEEDS_LIBICONV = YesPlease
182 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
e1b6dbb5 183 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
e1b6dbb5 184 X = .exe
e1b6dbb5
JK
185 UNRELIABLE_FSTAT = UnfortunatelyYes
186 SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
187endif
188ifeq ($(uname_S),FreeBSD)
189 NEEDS_LIBICONV = YesPlease
190 OLD_ICONV = YesPlease
191 NO_MEMMEM = YesPlease
192 BASIC_CFLAGS += -I/usr/local/include
193 BASIC_LDFLAGS += -L/usr/local/lib
194 DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
195 USE_ST_TIMESPEC = YesPlease
196 ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
197 PTHREAD_LIBS = -pthread
198 NO_UINTMAX_T = YesPlease
199 NO_STRTOUMAX = YesPlease
200 endif
201 PYTHON_PATH = /usr/local/bin/python
202 HAVE_PATHS_H = YesPlease
66547547 203 GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
9529080d 204 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
205endif
206ifeq ($(uname_S),OpenBSD)
207 NO_STRCASESTR = YesPlease
208 NO_MEMMEM = YesPlease
209 USE_ST_TIMESPEC = YesPlease
210 NEEDS_LIBICONV = YesPlease
211 BASIC_CFLAGS += -I/usr/local/include
212 BASIC_LDFLAGS += -L/usr/local/lib
213 HAVE_PATHS_H = YesPlease
9529080d 214 HAVE_BSD_SYSCTL = YesPlease
92164af9
BS
215endif
216ifeq ($(uname_S),MirBSD)
217 NO_STRCASESTR = YesPlease
218 NO_MEMMEM = YesPlease
219 USE_ST_TIMESPEC = YesPlease
220 NEEDS_LIBICONV = YesPlease
221 HAVE_PATHS_H = YesPlease
9529080d 222 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
223endif
224ifeq ($(uname_S),NetBSD)
225 ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
226 NEEDS_LIBICONV = YesPlease
227 endif
228 BASIC_CFLAGS += -I/usr/pkg/include
229 BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
230 USE_ST_TIMESPEC = YesPlease
231 NO_MKSTEMPS = YesPlease
232 HAVE_PATHS_H = YesPlease
9529080d 233 HAVE_BSD_SYSCTL = YesPlease
e1b6dbb5
JK
234endif
235ifeq ($(uname_S),AIX)
236 DEFAULT_PAGER = more
237 NO_STRCASESTR = YesPlease
238 NO_MEMMEM = YesPlease
239 NO_MKDTEMP = YesPlease
240 NO_MKSTEMPS = YesPlease
241 NO_STRLCPY = YesPlease
242 NO_NSEC = YesPlease
243 FREAD_READS_DIRECTORIES = UnfortunatelyYes
244 INTERNAL_QSORT = UnfortunatelyYes
245 NEEDS_LIBICONV = YesPlease
246 BASIC_CFLAGS += -D_LARGE_FILES
247 ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
248 NO_PTHREADS = YesPlease
249 else
250 PTHREAD_LIBS = -lpthread
251 endif
252 ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
253 INLINE = ''
254 endif
255 GIT_TEST_CMP = cmp
256endif
257ifeq ($(uname_S),GNU)
258 # GNU/Hurd
61f76a36 259 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
260 NO_STRLCPY = YesPlease
261 NO_MKSTEMPS = YesPlease
262 HAVE_PATHS_H = YesPlease
263 LIBC_CONTAINS_LIBINTL = YesPlease
264endif
265ifeq ($(uname_S),IRIX)
266 NO_SETENV = YesPlease
267 NO_UNSETENV = YesPlease
268 NO_STRCASESTR = YesPlease
269 NO_MEMMEM = YesPlease
270 NO_MKSTEMPS = YesPlease
271 NO_MKDTEMP = YesPlease
272 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
273 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
274 # git dies with a segmentation fault when trying to access the first
275 # entry of a reflog. The conservative choice is made to always set
276 # NO_MMAP. If you suspect that your compiler is not affected by this
277 # issue, comment out the NO_MMAP statement.
278 NO_MMAP = YesPlease
279 NO_REGEX = YesPlease
e1b6dbb5
JK
280 SNPRINTF_RETURNS_BOGUS = YesPlease
281 SHELL_PATH = /usr/gnu/bin/bash
282 NEEDS_LIBGEN = YesPlease
283endif
284ifeq ($(uname_S),IRIX64)
285 NO_SETENV = YesPlease
286 NO_UNSETENV = YesPlease
287 NO_STRCASESTR = YesPlease
288 NO_MEMMEM = YesPlease
289 NO_MKSTEMPS = YesPlease
290 NO_MKDTEMP = YesPlease
291 # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
292 # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
293 # git dies with a segmentation fault when trying to access the first
294 # entry of a reflog. The conservative choice is made to always set
295 # NO_MMAP. If you suspect that your compiler is not affected by this
296 # issue, comment out the NO_MMAP statement.
297 NO_MMAP = YesPlease
298 NO_REGEX = YesPlease
e1b6dbb5
JK
299 SNPRINTF_RETURNS_BOGUS = YesPlease
300 SHELL_PATH = /usr/gnu/bin/bash
301 NEEDS_LIBGEN = YesPlease
302endif
303ifeq ($(uname_S),HP-UX)
304 INLINE = __inline
305 NO_IPV6 = YesPlease
306 NO_SETENV = YesPlease
307 NO_STRCASESTR = YesPlease
308 NO_MEMMEM = YesPlease
309 NO_MKSTEMPS = YesPlease
310 NO_STRLCPY = YesPlease
311 NO_MKDTEMP = YesPlease
312 NO_UNSETENV = YesPlease
313 NO_HSTRERROR = YesPlease
314 NO_SYS_SELECT_H = YesPlease
e1b6dbb5
JK
315 SNPRINTF_RETURNS_BOGUS = YesPlease
316 NO_NSEC = YesPlease
317 ifeq ($(uname_R),B.11.00)
318 NO_INET_NTOP = YesPlease
319 NO_INET_PTON = YesPlease
320 endif
321 ifeq ($(uname_R),B.10.20)
322 # Override HP-UX 11.x setting:
323 INLINE =
324 SOCKLEN_T = size_t
325 NO_PREAD = YesPlease
326 NO_INET_NTOP = YesPlease
327 NO_INET_PTON = YesPlease
328 endif
329 GIT_TEST_CMP = cmp
330endif
331ifeq ($(uname_S),Windows)
332 GIT_VERSION := $(GIT_VERSION).MSVC
333 pathsep = ;
61f76a36 334 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
335 NO_PREAD = YesPlease
336 NEEDS_CRYPTO_WITH_SSL = YesPlease
337 NO_LIBGEN_H = YesPlease
338 NO_POLL = YesPlease
339 NO_SYMLINK_HEAD = YesPlease
340 NO_IPV6 = YesPlease
341 NO_UNIX_SOCKETS = YesPlease
342 NO_SETENV = YesPlease
e1b6dbb5
JK
343 NO_STRCASESTR = YesPlease
344 NO_STRLCPY = YesPlease
e1b6dbb5
JK
345 NO_MEMMEM = YesPlease
346 # NEEDS_LIBICONV = YesPlease
347 NO_ICONV = YesPlease
348 NO_STRTOUMAX = YesPlease
e1b6dbb5
JK
349 NO_MKDTEMP = YesPlease
350 NO_MKSTEMPS = YesPlease
351 SNPRINTF_RETURNS_BOGUS = YesPlease
352 NO_SVN_TESTS = YesPlease
e1b6dbb5
JK
353 RUNTIME_PREFIX = YesPlease
354 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
355 NO_NSEC = YesPlease
356 USE_WIN32_MMAP = YesPlease
357 # USE_NED_ALLOCATOR = YesPlease
358 UNRELIABLE_FSTAT = UnfortunatelyYes
359 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
360 NO_REGEX = YesPlease
bad866a2 361 NO_GETTEXT = YesPlease
e1b6dbb5
JK
362 NO_PYTHON = YesPlease
363 BLK_SHA1 = YesPlease
e0492c5b 364 ETAGS_TARGET = ETAGS
4ab75274
RJ
365 NO_INET_PTON = YesPlease
366 NO_INET_NTOP = YesPlease
e1b6dbb5
JK
367 NO_POSIX_GOODIES = UnfortunatelyYes
368 NATIVE_CRLF = YesPlease
369 DEFAULT_HELP_FORMAT = html
1d94c403 370 NO_D_INO_IN_DIRENT = YesPlease
e1b6dbb5
JK
371
372 CC = compat/vcbuild/scripts/clink.pl
373 AR = compat/vcbuild/scripts/lib.pl
374 CFLAGS =
375 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
376 COMPAT_OBJS = compat/msvc.o compat/winansi.o \
377 compat/win32/pthread.o compat/win32/syslog.o \
378 compat/win32/dirent.o
61f76a36 379 COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
a08e803d 380 BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
4b623d80 381 EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
e1b6dbb5
JK
382 PTHREAD_LIBS =
383 lib =
2b4c6efc 384 BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
e1b6dbb5 385ifndef DEBUG
a08e803d 386 BASIC_CFLAGS += -GL -Os -MD
e1b6dbb5
JK
387 BASIC_LDFLAGS += -LTCG
388 AR += -LTCG
389else
a08e803d 390 BASIC_CFLAGS += -Zi -MDd
e1b6dbb5
JK
391endif
392 X = .exe
393endif
394ifeq ($(uname_S),Interix)
395 NO_INITGROUPS = YesPlease
396 NO_IPV6 = YesPlease
397 NO_MEMMEM = YesPlease
398 NO_MKDTEMP = YesPlease
399 NO_STRTOUMAX = YesPlease
400 NO_NSEC = YesPlease
401 NO_MKSTEMPS = YesPlease
402 ifeq ($(uname_R),3.5)
403 NO_INET_NTOP = YesPlease
404 NO_INET_PTON = YesPlease
405 NO_SOCKADDR_STORAGE = YesPlease
e1b6dbb5
JK
406 endif
407 ifeq ($(uname_R),5.2)
408 NO_INET_NTOP = YesPlease
409 NO_INET_PTON = YesPlease
410 NO_SOCKADDR_STORAGE = YesPlease
e1b6dbb5
JK
411 endif
412endif
413ifeq ($(uname_S),Minix)
414 NO_IPV6 = YesPlease
415 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
416 NO_NSEC = YesPlease
417 NEEDS_LIBGEN =
418 NEEDS_CRYPTO_WITH_SSL = YesPlease
419 NEEDS_IDN_WITH_CURL = YesPlease
420 NEEDS_SSL_WITH_CURL = YesPlease
421 NEEDS_RESOLV =
422 NO_HSTRERROR = YesPlease
423 NO_MMAP = YesPlease
424 NO_CURL =
425 NO_EXPAT =
426endif
427ifeq ($(uname_S),NONSTOP_KERNEL)
428 # Needs some C99 features, "inline" is just one of them.
429 # INLINE='' would just replace one set of warnings with another and
430 # still not compile in c89 mode, due to non-const array initializations.
431 CC = cc -c99
432 # Disable all optimization, seems to result in bad code, with -O or -O2
433 # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
434 # abends on "git push". Needs more investigation.
435 CFLAGS = -g -O0
436 # We'd want it to be here.
437 prefix = /usr/local
438 # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
439 PERL_PATH = ${prefix}/bin/perl
440 PYTHON_PATH = ${prefix}/bin/python
441
442 # As detected by './configure'.
443 # Missdetected, hence commented out, see below.
444 #NO_CURL = YesPlease
445 # Added manually, see above.
446 NEEDS_SSL_WITH_CURL = YesPlease
447 HAVE_LIBCHARSET_H = YesPlease
448 HAVE_STRINGS_H = YesPlease
449 NEEDS_LIBICONV = YesPlease
450 NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
451 NO_SYS_SELECT_H = UnfortunatelyYes
452 NO_D_TYPE_IN_DIRENT = YesPlease
453 NO_HSTRERROR = YesPlease
454 NO_STRCASESTR = YesPlease
e1b6dbb5
JK
455 NO_MEMMEM = YesPlease
456 NO_STRLCPY = YesPlease
457 NO_SETENV = YesPlease
458 NO_UNSETENV = YesPlease
459 NO_MKDTEMP = YesPlease
460 NO_MKSTEMPS = YesPlease
461 # Currently libiconv-1.9.1.
462 OLD_ICONV = UnfortunatelyYes
463 NO_REGEX = YesPlease
464 NO_PTHREADS = UnfortunatelyYes
465
466 # Not detected (nor checked for) by './configure'.
467 # We don't have SA_RESTART on NonStop, unfortunalety.
468 COMPAT_CFLAGS += -DSA_RESTART=0
469 # Apparently needed in compat/fnmatch/fnmatch.c.
470 COMPAT_CFLAGS += -DHAVE_STRING_H=1
471 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
472 NO_NSEC = YesPlease
473 NO_PREAD = YesPlease
474 NO_MMAP = YesPlease
475 NO_POLL = YesPlease
476 NO_INTPTR_T = UnfortunatelyYes
477 # Bug report 10-120822-4477 submitted to HP NonStop development.
478 MKDIR_WO_TRAILING_SLASH = YesPlease
479 # RFE 10-120912-4693 submitted to HP NonStop development.
480 NO_SETITIMER = UnfortunatelyYes
481 SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
482 SHELL_PATH = /usr/local/bin/bash
483 # as of H06.25/J06.14, we might better use this
484 #SHELL_PATH = /usr/coreutils/bin/bash
485endif
486ifneq (,$(findstring MINGW,$(uname_S)))
487 pathsep = ;
22f4c27e 488 HAVE_ALLOCA_H = YesPlease
e1b6dbb5
JK
489 NO_PREAD = YesPlease
490 NEEDS_CRYPTO_WITH_SSL = YesPlease
491 NO_LIBGEN_H = YesPlease
492 NO_POLL = YesPlease
493 NO_SYMLINK_HEAD = YesPlease
494 NO_UNIX_SOCKETS = YesPlease
495 NO_SETENV = YesPlease
e1b6dbb5
JK
496 NO_STRCASESTR = YesPlease
497 NO_STRLCPY = YesPlease
e1b6dbb5
JK
498 NO_MEMMEM = YesPlease
499 NEEDS_LIBICONV = YesPlease
e1b6dbb5
JK
500 NO_STRTOUMAX = YesPlease
501 NO_MKDTEMP = YesPlease
502 NO_MKSTEMPS = YesPlease
503 NO_SVN_TESTS = YesPlease
504 NO_PERL_MAKEMAKER = YesPlease
505 RUNTIME_PREFIX = YesPlease
506 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
507 NO_NSEC = YesPlease
508 USE_WIN32_MMAP = YesPlease
509 USE_NED_ALLOCATOR = YesPlease
510 UNRELIABLE_FSTAT = UnfortunatelyYes
511 OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
512 NO_REGEX = YesPlease
513 NO_PYTHON = YesPlease
514 BLK_SHA1 = YesPlease
515 ETAGS_TARGET = ETAGS
516 NO_INET_PTON = YesPlease
517 NO_INET_NTOP = YesPlease
518 NO_POSIX_GOODIES = UnfortunatelyYes
65db0443 519 DEFAULT_HELP_FORMAT = html
1d94c403 520 NO_D_INO_IN_DIRENT = YesPlease
fa93bb20 521 COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -D_USE_32BIT_TIME_T -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
fb990703 527 BASIC_LDFLAGS += -Wl,--large-address-aware
e1b6dbb5 528 EXTLIBS += -lws2_32
ce39c2e0 529 GITLIBS += git.res
e1b6dbb5 530 PTHREAD_LIBS =
ce39c2e0 531 RC = windres -O coff
95f31e9a 532 NATIVE_CRLF = YesPlease
e1b6dbb5
JK
533 X = .exe
534 SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
535ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
536 htmldir = doc/git/html/
537 prefix =
538 INSTALL = /bin/install
539 EXTLIBS += /mingw/lib/libz.a
540 NO_R_TO_GCC_LINKER = YesPlease
541 INTERNAL_QSORT = YesPlease
542 HAVE_LIBCHARSET_H = YesPlease
ca354871 543 NO_GETTEXT = YesPlease
e1b6dbb5
JK
544else
545 NO_CURL = YesPlease
546endif
547endif
548ifeq ($(uname_S),QNX)
549 COMPAT_CFLAGS += -DSA_RESTART=0
081fd8d0 550 EXPAT_NEEDS_XMLPARSE_H = YesPlease
e1b6dbb5
JK
551 HAVE_STRINGS_H = YesPlease
552 NEEDS_SOCKET = YesPlease
e1b6dbb5
JK
553 NO_GETPAGESIZE = YesPlease
554 NO_ICONV = YesPlease
555 NO_MEMMEM = YesPlease
556 NO_MKDTEMP = YesPlease
557 NO_MKSTEMPS = YesPlease
558 NO_NSEC = YesPlease
559 NO_PTHREADS = YesPlease
560 NO_R_TO_GCC_LINKER = YesPlease
561 NO_STRCASESTR = YesPlease
562 NO_STRLCPY = YesPlease
563endif