From 40290b06d32398700931f6218961056bd6e58fd0 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 21 Nov 2013 19:35:13 +0100 Subject: [PATCH] actually complain about invalid -[no-]{sql|imageformat}-* options Change-Id: I0530d7dcdeb944db76bc708512c57e537f2c95c8 Reviewed-by: Vladimir Minenko Reviewed-by: Wolfgang Bremer Reviewed-by: Thiago Macieira --- configure | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 821cc5cd69..d0b0ed8ae2 100755 --- a/configure +++ b/configure @@ -1927,7 +1927,11 @@ while [ "$#" -gt 0 ]; do break fi done - [ "$found" = yes ] || ERROR=yes + if [ "$found" != "yes" ]; then + echo "$CURRENT_OPT: unknown argument" + ERROR=yes + continue + fi if [ "$VAR" = "sql" ]; then # set the CFG_SQL_driver @@ -1951,9 +1955,6 @@ while [ "$#" -gt 0 ]; do QMakeVar del "${IN_VAR}s" "$VAL" QMakeVar del "${PLUG_VAR}s" "$VAL" fi - if [ "$ERROR" = "yes" ]; then - echo "$CURRENT_OPT: unknown argument" - fi ;; v|verbose) if [ "$VAL" = "yes" ]; then