diff options
author | Carl Worth <cworth@cworth.org> | 2009-12-04 14:50:49 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-12-04 14:52:10 -0800 |
commit | 5022424cf3695f6d2432a8528ab49ede98a66632 (patch) | |
tree | c639d0460d3903fbb704d5f3d1b43367c724cd6b /configure | |
parent | 2c2b31d536545189e426b382fad5b5ae0b6cc4de (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-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ PREFIX=/usr/local # option parsing for option; do - if [ "${option%=*}" = '--prefix' ] ; then + if [ "${option%%=*}" = '--prefix' ] ; then PREFIX="${option#*=}" fi done |