config.mak.uname: add hint on uname_R for MacOS X
I always have to scratch my head every time I see this cryptic pattern "[15678]\."; leave a short note to remind the maintainer and the reviewers. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Aug 15, 2014 at 10:02 UTC
9eeff2f6810d4f962aa78ddf43193fba26d9451a
1 file changed
+4
config.mak.uname
+4
@@ -86,6 +86,10 @@ ifeq ($(uname_S),Darwin)
86
NEEDS_CRYPTO_WITH_SSL = YesPlease
87
NEEDS_SSL_WITH_CRYPTO = YesPlease
88
NEEDS_LIBICONV = YesPlease
89
+ # Note: $(uname_R) gives us the underlying Darwin version.
90
+ # - MacOS 10.0.* and MacOS 10.1.0 = Darwin 1.*
91
+ # - MacOS 10.x.* = Darwin (x+4).* for (1 <= x)
92
+ # i.e. "begins with [15678] and a dot" means "10.4.* or older".
93
ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
94
OLD_ICONV = UnfortunatelyYes
95
NO_APPLE_COMMON_CRYPTO = YesPlease