[Shotwell] [PATCH] configure should support parameters w/o '='
me at ibotty.net
me at ibotty.net
Sun Nov 27 11:09:03 PST 2011
this is necessary for e.g. jhbuild, which configures with
'--prefix $PREFIX'
---
configure | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 6d29999..52aca53 100755
--- a/configure
+++ b/configure
@@ -57,6 +57,8 @@ do
if [ `echo $1 | grep '='` ]
then
value=`echo $1 | sed 's/.*=//'`
+ else
+ value="$2"
fi
case $option in
@@ -70,6 +72,7 @@ do
fi
variables="${variables}PREFIX=$value\n"
+ shift
;;
--lib) if [ ! $value ]
@@ -78,6 +81,7 @@ do
fi
variables="${variables}LIB=$value\n"
+ shift
;;
--assume-pkgs) variables="${variables}ASSUME_PKGS=1\n"
@@ -89,6 +93,7 @@ do
fi
variables="${variables}BUILD_DIR=$value\n"
+ shift
;;
--debug)
variables="${variables}BUILD_RELEASE=\nBUILD_DEBUG=1\n"
@@ -133,6 +138,7 @@ do
fi
variables="${variables}${option}=${value}\n"
+ shift
;;
esac
--
1.7.7.3
More information about the Shotwell
mailing list