aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-03-31 10:22:32 +0200
committerClément Bœsch <cboesch@gopro.com>2017-03-31 10:22:32 +0200
commitb6c293d5e609a7b651c47d3de4749840ae00492e (patch)
tree6573ef31b6640b77128ea09980460fe6cb61afa4
parenta5c29c608fb810f46db5ef0c7400cca5be894844 (diff)
parent59d2b00d201935c16408a2917957d89a170fe58f (diff)
downloadffmpeg-b6c293d5e609a7b651c47d3de4749840ae00492e.tar.gz
Merge commit '59d2b00d201935c16408a2917957d89a170fe58f'
* commit '59d2b00d201935c16408a2917957d89a170fe58f': configure: Add --quiet command line parameter to suppress informative output The license assignment is moved out of the quiet condition to make sure it ends up in config.h Merged-by: Clément Bœsch <cboesch@gopro.com>
-rwxr-xr-xconfigure31
1 files changed, 19 insertions, 12 deletions
diff --git a/configure b/configure
index aff6ca40c4..c9bd7993c2 100755
--- a/configure
+++ b/configure
@@ -63,6 +63,7 @@ Options: [defaults in brackets after descriptions]
Help options:
--help print this message
+ --quiet Suppress showing informative output
--list-decoders show all available decoders
--list-encoders show all available encoders
--list-hwaccels show all available hardware accelerators
@@ -1417,7 +1418,7 @@ EOF
}
cp_if_changed(){
- cmp -s "$1" "$2" && echo "$2 is unchanged" && return
+ cmp -s "$1" "$2" && { test "$quiet" != "yes" && echo "$2 is unchanged"; } && return
mkdir -p "$(dirname $2)"
$cp_f "$1" "$2"
}
@@ -3509,6 +3510,8 @@ for opt do
;;
--help|-h) show_help
;;
+ --quiet|-q) quiet=yes
+ ;;
--fatal-warnings) enable fatal_warnings
;;
*)
@@ -6504,6 +6507,19 @@ postproc_deps="$(filter_out 'gpl' $postproc_deps)"
map 'expand_deps $v' $LIBRARY_LIST
+license="LGPL version 2.1 or later"
+if enabled nonfree; then
+ license="nonfree and unredistributable"
+elif enabled gplv3; then
+ license="GPL version 3 or later"
+elif enabled lgplv3; then
+ license="LGPL version 3 or later"
+elif enabled gpl; then
+ license="GPL version 2 or later"
+fi
+
+if test "$quiet" != "yes"; then
+
echo "install prefix $prefix"
echo "source path $source_path"
echo "C compiler $cc"
@@ -6614,21 +6630,12 @@ for type in decoder encoder hwaccel parser demuxer muxer protocol filter bsf ind
echo
done
-license="LGPL version 2.1 or later"
-if enabled nonfree; then
- license="nonfree and unredistributable"
-elif enabled gplv3; then
- license="GPL version 3 or later"
-elif enabled lgplv3; then
- license="LGPL version 3 or later"
-elif enabled gpl; then
- license="GPL version 2 or later"
-fi
-
echo "License: $license"
echo "Creating config.mak, config.h, and doc/config.texi..."
+fi # test "$quiet" != "yes"
+
test -e Makefile || echo "include $source_path/Makefile" > Makefile
enabled stripping || strip="echo skipping strip"