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
This commit is contained in:
diego 2006-11-28 18:29:24 +00:00
parent caffd06415
commit 0810e42750
3 changed files with 10 additions and 0 deletions

5
configure vendored
View File

@ -53,6 +53,9 @@
LC_ALL=C LC_ALL=C
export LC_ALL export LC_ALL
# Store the configure line that was used
_configuration="$*"
# Prefer these macros to full length text ! # Prefer these macros to full length text !
# These macros only return an error code - NO display is done # These macros only return an error code - NO display is done
compile_check() { compile_check() {
@ -7527,6 +7530,8 @@ cat > config.h << EOF
#ifndef MPLAYER_CONFIG_H #ifndef MPLAYER_CONFIG_H
#define MPLAYER_CONFIG_H 1 #define MPLAYER_CONFIG_H 1
#define CONFIGURATION "$_configuration"
/* use GNU internationalization */ /* use GNU internationalization */
$_def_i18n $_def_i18n

View File

@ -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) { if (frameno_filename) {

View File

@ -3757,6 +3757,9 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
} else gui_no_filename=1; } 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... // Many users forget to include command line in bugreports...
if( mp_msg_test(MSGT_CPLAYER,MSGL_V) ){ if( mp_msg_test(MSGT_CPLAYER,MSGL_V) ){
mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_CommandLine); mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_CommandLine);