summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-03 13:18:04 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-03 13:18:04 (EDT)
commitc437a1a8f55cdd302a9b797d09b95e3f8f15d39d (patch)
treecef96354f527ff32deeb35ea44f06fd2a92fcf5c
parentbca7dbbc209e2256ab1bf3054bbc6e2638bb8cbb (diff)
Add patch to better handle unrecognized options.
-rw-r--r--patches/01_better-handle-unrecognized-options.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/01_better-handle-unrecognized-options.patch b/patches/01_better-handle-unrecognized-options.patch
new file mode 100644
index 0000000..9358593
--- /dev/null
+++ b/patches/01_better-handle-unrecognized-options.patch
@@ -0,0 +1,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