blob: 9358593d9131e71bd1441d0c7e828b7c52a7b26d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
From: "P. J. McDermott" <pjm@nac.net>
Description: Better handle unecognized options
optind needs to be incremented for every option.
diff -Naur src.orig/configure src/configure
--- src.orig/configure 2013-06-01 11:50:34.000000000 -0400
+++ src/configure 2013-06-03 13:13:51.812554003 -0400
@@ -266,9 +266,7 @@
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
|