1AC_DEFUN([AX_CHECK_FETCHER], [ 2AC_PATH_PROG([WGET],[wget], [no]) 3AS_IF([test x"$WGET" != x"no"], [ 4 FETCHER="$WGET -c -O" 5], [ 6 AC_PATH_PROG([FTP],[ftp], [no]) 7 AS_IF([test x"$FTP" != x"no"], [ 8 FETCHER="$FTP -o" 9 ], [ 10 AC_MSG_ERROR([cannot find wget or ftp]) 11 ]) 12]) 13AC_SUBST(FETCHER) 14]) 15