--- configure.ac (Asterisk 13.20) +++ configure.ac (working copy) @@ -283,2 +283,5 @@ +DOWNLOAD= +DOWNLOAD_TO_STDOUT= +DOWNLOAD_TIMEOUT= if test "${WGET}" != ":" ; then @@ -292,9 +295,17 @@ else - AC_PATH_PROG([FETCH], [fetch], [:]) - DOWNLOAD=${FETCH} - DOWNLOAD_TO_STDOUT="${FETCH} -o-" - DOWNLOAD_TIMEOUT='--timeout=$(or $2,$1)' + AC_PATH_PROG([FETCH], [fetch], :) + if test "${FETCH}" != ":" ; then + DOWNLOAD=${FETCH} + DOWNLOAD_TO_STDOUT="${FETCH} -o-" + DOWNLOAD_TIMEOUT='--timeout=$(or $2,$1)' + else + AC_PATH_PROG([FTP], [ftp], :) + if test "${FTP}" != ":" ; then + DOWNLOAD=${FTP} + DOWNLOAD_TO_STDOUT="${FTP} -o-" + DOWNLOAD_TIMEOUT='-q $(or $2,$1)' + fi + fi fi fi - AC_SUBST(DOWNLOAD)