]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
configure: Makefile downloader enable follow redirects.
authorMiguel Angel Nubla <miguelangel.nubla@gmail.com>
Thu, 1 Jun 2023 00:09:39 +0000 (02:09 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 10 Jul 2023 11:49:31 +0000 (11:49 +0000)
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
configure.ac

index 83460d99e5af2691fdee8526bf693137698a05b2..1bb1e3c678fc009d89ff7b060a7bbd7b30f6a4c7 100755 (executable)
--- 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
index df974b441fe670a9e153957124f3aa6d2d9ea664..acca081a82a277a9379037b592124327cbac68b4 100644 (file)
@@ -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