aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-04 14:50:49 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-12-04 14:52:10 -0800
commit5022424cf3695f6d2432a8528ab49ede98a66632 (patch)
treec639d0460d3903fbb704d5f3d1b43367c724cd6b /configure
parent2c2b31d536545189e426b382fad5b5ae0b6cc4de (diff)
Fix option parsing for the case of a value with '='.
To support this we need to match the longest-possible suffix and then strip the shortest-possible prefix.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 70a3c3d8..54d55cba 100755
--- a/configure
+++ b/configure
@@ -8,7 +8,7 @@ PREFIX=/usr/local
# option parsing
for option; do
- if [ "${option%=*}" = '--prefix' ] ; then
+ if [ "${option%%=*}" = '--prefix' ] ; then
PREFIX="${option#*=}"
fi
done