# HG changeset patch # User diego # Date 1164738564 0 # Node ID dc98645820b7c4bb6f187c94c6583678906e1830 # Parent c88f4069c619bd5c9a47336820c78874b4507017 Make MPlayer/MEncoder print the compile-time configuration in verbose mode. based on a patch by Brian Murray, brian game-sat com diff -r c88f4069c619 -r dc98645820b7 configure --- a/configure Tue Nov 28 16:50:39 2006 +0000 +++ b/configure Tue Nov 28 18:29:24 2006 +0000 @@ -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 @@ #ifndef MPLAYER_CONFIG_H #define MPLAYER_CONFIG_H 1 +#define CONFIGURATION "$_configuration" + /* use GNU internationalization */ $_def_i18n diff -r c88f4069c619 -r dc98645820b7 mencoder.c --- a/mencoder.c Tue Nov 28 16:50:39 2006 +0000 +++ b/mencoder.c Tue Nov 28 18:29:24 2006 +0000 @@ -495,6 +495,8 @@ } } } + /* Display what configure line was used */ + mp_msg(MSGT_MENCODER, MSGL_V, "Configuration: " CONFIGURATION "\n"); if (frameno_filename) { diff -r c88f4069c619 -r dc98645820b7 mplayer.c --- a/mplayer.c Tue Nov 28 16:50:39 2006 +0000 +++ b/mplayer.c Tue Nov 28 18:29:24 2006 +0000 @@ -3757,6 +3757,9 @@ } 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);