From: Yasuhiro Ikeda Date: Tue, 12 Jul 2011 05:46:29 +0000 (+0900) Subject: Use $optarg for some configure options X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=88f6bbd378c96851dfcd454e8b753bbb0de3bf10;p=x264.git Use $optarg for some configure options --- diff --git a/configure b/configure index 88a27257..e08330e9 100755 --- a/configure +++ b/configure @@ -289,13 +289,13 @@ for opt do gpl="no" ;; --extra-asflags=*) - ASFLAGS="$ASFLAGS ${opt#--extra-asflags=}" + ASFLAGS="$ASFLAGS $optarg" ;; --extra-cflags=*) - CFLAGS="$CFLAGS ${opt#--extra-cflags=}" + CFLAGS="$CFLAGS $optarg" ;; --extra-ldflags=*) - LDFLAGS="$LDFLAGS ${opt#--extra-ldflags=}" + LDFLAGS="$LDFLAGS $optarg" ;; --disable-thread) thread="no" @@ -324,17 +324,17 @@ for opt do vis="yes" ;; --host=*) - host="${opt#--host=}" + host="$optarg" ;; --cross-prefix=*) - cross_prefix="${opt#--cross-prefix=}" + cross_prefix="$optarg" ;; --sysroot=*) - CFLAGS="$CFLAGS --sysroot=${opt#--sysroot=}" - LDFLAGS="$LDFLAGS --sysroot=${opt#--sysroot=}" + CFLAGS="$CFLAGS --sysroot=$optarg" + LDFLAGS="$LDFLAGS --sysroot=$optarg" ;; --bit-depth=*) - bit_depth="${opt#--bit-depth=}" + bit_depth="$optarg" if [ "$bit_depth" -lt "8" -o "$bit_depth" -gt "10" ]; then echo "Supplied bit depth must be in range [8,10]." exit 1