aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasanori Ogino <masanori.ogino@gmail.com>2016-05-25 23:01:18 +0900
committerPalmer Dabbelt <palmer@dabbelt.com>2016-06-01 16:43:02 -0700
commit40095b91425463d93b9ef29f97d4c756ccfb1829 (patch)
treef15e570411bfe3da82db5bcfc2742e6b0d82ccb2
parent0c85fd51ad95136d374ff7fb7e3f41e2aeaf1a52 (diff)
downloadriscv-gnu-toolchain-40095b91425463d93b9ef29f97d4c756ccfb1829.zip
riscv-gnu-toolchain-40095b91425463d93b9ef29f97d4c756ccfb1829.tar.gz
riscv-gnu-toolchain-40095b91425463d93b9ef29f97d4c756ccfb1829.tar.bz2
Add -L option for curl to follow redirects.
It is necessary to fetch tarballs from e.g. GitHub. Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index c957d0d..195ac20 100755
--- a/configure
+++ b/configure
@@ -3176,7 +3176,7 @@ fi
if test x"$CURL" != xno; then :
- FETCHER="$CURL -o - --ftp-pasv"
+ FETCHER="$CURL -L -o - --ftp-pasv"
elif test x"$WGET" != xno; then :
FETCHER="$WGET -O -"
elif test x"$FTP" != xno; then :
diff --git a/configure.ac b/configure.ac
index a8bc9e1..8fcb373 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ AS_IF([test x"$need_gcc_external_libraries" != xno],
AC_PATH_PROG([CURL], [curl], [no])
AC_PATH_PROG([WGET], [wget], [no])
AC_PATH_PROG([FTP], [ftp], [no])
-AS_IF([test x"$CURL" != xno], [FETCHER="$CURL -o - --ftp-pasv"],
+AS_IF([test x"$CURL" != xno], [FETCHER="$CURL -L -o - --ftp-pasv"],
[test x"$WGET" != xno], [FETCHER="$WGET -O -"],
[test x"$FTP" != xno], [FETCHER="$FTP -o - -p"],
[AC_MSG_ERROR([no file transfer utility found])])