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