summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
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()