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