Skip to content

Commit c0997fe

Browse files
committed
Merge branch 'tc/curl-vernum-output-broken-in-7.11'
Certain older vintages of cURL give irregular output from "curl-config --vernum", which confused our build system. * tc/curl-vernum-output-broken-in-7.11: Makefile: handle broken curl version number in version check
2 parents 7cf6232 + 3af6792 commit c0997fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,13 +1052,13 @@ else
10521052
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
10531053
PROGRAM_OBJS += http-fetch.o
10541054
PROGRAMS += $(REMOTE_CURL_NAMES)
1055-
curl_check := $(shell (echo 070908; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
1055+
curl_check := $(shell (echo 070908; curl-config --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
10561056
ifeq "$(curl_check)" "070908"
10571057
ifndef NO_EXPAT
10581058
PROGRAM_OBJS += http-push.o
10591059
endif
10601060
endif
1061-
curl_check := $(shell (echo 072200; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
1061+
curl_check := $(shell (echo 072200; curl-config --vernum | sed -e '/^70[BC]/s/^/0/') 2>/dev/null | sort -r | sed -ne 2p)
10621062
ifeq "$(curl_check)" "072200"
10631063
USE_CURL_FOR_IMAP_SEND = YesPlease
10641064
endif

0 commit comments

Comments
 (0)