[x264-devel] Use $optarg for some configure options

Yasuhiro Ikeda git at videolan.org
Sat Jul 23 02:38:52 CEST 2011


x264 | branch: master | Yasuhiro Ikeda <wipple625 at gmail.com> | Tue Jul 12 14:46:29 2011 +0900| [88f6bbd378c96851dfcd454e8b753bbb0de3bf10] | committer: Jason Garrett-Glaser

Use $optarg for some configure options

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=88f6bbd378c96851dfcd454e8b753bbb0de3bf10
---

 configure |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/configure b/configure
index 88a2725..e08330e 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



More information about the x264-devel mailing list