changeset 21342:dc98645820b7

Make MPlayer/MEncoder print the compile-time configuration in verbose mode. based on a patch by Brian Murray, brian game-sat com
author diego
date Tue, 28 Nov 2006 18:29:24 +0000
parents c88f4069c619
children 9efa61654dcc
files configure mencoder.c mplayer.c
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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) {
--- 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);