Fix multiword --with- arguments.

This commit is contained in:
Themaister 2014-06-05 11:45:44 +02:00
parent 247059ad4d
commit a39b64e443

View File

@ -61,10 +61,10 @@ parse_input() # Parse stuff :V
eval "HAVE_$opt=no" eval "HAVE_$opt=no"
;; ;;
--with-*) --with-*)
arg=${1##--with-} arg="${1##--with-}"
val=${arg##*=} val="${arg##*=}"
opt_exists "${arg%%=*}" opt_exists "${arg%%=*}"
eval "$opt=$val" eval "$opt=\"$val\""
;; ;;
-h|--help) print_help; exit 0;; -h|--help) print_help; exit 0;;
*) print_help; exit 1;; *) print_help; exit 1;;