summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-28 18:29:24 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-28 18:29:24 +0000
commit0810e42750fb2e2e0d602388cef1b8ea8015d935 (patch)
tree2c05e5a8221cfa6b5c25bb1a485983766c9462c5
parentcaffd06415507eb8029df052d0ae23a72b9609c6 (diff)
downloadmpv-0810e42750fb2e2e0d602388cef1b8ea8015d935.tar.bz2
mpv-0810e42750fb2e2e0d602388cef1b8ea8015d935.tar.xz
Make MPlayer/MEncoder print the compile-time configuration in verbose mode.
based on a patch by Brian Murray, brian game-sat com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21358 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xconfigure5
-rw-r--r--mencoder.c2
-rw-r--r--mplayer.c3
3 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index cc2433153e..66b870b833 100755
--- a/configure
+++ b/configure
@@ -53,6 +53,9 @@
LC_ALL=C
export LC_ALL
+# Store the configure line that was used
+_configuration="$*"
+
# Prefer these macros to full length text !
# These macros only return an error code - NO display is done
compile_check() {
@@ -7527,6 +7530,8 @@ cat > config.h << EOF
#ifndef MPLAYER_CONFIG_H
#define MPLAYER_CONFIG_H 1
+#define CONFIGURATION "$_configuration"
+
/* use GNU internationalization */
$_def_i18n
diff --git a/mencoder.c b/mencoder.c
index c993c60137..55e5f746ed 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -495,6 +495,8 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
}
}
}
+ /* Display what configure line was used */
+ mp_msg(MSGT_MENCODER, MSGL_V, "Configuration: " CONFIGURATION "\n");
if (frameno_filename) {
diff --git a/mplayer.c b/mplayer.c
index 11f0f2b2d2..4b84d1b8a7 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3757,6 +3757,9 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
} else gui_no_filename=1;
}
+ /* Display what configure line was used */
+ mp_msg(MSGT_CPLAYER, MSGL_V, "Configuration: " CONFIGURATION "\n");
+
// Many users forget to include command line in bugreports...
if( mp_msg_test(MSGT_CPLAYER,MSGL_V) ){
mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_CommandLine);