configure: Fix to allow option values containing '=' (thanks Jakub)

Tue, 18 May 2010 23:28:36 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 18 May 2010 23:28:36 +0100
changeset 3050
76f0d653b347
parent 3046
92173d8a35d3
child 3051
15150ad771df

configure: Fix to allow option values containing '=' (thanks Jakub)

configure file | annotate | diff | comparison | revisions
--- a/configure	Wed Apr 28 16:52:06 2010 +0400
+++ b/configure	Tue May 18 23:28:36 2010 +0100
@@ -61,7 +61,7 @@
 
 while [ "$1" ]
 do
-   value="`echo $1 | sed 's/.*=\(.*\)/\1/'`"
+   value="`echo $1 | sed 's/[^=]*=\(.*\)/\1/'`"
    if echo "$value" | grep -q "~"
    then
       echo

mercurial