[FFmpeg-cvslog] configure: warn when en/disabling has no effect.

Nicolas George git at videolan.org
Sat Nov 17 12:03:38 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sun Nov 11 21:29:27 2012 +0100| [c551c3b18bab9710bc50ddacf866431f43e033f6] | committer: Nicolas George

configure: warn when en/disabling has no effect.

Print a warning for --enable- or --disable-something=pattern
does not match any component.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c551c3b18bab9710bc50ddacf866431f43e033f6
---

 configure |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index e7738cd..6904330 100755
--- a/configure
+++ b/configure
@@ -2222,7 +2222,9 @@ for opt do
     is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
     eval list=\$$(toupper $thing)_LIST
     name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing}
-    $action $(filter "$name" $list)
+    list=$(filter "$name" $list)
+    [ "$list" = "" ] && warn "Option $opt did not match anything"
+    $action $list
     ;;
     --enable-?*|--disable-?*)
     eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g')



More information about the ffmpeg-cvslog mailing list