diff --git a/qb/config.params.sh b/qb/config.params.sh index 3bf0d3305e..34dc9a88d2 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -16,3 +16,4 @@ add_command_line_enable OSS "Enable OSS support" auto add_command_line_enable RSOUND "Enable RSound support" auto add_command_line_enable ROAR "Enable RoarAudio support" auto add_command_line_enable AL "Enable OpenAL support" auto +add_command_line_enable JACK "Enable JACK support" auto diff --git a/qb/qb.params.sh b/qb/qb.params.sh index 74ad6645fa..231310d8e5 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -91,16 +91,17 @@ parse_input() while [ ! -z "$1" ] do - prefix="`echo $1 | sed -e 's|^--prefix=\(\S\S*\)$|\1|' -e 's|\(\S\S*\)/|\1|'`" - - if [ "$prefix" != "$1" ]; then - PREFIX="$prefix" - shift - continue - fi - + case "$1" in + --prefix=*) + prefix="`echo $1 | sed -e 's|^--prefix=\(\S\S*\)$|\1|' -e 's|\(\S\S*\)/$|\1|'`" + + if [ "$prefix" != "$1" ]; then + PREFIX="$prefix" + fi + ;; + --enable-*) enable=`echo $1 | sed 's|^--enable-||'` if [ -z "`echo $COMMAND_LINE_OPTS_ENABLE | grep -i $enable`" ]; then