From eebfc280f5a48d52046b9941b7bbc06f071142cf Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 30 Oct 2006 11:22:11 +0000 Subject: [PATCH] Add a parameter to enable colorized console output. patch by Andrew Savchenko, bircoph list ru git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20528 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 17675f94d1..befab9e155 100755 --- a/configure +++ b/configure @@ -396,6 +396,7 @@ Miscellaneous options: --install-path=PATH the path to a custom install program this option is obsolete and will be removed soon, use --with-install instead. + --enable-color-console enable color console output [disable] Advanced options: --enable-mmx build with MMX support [autodetect] @@ -1723,6 +1724,7 @@ _pthreads=auto _ass=auto _rpath=no _asmalign_pot=auto +_color_console=no for ac_option do case "$ac_option" in # Skip 1st pass @@ -2036,6 +2038,8 @@ for ac_option do --disable-ass) _ass=no ;; --enable-rpath) _rpath=yes ;; --disable-rpath) _rpath=no ;; + --enable-color-console) _color_console=yes ;; + --disable-color-console) _color_console=no ;; --enable-fribidi) _fribidi=yes ;; --disable-fribidi) _fribidi=no ;; @@ -7418,6 +7422,14 @@ fi echores "$_maemo" fi +echocheck "color console output" +if test "$_color_console" = yes ; then + _def_color_console='#define MSG_USE_COLORS 1' +else + _def_color_console='#undef MSG_USE_COLORS' +fi +echores "$_color_console" + ############################################################################# echo "Creating config.mak" cat > config.mak << EOF @@ -7729,8 +7741,8 @@ $_def_crash_debug /* Toggles debugging informations */ $_def_debug -/* Toggles colorized output */ -//#define MSG_USE_COLORS 1 +/* Toggles color console output */ +$_def_color_console /* Indicates that libcdio is available for VCD and CD-DA playback */ $_def_libcdio