From c8479e88af53c50a5d23d83f57fb500251e75ab8 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Dec 2015 13:41:11 -0500 Subject: configure.ac: Find wget utility --- diff --git a/configure.ac b/configure.ac index 7ea86f6..22997d8 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,32 @@ AC_ARG_WITH( ] ) +AC_ARG_WITH( + [wget], + [AS_HELP_STRING([--with-wget=PATH], [path to wget utility])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-wget requires an argument]) + ;; + 'no') + AC_MSG_ERROR([wget is required]) + ;; + *) + WGET="${withval}" + AC_SUBST([WGET]) + ;; + esac + ], + [ + AC_PATH_PROG([WGET], [wget]) + if test -z "${WGET}"; then + AC_MSG_ERROR([wget not found]) + fi + ] +) + AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([config.sh]) AC_OUTPUT() -- cgit v0.9.1