diff options
author | Måns Rullgård <mans@mansr.com> | 2008-03-25 22:51:43 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-03-25 22:51:43 +0000 |
commit | 26759c44804d220deedac861f1b030381d8393be (patch) | |
tree | c13a6ecad1ff31d02499c4b3d4a37f9f1da497f6 /configure | |
parent | 3e89171a864884297bd084aefda267fd4ebb5d33 (diff) | |
download | ffmpeg-26759c44804d220deedac861f1b030381d8393be.tar.gz |
combine setting of various configure command line options
Originally committed as revision 12592 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 50 |
1 files changed, 21 insertions, 29 deletions
@@ -779,6 +779,22 @@ CMDLINE_SELECT=" static stripping " +CMDLINE_SET=' + arch + build_suffix + cc + cpu + cross_prefix + incdir + libdir + logfile + make + mandir + prefix + shlibdir + source_path + target_os +' # code dependency declarations @@ -993,40 +1009,12 @@ show_list() { for opt do optval="${opt#*=}" case "$opt" in - --logfile=*) logfile="$optval" - ;; - --prefix=*) prefix="$optval" - ;; - --libdir=*) libdir="$optval" - ;; - --shlibdir=*) shlibdir="$optval" - ;; - --incdir=*) incdir="$optval" - ;; - --mandir=*) mandir="$optval" - ;; - --source-path=*) source_path="$optval" - ;; - --cross-prefix=*) cross_prefix="$optval" - ;; - --target-os=*) target_os="$optval" - ;; - --cc=*) cc="$optval" - ;; - --make=*) make="$optval" - ;; --extra-cflags=*) add_cflags "$optval" ;; --extra-ldflags=*) add_ldflags "$optval" ;; --extra-libs=*) add_extralibs "$optval" ;; - --build-suffix=*) build_suffix="$optval" - ;; - --arch=*) arch="$optval" - ;; - --cpu=*) cpu="$optval" - ;; --disable-devices) disable $INDEV_LIST $OUTDEV_LIST ;; --enable-debug=*) debuglevel="$optval" @@ -1057,7 +1045,11 @@ for opt do --help|-h) show_help ;; *) - die_unknown $opt + optname="${opt%=*}" + optname="${optname#--}" + optname=$(echo "$optname" | sed 's/-/_/g') + is_in $optname $CMDLINE_SET || die_unknown $opt + eval $optname='$optval' ;; esac done |