diff --git a/configure b/configure index 94cf3687d9..5d576ec57e 100755 --- a/configure +++ b/configure @@ -312,6 +312,12 @@ filter(){ done } +map(){ + m=$1 + shift + for _; do; eval $m; done +} + set_all(){ value=$1 shift @@ -1578,6 +1584,9 @@ for opt do ;; --enable-debug=*) debuglevel="$optval" ;; + --disable-everything) + map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST + ;; --enable-*=*|--disable-*=*) eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"