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