bulk-checkin: convert index_bulk_checkin to struct object_id
[git/debian.git] / config.mak.uname
blob6a1d0de0cc571f395eeeb8f149d4377a1a5e1602
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_S),OSF1)
21         # Need this for u_short definitions et al
22         BASIC_CFLAGS += -D_OSF_SOURCE
23         SOCKLEN_T = int
24         NO_STRTOULL = YesPlease
25         NO_NSEC = YesPlease
26 endif
27 ifeq ($(uname_S),Linux)
28         HAVE_ALLOCA_H = YesPlease
29         NO_STRLCPY = YesPlease
30         HAVE_PATHS_H = YesPlease
31         LIBC_CONTAINS_LIBINTL = YesPlease
32         HAVE_DEV_TTY = YesPlease
33         HAVE_CLOCK_GETTIME = YesPlease
34         HAVE_CLOCK_MONOTONIC = YesPlease
35         # -lrt is needed for clock_gettime on glibc <= 2.16
36         NEEDS_LIBRT = YesPlease
37         HAVE_GETDELIM = YesPlease
38         SANE_TEXT_GREP=-a
39         FREAD_READS_DIRECTORIES = UnfortunatelyYes
40 endif
41 ifeq ($(uname_S),GNU/kFreeBSD)
42         HAVE_ALLOCA_H = YesPlease
43         NO_STRLCPY = YesPlease
44         HAVE_PATHS_H = YesPlease
45         DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
46         LIBC_CONTAINS_LIBINTL = YesPlease
47         FREAD_READS_DIRECTORIES = UnfortunatelyYes
48 endif
49 ifeq ($(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         BASIC_CFLAGS += -Kthread
59         BASIC_CFLAGS += -I/usr/local/include
60         BASIC_LDFLAGS += -L/usr/local/lib
61         INSTALL = ginstall
62         TAR = gtar
63         NO_STRCASESTR = YesPlease
64         NO_MEMMEM = YesPlease
65 endif
66 ifeq ($(uname_S),SCO_SV)
67         ifeq ($(uname_R),3.2)
68                 CFLAGS = -O2
69         endif
70         ifeq ($(uname_R),5)
71                 CC = cc
72                 BASIC_CFLAGS += -Kthread
73         endif
74         NEEDS_SOCKET = YesPlease
75         NEEDS_NSL = YesPlease
76         NEEDS_SSL_WITH_CRYPTO = YesPlease
77         NEEDS_LIBICONV = YesPlease
78         SHELL_PATH = /usr/bin/bash
79         NO_IPV6 = YesPlease
80         NO_HSTRERROR = 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         ifeq ($(shell test "`expr "$(uname_R)" : '\([0-9][0-9]*\)\.'`" -ge 11 && echo 1),1)
104                 HAVE_GETDELIM = YesPlease
105         endif
106         NO_MEMMEM = YesPlease
107         USE_ST_TIMESPEC = YesPlease
108         HAVE_DEV_TTY = YesPlease
109         COMPAT_OBJS += compat/precompose_utf8.o
110         BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
111         BASIC_CFLAGS += -DPROTECT_HFS_DEFAULT=1
112         HAVE_BSD_SYSCTL = YesPlease
113         FREAD_READS_DIRECTORIES = UnfortunatelyYes
114 endif
115 ifeq ($(uname_S),SunOS)
116         NEEDS_SOCKET = YesPlease
117         NEEDS_NSL = YesPlease
118         SHELL_PATH = /bin/bash
119         SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
120         HAVE_ALLOCA_H = YesPlease
121         NO_STRCASESTR = YesPlease
122         NO_MEMMEM = YesPlease
123         NO_MKDTEMP = YesPlease
124         NO_REGEX = YesPlease
125         NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
126         HAVE_DEV_TTY = YesPlease
127         ifeq ($(uname_R),5.6)
128                 SOCKLEN_T = int
129                 NO_HSTRERROR = YesPlease
130                 NO_IPV6 = YesPlease
131                 NO_SOCKADDR_STORAGE = YesPlease
132                 NO_UNSETENV = YesPlease
133                 NO_SETENV = YesPlease
134                 NO_STRLCPY = YesPlease
135                 NO_STRTOUMAX = YesPlease
136                 GIT_TEST_CMP = cmp
137         endif
138         ifeq ($(uname_R),5.7)
139                 NEEDS_RESOLV = YesPlease
140                 NO_IPV6 = YesPlease
141                 NO_SOCKADDR_STORAGE = YesPlease
142                 NO_UNSETENV = YesPlease
143                 NO_SETENV = YesPlease
144                 NO_STRLCPY = YesPlease
145                 NO_STRTOUMAX = YesPlease
146                 GIT_TEST_CMP = cmp
147         endif
148         ifeq ($(uname_R),5.8)
149                 NO_UNSETENV = YesPlease
150                 NO_SETENV = YesPlease
151                 NO_STRTOUMAX = YesPlease
152                 GIT_TEST_CMP = cmp
153         endif
154         ifeq ($(uname_R),5.9)
155                 NO_UNSETENV = YesPlease
156                 NO_SETENV = YesPlease
157                 NO_STRTOUMAX = YesPlease
158                 GIT_TEST_CMP = cmp
159         endif
160         INSTALL = /usr/ucb/install
161         TAR = gtar
162         BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__
163 endif
164 ifeq ($(uname_O),Cygwin)
165         ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
166                 NO_D_TYPE_IN_DIRENT = YesPlease
167                 NO_STRCASESTR = YesPlease
168                 NO_MEMMEM = YesPlease
169                 NO_SYMLINK_HEAD = YesPlease
170                 NO_IPV6 = YesPlease
171                 OLD_ICONV = UnfortunatelyYes
172                 # There are conflicting reports about this.
173                 # On some boxes NO_MMAP is needed, and not so elsewhere.
174                 # Try commenting this out if you suspect MMAP is more efficient
175                 NO_MMAP = YesPlease
176         else
177                 NO_REGEX = UnfortunatelyYes
178         endif
179         HAVE_ALLOCA_H = YesPlease
180         NEEDS_LIBICONV = YesPlease
181         NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
182         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
183         X = .exe
184         UNRELIABLE_FSTAT = UnfortunatelyYes
185         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
186         MMAP_PREVENTS_DELETE = UnfortunatelyYes
187         COMPAT_OBJS += compat/cygwin.o
188         FREAD_READS_DIRECTORIES = UnfortunatelyYes
189 endif
190 ifeq ($(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         PERL_PATH = /usr/local/bin/perl
205         HAVE_PATHS_H = YesPlease
206         GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
207         HAVE_BSD_SYSCTL = YesPlease
208         PAGER_ENV = LESS=FRX LV=-c MORE=FRX
209         FREAD_READS_DIRECTORIES = UnfortunatelyYes
210 endif
211 ifeq ($(uname_S),OpenBSD)
212         NO_STRCASESTR = YesPlease
213         NO_MEMMEM = YesPlease
214         USE_ST_TIMESPEC = YesPlease
215         NEEDS_LIBICONV = YesPlease
216         BASIC_CFLAGS += -I/usr/local/include
217         BASIC_LDFLAGS += -L/usr/local/lib
218         HAVE_PATHS_H = YesPlease
219         HAVE_BSD_SYSCTL = YesPlease
220 endif
221 ifeq ($(uname_S),MirBSD)
222         NO_STRCASESTR = YesPlease
223         NO_MEMMEM = YesPlease
224         USE_ST_TIMESPEC = YesPlease
225         NEEDS_LIBICONV = YesPlease
226         HAVE_PATHS_H = YesPlease
227         HAVE_BSD_SYSCTL = YesPlease
228 endif
229 ifeq ($(uname_S),NetBSD)
230         ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
231                 NEEDS_LIBICONV = YesPlease
232         endif
233         BASIC_CFLAGS += -I/usr/pkg/include
234         BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
235         USE_ST_TIMESPEC = YesPlease
236         HAVE_PATHS_H = YesPlease
237         HAVE_BSD_SYSCTL = YesPlease
238 endif
239 ifeq ($(uname_S),AIX)
240         DEFAULT_PAGER = more
241         NO_STRCASESTR = YesPlease
242         NO_MEMMEM = YesPlease
243         NO_MKDTEMP = YesPlease
244         NO_STRLCPY = YesPlease
245         NO_NSEC = YesPlease
246         NO_REGEX = NeedsStartEnd
247         FREAD_READS_DIRECTORIES = UnfortunatelyYes
248         INTERNAL_QSORT = UnfortunatelyYes
249         NEEDS_LIBICONV = YesPlease
250         BASIC_CFLAGS += -D_LARGE_FILES
251         ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
252                 NO_PTHREADS = YesPlease
253         else
254                 PTHREAD_LIBS = -lpthread
255         endif
256         ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
257                 INLINE = ''
258         endif
259         GIT_TEST_CMP = cmp
260 endif
261 ifeq ($(uname_S),GNU)
262         # GNU/Hurd
263         HAVE_ALLOCA_H = YesPlease
264         NO_STRLCPY = YesPlease
265         HAVE_PATHS_H = YesPlease
266         LIBC_CONTAINS_LIBINTL = YesPlease
267 endif
268 ifeq ($(uname_S),IRIX)
269         NO_SETENV = YesPlease
270         NO_UNSETENV = YesPlease
271         NO_STRCASESTR = YesPlease
272         NO_MEMMEM = 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
282         SNPRINTF_RETURNS_BOGUS = YesPlease
283         SHELL_PATH = /usr/gnu/bin/bash
284         NEEDS_LIBGEN = YesPlease
285 endif
286 ifeq ($(uname_S),IRIX64)
287         NO_SETENV = YesPlease
288         NO_UNSETENV = YesPlease
289         NO_STRCASESTR = YesPlease
290         NO_MEMMEM = YesPlease
291         NO_MKDTEMP = YesPlease
292         # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
293         # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
294         # git dies with a segmentation fault when trying to access the first
295         # entry of a reflog.  The conservative choice is made to always set
296         # NO_MMAP.  If you suspect that your compiler is not affected by this
297         # issue, comment out the NO_MMAP statement.
298         NO_MMAP = YesPlease
299         NO_REGEX = YesPlease
300         SNPRINTF_RETURNS_BOGUS = YesPlease
301         SHELL_PATH = /usr/gnu/bin/bash
302         NEEDS_LIBGEN = YesPlease
303 endif
304 ifeq ($(uname_S),HP-UX)
305         INLINE = __inline
306         NO_IPV6 = YesPlease
307         NO_SETENV = YesPlease
308         NO_STRCASESTR = YesPlease
309         NO_MEMMEM = YesPlease
310         NO_STRLCPY = YesPlease
311         NO_MKDTEMP = YesPlease
312         NO_UNSETENV = YesPlease
313         NO_HSTRERROR = YesPlease
314         NO_SYS_SELECT_H = YesPlease
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
330 endif
331 ifeq ($(uname_S),Windows)
332         GIT_VERSION := $(GIT_VERSION).MSVC
333         pathsep = ;
334         HAVE_ALLOCA_H = YesPlease
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
343         NO_STRCASESTR = YesPlease
344         NO_STRLCPY = YesPlease
345         NO_MEMMEM = YesPlease
346         # NEEDS_LIBICONV = YesPlease
347         NO_ICONV = YesPlease
348         NO_STRTOUMAX = YesPlease
349         NO_MKDTEMP = YesPlease
350         SNPRINTF_RETURNS_BOGUS = YesPlease
351         NO_SVN_TESTS = YesPlease
352         RUNTIME_PREFIX = YesPlease
353         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
354         NO_NSEC = YesPlease
355         USE_WIN32_MMAP = YesPlease
356         MMAP_PREVENTS_DELETE = UnfortunatelyYes
357         # USE_NED_ALLOCATOR = YesPlease
358         UNRELIABLE_FSTAT = UnfortunatelyYes
359         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
360         NO_REGEX = YesPlease
361         NO_GETTEXT = YesPlease
362         NO_PYTHON = YesPlease
363         BLK_SHA1 = YesPlease
364         ETAGS_TARGET = ETAGS
365         NO_INET_PTON = YesPlease
366         NO_INET_NTOP = YesPlease
367         NO_POSIX_GOODIES = UnfortunatelyYes
368         NATIVE_CRLF = YesPlease
369         DEFAULT_HELP_FORMAT = html
371         CC = compat/vcbuild/scripts/clink.pl
372         AR = compat/vcbuild/scripts/lib.pl
373         CFLAGS =
374         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
375         COMPAT_OBJS = compat/msvc.o compat/winansi.o \
376                 compat/win32/pthread.o compat/win32/syslog.o \
377                 compat/win32/dirent.o
378         COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
379         BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
380         EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
381         PTHREAD_LIBS =
382         lib =
383         BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
384 ifndef DEBUG
385         BASIC_CFLAGS += -GL -Os -MD
386         BASIC_LDFLAGS += -LTCG
387         AR += -LTCG
388 else
389         BASIC_CFLAGS += -Zi -MDd
390 endif
391         X = .exe
392 endif
393 ifeq ($(uname_S),Interix)
394         NO_INITGROUPS = YesPlease
395         NO_IPV6 = YesPlease
396         NO_MEMMEM = YesPlease
397         NO_MKDTEMP = YesPlease
398         NO_STRTOUMAX = YesPlease
399         NO_NSEC = YesPlease
400         ifeq ($(uname_R),3.5)
401                 NO_INET_NTOP = YesPlease
402                 NO_INET_PTON = YesPlease
403                 NO_SOCKADDR_STORAGE = YesPlease
404         endif
405         ifeq ($(uname_R),5.2)
406                 NO_INET_NTOP = YesPlease
407                 NO_INET_PTON = YesPlease
408                 NO_SOCKADDR_STORAGE = YesPlease
409         endif
410 endif
411 ifeq ($(uname_S),Minix)
412         NO_IPV6 = YesPlease
413         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
414         NO_NSEC = YesPlease
415         NEEDS_LIBGEN =
416         NEEDS_CRYPTO_WITH_SSL = YesPlease
417         NEEDS_IDN_WITH_CURL = YesPlease
418         NEEDS_SSL_WITH_CURL = YesPlease
419         NEEDS_RESOLV =
420         NO_HSTRERROR = YesPlease
421         NO_MMAP = YesPlease
422         NO_CURL =
423         NO_EXPAT =
424 endif
425 ifeq ($(uname_S),NONSTOP_KERNEL)
426         # Needs some C99 features, "inline" is just one of them.
427         # INLINE='' would just replace one set of warnings with another and
428         # still not compile in c89 mode, due to non-const array initializations.
429         CC = cc -c99
430         # Disable all optimization, seems to result in bad code, with -O or -O2
431         # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
432         # abends on "git push". Needs more investigation.
433         CFLAGS = -g -O0
434         # We'd want it to be here.
435         prefix = /usr/local
436         # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
437         PERL_PATH = ${prefix}/bin/perl
438         PYTHON_PATH = ${prefix}/bin/python
440         # As detected by './configure'.
441         # Missdetected, hence commented out, see below.
442         #NO_CURL = YesPlease
443         # Added manually, see above.
444         NEEDS_SSL_WITH_CURL = YesPlease
445         HAVE_LIBCHARSET_H = YesPlease
446         HAVE_STRINGS_H = YesPlease
447         NEEDS_LIBICONV = YesPlease
448         NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
449         NO_SYS_SELECT_H = UnfortunatelyYes
450         NO_D_TYPE_IN_DIRENT = YesPlease
451         NO_HSTRERROR = YesPlease
452         NO_STRCASESTR = YesPlease
453         NO_MEMMEM = YesPlease
454         NO_STRLCPY = YesPlease
455         NO_SETENV = YesPlease
456         NO_UNSETENV = YesPlease
457         NO_MKDTEMP = YesPlease
458         # Currently libiconv-1.9.1.
459         OLD_ICONV = UnfortunatelyYes
460         NO_REGEX = YesPlease
461         NO_PTHREADS = UnfortunatelyYes
463         # Not detected (nor checked for) by './configure'.
464         # We don't have SA_RESTART on NonStop, unfortunalety.
465         COMPAT_CFLAGS += -DSA_RESTART=0
466         # Apparently needed in compat/fnmatch/fnmatch.c.
467         COMPAT_CFLAGS += -DHAVE_STRING_H=1
468         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
469         NO_NSEC = YesPlease
470         NO_PREAD = YesPlease
471         NO_MMAP = YesPlease
472         NO_POLL = YesPlease
473         NO_INTPTR_T = UnfortunatelyYes
474         # Bug report 10-120822-4477 submitted to HP NonStop development.
475         MKDIR_WO_TRAILING_SLASH = YesPlease
476         # RFE 10-120912-4693 submitted to HP NonStop development.
477         NO_SETITIMER = UnfortunatelyYes
478         SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
479         SHELL_PATH = /usr/local/bin/bash
480         # as of H06.25/J06.14, we might better use this
481         #SHELL_PATH = /usr/coreutils/bin/bash
482 endif
483 ifneq (,$(findstring MINGW,$(uname_S)))
484         pathsep = ;
485         HAVE_ALLOCA_H = YesPlease
486         NO_PREAD = YesPlease
487         NEEDS_CRYPTO_WITH_SSL = YesPlease
488         NO_LIBGEN_H = YesPlease
489         NO_POLL = YesPlease
490         NO_SYMLINK_HEAD = YesPlease
491         NO_UNIX_SOCKETS = YesPlease
492         NO_SETENV = YesPlease
493         NO_STRCASESTR = YesPlease
494         NO_STRLCPY = YesPlease
495         NO_MEMMEM = YesPlease
496         NEEDS_LIBICONV = YesPlease
497         NO_STRTOUMAX = YesPlease
498         NO_MKDTEMP = YesPlease
499         NO_SVN_TESTS = YesPlease
500         NO_PERL_MAKEMAKER = YesPlease
501         RUNTIME_PREFIX = YesPlease
502         NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
503         NO_NSEC = YesPlease
504         USE_WIN32_MMAP = YesPlease
505         MMAP_PREVENTS_DELETE = UnfortunatelyYes
506         USE_NED_ALLOCATOR = YesPlease
507         UNRELIABLE_FSTAT = UnfortunatelyYes
508         OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
509         NO_REGEX = YesPlease
510         NO_PYTHON = YesPlease
511         ETAGS_TARGET = ETAGS
512         NO_INET_PTON = YesPlease
513         NO_INET_NTOP = YesPlease
514         NO_POSIX_GOODIES = UnfortunatelyYes
515         DEFAULT_HELP_FORMAT = html
516         COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
517         COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
518         COMPAT_OBJS += compat/mingw.o compat/winansi.o \
519                 compat/win32/pthread.o compat/win32/syslog.o \
520                 compat/win32/dirent.o
521         BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
522         EXTLIBS += -lws2_32
523         GITLIBS += git.res
524         PTHREAD_LIBS =
525         RC = windres -O coff
526         NATIVE_CRLF = YesPlease
527         X = .exe
528         SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
529 ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
530         htmldir = doc/git/html/
531         prefix =
532         INSTALL = /bin/install
533         EXTLIBS += /mingw/lib/libz.a
534         NO_R_TO_GCC_LINKER = YesPlease
535         INTERNAL_QSORT = YesPlease
536         HAVE_LIBCHARSET_H = YesPlease
537         NO_GETTEXT = YesPlease
538         COMPAT_CLFAGS += -D__USE_MINGW_ACCESS
539 else
540         ifeq ($(shell expr "$(uname_R)" : '2\.'),2)
541                 # MSys2
542                 prefix = /usr/
543                 ifeq (MINGW32,$(MSYSTEM))
544                         prefix = /mingw32
545                 endif
546                 ifeq (MINGW64,$(MSYSTEM))
547                         prefix = /mingw64
548                 else
549                         COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
550                         BASIC_LDFLAGS += -Wl,--large-address-aware
551                 endif
552                 CC = gcc
553                 COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY
554                 EXTLIBS += -lntdll
555                 INSTALL = /bin/install
556                 NO_R_TO_GCC_LINKER = YesPlease
557                 INTERNAL_QSORT = YesPlease
558                 HAVE_LIBCHARSET_H = YesPlease
559                 NO_GETTEXT =
560                 USE_GETTEXT_SCHEME = fallthrough
561                 USE_LIBPCRE= YesPlease
562                 NO_LIBPCRE1_JIT = UnfortunatelyYes
563                 NO_CURL =
564                 USE_NED_ALLOCATOR = YesPlease
565         else
566                 COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
567                 NO_CURL = YesPlease
568         endif
569 endif
570 endif
571 ifeq ($(uname_S),QNX)
572         COMPAT_CFLAGS += -DSA_RESTART=0
573         EXPAT_NEEDS_XMLPARSE_H = YesPlease
574         HAVE_STRINGS_H = YesPlease
575         NEEDS_SOCKET = YesPlease
576         NO_GETPAGESIZE = YesPlease
577         NO_ICONV = YesPlease
578         NO_MEMMEM = YesPlease
579         NO_MKDTEMP = YesPlease
580         NO_NSEC = YesPlease
581         NO_PTHREADS = YesPlease
582         NO_R_TO_GCC_LINKER = YesPlease
583         NO_STRCASESTR = YesPlease
584         NO_STRLCPY = YesPlease
585 endif