config.mak.unameon commit Merge branch 'js/test-with-ws-in-path' (91ec08a)
   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_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
  26endif
  27ifeq ($(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
  40endif
  41ifeq ($(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
  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        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
  65endif
  66ifeq ($(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
  87endif
  88ifeq ($(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
 114endif
 115ifeq ($(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__
 163endif
 164ifeq ($(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        SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
 186        OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
 187        MMAP_PREVENTS_DELETE = UnfortunatelyYes
 188        COMPAT_OBJS += compat/cygwin.o
 189        FREAD_READS_DIRECTORIES = UnfortunatelyYes
 190endif
 191ifeq ($(uname_S),FreeBSD)
 192        NEEDS_LIBICONV = YesPlease
 193        OLD_ICONV = YesPlease
 194        NO_MEMMEM = YesPlease
 195        BASIC_CFLAGS += -I/usr/local/include
 196        BASIC_LDFLAGS += -L/usr/local/lib
 197        DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
 198        USE_ST_TIMESPEC = YesPlease
 199        ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
 200                PTHREAD_LIBS = -pthread
 201                NO_UINTMAX_T = YesPlease
 202                NO_STRTOUMAX = YesPlease
 203        endif
 204        PYTHON_PATH = /usr/local/bin/python
 205        PERL_PATH = /usr/local/bin/perl
 206        HAVE_PATHS_H = YesPlease
 207        GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
 208        HAVE_BSD_SYSCTL = YesPlease
 209        PAGER_ENV = LESS=FRX LV=-c MORE=FRX
 210        FREAD_READS_DIRECTORIES = UnfortunatelyYes
 211endif
 212ifeq ($(uname_S),OpenBSD)
 213        NO_STRCASESTR = YesPlease
 214        NO_MEMMEM = YesPlease
 215        USE_ST_TIMESPEC = YesPlease
 216        NEEDS_LIBICONV = YesPlease
 217        BASIC_CFLAGS += -I/usr/local/include
 218        BASIC_LDFLAGS += -L/usr/local/lib
 219        HAVE_PATHS_H = YesPlease
 220        HAVE_BSD_SYSCTL = YesPlease
 221endif
 222ifeq ($(uname_S),MirBSD)
 223        NO_STRCASESTR = YesPlease
 224        NO_MEMMEM = YesPlease
 225        USE_ST_TIMESPEC = YesPlease
 226        NEEDS_LIBICONV = YesPlease
 227        HAVE_PATHS_H = YesPlease
 228        HAVE_BSD_SYSCTL = YesPlease
 229endif
 230ifeq ($(uname_S),NetBSD)
 231        ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
 232                NEEDS_LIBICONV = YesPlease
 233        endif
 234        BASIC_CFLAGS += -I/usr/pkg/include
 235        BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
 236        USE_ST_TIMESPEC = YesPlease
 237        HAVE_PATHS_H = YesPlease
 238        HAVE_BSD_SYSCTL = YesPlease
 239endif
 240ifeq ($(uname_S),AIX)
 241        DEFAULT_PAGER = more
 242        NO_STRCASESTR = YesPlease
 243        NO_MEMMEM = YesPlease
 244        NO_MKDTEMP = YesPlease
 245        NO_STRLCPY = YesPlease
 246        NO_NSEC = YesPlease
 247        NO_REGEX = NeedsStartEnd
 248        FREAD_READS_DIRECTORIES = UnfortunatelyYes
 249        INTERNAL_QSORT = UnfortunatelyYes
 250        NEEDS_LIBICONV = YesPlease
 251        BASIC_CFLAGS += -D_LARGE_FILES
 252        ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
 253                NO_PTHREADS = YesPlease
 254        else
 255                PTHREAD_LIBS = -lpthread
 256        endif
 257        ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
 258                INLINE = ''
 259        endif
 260        GIT_TEST_CMP = cmp
 261endif
 262ifeq ($(uname_S),GNU)
 263        # GNU/Hurd
 264        HAVE_ALLOCA_H = YesPlease
 265        NO_STRLCPY = YesPlease
 266        HAVE_PATHS_H = YesPlease
 267        LIBC_CONTAINS_LIBINTL = YesPlease
 268endif
 269ifeq ($(uname_S),IRIX)
 270        NO_SETENV = YesPlease
 271        NO_UNSETENV = YesPlease
 272        NO_STRCASESTR = YesPlease
 273        NO_MEMMEM = YesPlease
 274        NO_MKDTEMP = YesPlease
 275        # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
 276        # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
 277        # git dies with a segmentation fault when trying to access the first
 278        # entry of a reflog.  The conservative choice is made to always set
 279        # NO_MMAP.  If you suspect that your compiler is not affected by this
 280        # issue, comment out the NO_MMAP statement.
 281        NO_MMAP = YesPlease
 282        NO_REGEX = YesPlease
 283        SNPRINTF_RETURNS_BOGUS = YesPlease
 284        SHELL_PATH = /usr/gnu/bin/bash
 285        NEEDS_LIBGEN = YesPlease
 286endif
 287ifeq ($(uname_S),IRIX64)
 288        NO_SETENV = YesPlease
 289        NO_UNSETENV = YesPlease
 290        NO_STRCASESTR = YesPlease
 291        NO_MEMMEM = YesPlease
 292        NO_MKDTEMP = YesPlease
 293        # When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
 294        # (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
 295        # git dies with a segmentation fault when trying to access the first
 296        # entry of a reflog.  The conservative choice is made to always set
 297        # NO_MMAP.  If you suspect that your compiler is not affected by this
 298        # issue, comment out the NO_MMAP statement.
 299        NO_MMAP = YesPlease
 300        NO_REGEX = YesPlease
 301        SNPRINTF_RETURNS_BOGUS = YesPlease
 302        SHELL_PATH = /usr/gnu/bin/bash
 303        NEEDS_LIBGEN = YesPlease
 304endif
 305ifeq ($(uname_S),HP-UX)
 306        INLINE = __inline
 307        NO_IPV6 = YesPlease
 308        NO_SETENV = YesPlease
 309        NO_STRCASESTR = YesPlease
 310        NO_MEMMEM = YesPlease
 311        NO_STRLCPY = YesPlease
 312        NO_MKDTEMP = YesPlease
 313        NO_UNSETENV = YesPlease
 314        NO_HSTRERROR = YesPlease
 315        NO_SYS_SELECT_H = YesPlease
 316        SNPRINTF_RETURNS_BOGUS = YesPlease
 317        NO_NSEC = YesPlease
 318        ifeq ($(uname_R),B.11.00)
 319                NO_INET_NTOP = YesPlease
 320                NO_INET_PTON = YesPlease
 321        endif
 322        ifeq ($(uname_R),B.10.20)
 323                # Override HP-UX 11.x setting:
 324                INLINE =
 325                SOCKLEN_T = size_t
 326                NO_PREAD = YesPlease
 327                NO_INET_NTOP = YesPlease
 328                NO_INET_PTON = YesPlease
 329        endif
 330        GIT_TEST_CMP = cmp
 331endif
 332ifeq ($(uname_S),Windows)
 333        GIT_VERSION := $(GIT_VERSION).MSVC
 334        pathsep = ;
 335        HAVE_ALLOCA_H = YesPlease
 336        NO_PREAD = YesPlease
 337        NEEDS_CRYPTO_WITH_SSL = YesPlease
 338        NO_LIBGEN_H = YesPlease
 339        NO_POLL = YesPlease
 340        NO_SYMLINK_HEAD = YesPlease
 341        NO_IPV6 = YesPlease
 342        NO_UNIX_SOCKETS = YesPlease
 343        NO_SETENV = YesPlease
 344        NO_STRCASESTR = YesPlease
 345        NO_STRLCPY = YesPlease
 346        NO_MEMMEM = YesPlease
 347        # NEEDS_LIBICONV = YesPlease
 348        NO_ICONV = YesPlease
 349        NO_STRTOUMAX = YesPlease
 350        NO_MKDTEMP = YesPlease
 351        SNPRINTF_RETURNS_BOGUS = YesPlease
 352        NO_SVN_TESTS = YesPlease
 353        RUNTIME_PREFIX = YesPlease
 354        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 355        NO_NSEC = YesPlease
 356        USE_WIN32_MMAP = YesPlease
 357        MMAP_PREVENTS_DELETE = UnfortunatelyYes
 358        # USE_NED_ALLOCATOR = YesPlease
 359        UNRELIABLE_FSTAT = UnfortunatelyYes
 360        OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
 361        NO_REGEX = YesPlease
 362        NO_GETTEXT = YesPlease
 363        NO_PYTHON = YesPlease
 364        BLK_SHA1 = YesPlease
 365        ETAGS_TARGET = ETAGS
 366        NO_INET_PTON = YesPlease
 367        NO_INET_NTOP = YesPlease
 368        NO_POSIX_GOODIES = UnfortunatelyYes
 369        NATIVE_CRLF = YesPlease
 370        DEFAULT_HELP_FORMAT = html
 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
 379        COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
 380        BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
 381        EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib invalidcontinue.obj
 382        PTHREAD_LIBS =
 383        lib =
 384        BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
 385ifndef DEBUG
 386        BASIC_CFLAGS += -GL -Os -MD
 387        BASIC_LDFLAGS += -LTCG
 388        AR += -LTCG
 389else
 390        BASIC_CFLAGS += -Zi -MDd
 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        ifeq ($(uname_R),3.5)
 402                NO_INET_NTOP = YesPlease
 403                NO_INET_PTON = YesPlease
 404                NO_SOCKADDR_STORAGE = YesPlease
 405        endif
 406        ifeq ($(uname_R),5.2)
 407                NO_INET_NTOP = YesPlease
 408                NO_INET_PTON = YesPlease
 409                NO_SOCKADDR_STORAGE = YesPlease
 410        endif
 411endif
 412ifeq ($(uname_S),Minix)
 413        NO_IPV6 = YesPlease
 414        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 415        NO_NSEC = YesPlease
 416        NEEDS_LIBGEN =
 417        NEEDS_CRYPTO_WITH_SSL = YesPlease
 418        NEEDS_IDN_WITH_CURL = YesPlease
 419        NEEDS_SSL_WITH_CURL = YesPlease
 420        NEEDS_RESOLV =
 421        NO_HSTRERROR = YesPlease
 422        NO_MMAP = YesPlease
 423        NO_CURL =
 424        NO_EXPAT =
 425endif
 426ifeq ($(uname_S),NONSTOP_KERNEL)
 427        # Needs some C99 features, "inline" is just one of them.
 428        # INLINE='' would just replace one set of warnings with another and
 429        # still not compile in c89 mode, due to non-const array initializations.
 430        CC = cc -c99
 431        # Disable all optimization, seems to result in bad code, with -O or -O2
 432        # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
 433        # abends on "git push". Needs more investigation.
 434        CFLAGS = -g -O0
 435        # We'd want it to be here.
 436        prefix = /usr/local
 437        # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
 438        PERL_PATH = ${prefix}/bin/perl
 439        PYTHON_PATH = ${prefix}/bin/python
 440
 441        # As detected by './configure'.
 442        # Missdetected, hence commented out, see below.
 443        #NO_CURL = YesPlease
 444        # Added manually, see above.
 445        NEEDS_SSL_WITH_CURL = YesPlease
 446        HAVE_LIBCHARSET_H = YesPlease
 447        HAVE_STRINGS_H = YesPlease
 448        NEEDS_LIBICONV = YesPlease
 449        NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
 450        NO_SYS_SELECT_H = UnfortunatelyYes
 451        NO_D_TYPE_IN_DIRENT = YesPlease
 452        NO_HSTRERROR = YesPlease
 453        NO_STRCASESTR = YesPlease
 454        NO_MEMMEM = YesPlease
 455        NO_STRLCPY = YesPlease
 456        NO_SETENV = YesPlease
 457        NO_UNSETENV = YesPlease
 458        NO_MKDTEMP = YesPlease
 459        # Currently libiconv-1.9.1.
 460        OLD_ICONV = UnfortunatelyYes
 461        NO_REGEX = YesPlease
 462        NO_PTHREADS = UnfortunatelyYes
 463
 464        # Not detected (nor checked for) by './configure'.
 465        # We don't have SA_RESTART on NonStop, unfortunalety.
 466        COMPAT_CFLAGS += -DSA_RESTART=0
 467        # Apparently needed in compat/fnmatch/fnmatch.c.
 468        COMPAT_CFLAGS += -DHAVE_STRING_H=1
 469        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 470        NO_NSEC = YesPlease
 471        NO_PREAD = YesPlease
 472        NO_MMAP = YesPlease
 473        NO_POLL = YesPlease
 474        NO_INTPTR_T = UnfortunatelyYes
 475        # Bug report 10-120822-4477 submitted to HP NonStop development.
 476        MKDIR_WO_TRAILING_SLASH = YesPlease
 477        # RFE 10-120912-4693 submitted to HP NonStop development.
 478        NO_SETITIMER = UnfortunatelyYes
 479        SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
 480        SHELL_PATH = /usr/local/bin/bash
 481        # as of H06.25/J06.14, we might better use this
 482        #SHELL_PATH = /usr/coreutils/bin/bash
 483endif
 484ifneq (,$(findstring MINGW,$(uname_S)))
 485        pathsep = ;
 486        HAVE_ALLOCA_H = YesPlease
 487        NO_PREAD = YesPlease
 488        NEEDS_CRYPTO_WITH_SSL = YesPlease
 489        NO_LIBGEN_H = YesPlease
 490        NO_POLL = YesPlease
 491        NO_SYMLINK_HEAD = YesPlease
 492        NO_UNIX_SOCKETS = YesPlease
 493        NO_SETENV = YesPlease
 494        NO_STRCASESTR = YesPlease
 495        NO_STRLCPY = YesPlease
 496        NO_MEMMEM = YesPlease
 497        NEEDS_LIBICONV = YesPlease
 498        NO_STRTOUMAX = YesPlease
 499        NO_MKDTEMP = YesPlease
 500        NO_SVN_TESTS = YesPlease
 501        NO_PERL_MAKEMAKER = YesPlease
 502        RUNTIME_PREFIX = YesPlease
 503        NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
 504        NO_NSEC = YesPlease
 505        USE_WIN32_MMAP = YesPlease
 506        MMAP_PREVENTS_DELETE = UnfortunatelyYes
 507        USE_NED_ALLOCATOR = YesPlease
 508        UNRELIABLE_FSTAT = UnfortunatelyYes
 509        OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
 510        NO_REGEX = YesPlease
 511        NO_PYTHON = YesPlease
 512        ETAGS_TARGET = ETAGS
 513        NO_INET_PTON = YesPlease
 514        NO_INET_NTOP = YesPlease
 515        NO_POSIX_GOODIES = UnfortunatelyYes
 516        DEFAULT_HELP_FORMAT = html
 517        COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
 518        COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
 519        COMPAT_OBJS += compat/mingw.o compat/winansi.o \
 520                compat/win32/pthread.o compat/win32/syslog.o \
 521                compat/win32/dirent.o
 522        BASIC_CFLAGS += -DPROTECT_NTFS_DEFAULT=1
 523        EXTLIBS += -lws2_32
 524        GITLIBS += git.res
 525        PTHREAD_LIBS =
 526        RC = windres -O coff
 527        NATIVE_CRLF = YesPlease
 528        X = .exe
 529        SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
 530ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
 531        htmldir = doc/git/html/
 532        prefix =
 533        INSTALL = /bin/install
 534        EXTLIBS += /mingw/lib/libz.a
 535        NO_R_TO_GCC_LINKER = YesPlease
 536        INTERNAL_QSORT = YesPlease
 537        HAVE_LIBCHARSET_H = YesPlease
 538        NO_GETTEXT = YesPlease
 539        COMPAT_CLFAGS += -D__USE_MINGW_ACCESS
 540else
 541        ifeq ($(shell expr "$(uname_R)" : '2\.'),2)
 542                # MSys2
 543                prefix = /usr/
 544                ifeq (MINGW32,$(MSYSTEM))
 545                        prefix = /mingw32
 546                endif
 547                ifeq (MINGW64,$(MSYSTEM))
 548                        prefix = /mingw64
 549                else
 550                        COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
 551                        BASIC_LDFLAGS += -Wl,--large-address-aware
 552                endif
 553                CC = gcc
 554                COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO=0 -DDETECT_MSYS_TTY
 555                EXTLIBS += -lntdll
 556                INSTALL = /bin/install
 557                NO_R_TO_GCC_LINKER = YesPlease
 558                INTERNAL_QSORT = YesPlease
 559                HAVE_LIBCHARSET_H = YesPlease
 560                NO_GETTEXT =
 561                USE_GETTEXT_SCHEME = fallthrough
 562                USE_LIBPCRE= YesPlease
 563                NO_LIBPCRE1_JIT = UnfortunatelyYes
 564                NO_CURL =
 565                USE_NED_ALLOCATOR = YesPlease
 566        else
 567                COMPAT_CFLAGS += -D__USE_MINGW_ANSI_STDIO
 568                NO_CURL = YesPlease
 569        endif
 570endif
 571endif
 572ifeq ($(uname_S),QNX)
 573        COMPAT_CFLAGS += -DSA_RESTART=0
 574        EXPAT_NEEDS_XMLPARSE_H = YesPlease
 575        HAVE_STRINGS_H = YesPlease
 576        NEEDS_SOCKET = YesPlease
 577        NO_GETPAGESIZE = YesPlease
 578        NO_ICONV = YesPlease
 579        NO_MEMMEM = YesPlease
 580        NO_MKDTEMP = YesPlease
 581        NO_NSEC = YesPlease
 582        NO_PTHREADS = YesPlease
 583        NO_R_TO_GCC_LINKER = YesPlease
 584        NO_STRCASESTR = YesPlease
 585        NO_STRLCPY = YesPlease
 586endif