From a9a2c55a006c2644bd976afc11dc53d2706e767c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 15 Jun 2013 17:01:38 -0400 Subject: configure: Better handle unecognized options. optind needs to be incremented for every option. --- diff --git a/configure b/configure index cb13a3e..8df5d8d 100755 --- a/configure +++ b/configure @@ -268,9 +268,7 @@ EOF if [ ${?} -ne 0 ]; then printf 'warning: unrecognized %s name: %s\n' \ "${_type}" "${_opt}" >&2 - continue - fi - if ${_optarg_set}; then + elif ${_optarg_set}; then _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')" eval "${_opt}"=\"\$\{_optarg\}\" else -- cgit v0.9.1