Mercurial > mplayer.hg
changeset 20512:27bae76a6d48
Add a parameter to enable colorized console output.
patch by Andrew Savchenko, bircoph list ru
author | diego |
---|---|
date | Mon, 30 Oct 2006 11:22:11 +0000 |
parents | ee40a648768b |
children | 79e31d843808 |
files | configure |
diffstat | 1 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Oct 30 09:08:19 2006 +0000 +++ b/configure Mon Oct 30 11:22:11 2006 +0000 @@ -396,6 +396,7 @@ --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 @@ _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 @@ --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 @@ 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 @@ /* 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