]> 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)
committerMiguel Angel Nubla <miguelangel.nubla@gmail.com>
Mon, 5 Jun 2023 18:38:09 +0000 (18:38 +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

configure
configure.ac

index 893886cd518b0d1abd664bc2b1764282d945763f..67cd149ab39ef5f0646f2a699ad2259ac7983859 100755 (executable)
--- a/configure
+++ b/configure
@@ -7719,7 +7719,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 8d2ca5ae0fe32110256526751a53f03a445b4c73..d5b08142bd48287e9ee23635f7617d67e5de652f 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