Skip to content

Commit

Permalink
Merge libck master (0.4.3-6-g747779d) to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
PSUdaemon committed Aug 11, 2014
1 parent d752e57 commit 9da1931
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions lib/ck/configure
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,18 @@ generate_stdout()
echo "Documentation will be installed in $MANDIR"
}

for option in $*; do
value=`echo "$option" | sed -e 's/^[^=]*=\(.*\)/\1/'`
for option; do
case "$option" in
*=?*)
value=`expr -- "$option" : '[^=]*=\(.*\)'`
;;
*=)
value=
;;
*)
value=yes
;;
esac

case "$option" in
--help)
Expand Down Expand Up @@ -244,9 +254,8 @@ for option in $*; do
fi
;;
*=*)
NAME=`expr "$option" : '\([^=]*\)='`
VALUE=`echo "$value" | sed "s/'/'\\\\\\\\''/g"`
eval "$NAME='$VALUE'"
NAME=`expr -- "$option" : '\([^=]*\)='`
eval "$NAME='$value'"
export $NAME
;;
*)
Expand Down

0 comments on commit 9da1931

Please sign in to comment.