diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-28 18:29:24 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-28 18:29:24 +0000 |
commit | 0810e42750fb2e2e0d602388cef1b8ea8015d935 (patch) | |
tree | 2c05e5a8221cfa6b5c25bb1a485983766c9462c5 | |
parent | caffd06415507eb8029df052d0ae23a72b9609c6 (diff) | |
download | mpv-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-x | configure | 5 | ||||
-rw-r--r-- | mencoder.c | 2 | ||||
-rw-r--r-- | mplayer.c | 3 |
3 files changed, 10 insertions, 0 deletions
@@ -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) { @@ -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); |