From 5022424cf3695f6d2432a8528ab49ede98a66632 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 4 Dec 2009 14:50:49 -0800 Subject: [PATCH] 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. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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