From aec2e3b910c96d7f357cf7d27285eca45c7f2f6f Mon Sep 17 00:00:00 2001 From: Miguel Angel Nubla Date: Thu, 1 Jun 2023 02:09:39 +0200 Subject: [PATCH] configure: Makefile downloader enable follow redirects. If curl is used for building, any download such as a sounds package will fail to follow HTTP redirects and will download wrong data. Resolves: #136 (cherry picked from commit 4c2f035a353da43e06d4c7b3637b18b9835ab10e) --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 83460d99e5..1bb1e3c678 100755 --- a/configure +++ b/configure @@ -7810,7 +7810,7 @@ if test "x${WGET}" != "x:"; then DOWNLOAD_TO_STDOUT="${WGET} -q -O-" DOWNLOAD_TIMEOUT='--timeout=$1' elif test "x${CURL}" != "x:"; then - DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\"" + DOWNLOAD="${CURL} -L -O --progress-bar -w \"%{url_effective}\n\"" DOWNLOAD_TO_STDOUT="${CURL} -Ls" DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)' else diff --git a/configure.ac b/configure.ac index df974b441f..acca081a82 100644 --- a/configure.ac +++ b/configure.ac @@ -296,7 +296,7 @@ if test "x${WGET}" != "x:"; then DOWNLOAD_TO_STDOUT="${WGET} -q -O-" DOWNLOAD_TIMEOUT='--timeout=$1' elif test "x${CURL}" != "x:"; then - DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\"" + DOWNLOAD="${CURL} -L -O --progress-bar -w \"%{url_effective}\n\"" DOWNLOAD_TO_STDOUT="${CURL} -Ls" DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)' else