summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorkb <k.blammo@gmail.com>2012-05-18 14:39:44 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-23 01:04:01 +0200
commit3ec08bff24a26de66ea754085d140b36caac2cbc (patch)
tree034ae5b0234f4ed6654ac0c2e7b1f7496c43fc52 /configure
parentd3e3404d570373fcb746c89827990aa2a9a4cb17 (diff)
Allow a space between "-l" and library name when configuring
Qt's configure allows for spaces between an option and its argument. This patch brings -l in line with -L et al. Change-Id: Iea5c78dc06f69c21b7419fd9fa73c52ae1cea18f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index a526d42d72..f8f5929611 100755
--- a/configure
+++ b/configure
@@ -1024,9 +1024,14 @@ while [ "$#" -gt 0 ]; do
VAL=`echo $1 | sed 's,-R,,'`
fi
;;
- -l?*)
+ -l?*|-l)
VAR="add_link"
- VAL=`echo $1 | sed 's,-l,,'`
+ if [ "$1" = "-l" ]; then
+ shift
+ VAL="$1"
+ else
+ VAL=`echo $1 | sed 's,-l,,'`
+ fi
;;
-F?*|-F)
VAR="add_fpath"