Mercurial > mplayer.hg
comparison configure @ 23168:8a3e20d054e2
cosmetics: Fix bogus indentation.
author | diego |
---|---|
date | Tue, 01 May 2007 13:55:28 +0000 |
parents | d5db3f1f79b1 |
children | f1fedd147362 |
comparison
equal
deleted
inserted
replaced
23167:2ab3eac7f6da | 23168:8a3e20d054e2 |
---|---|
6523 | 6523 |
6524 | 6524 |
6525 # mencoder requires (optional) those libs: libmp3lame | 6525 # mencoder requires (optional) those libs: libmp3lame |
6526 if test "$_mencoder" != no ; then | 6526 if test "$_mencoder" != no ; then |
6527 | 6527 |
6528 echocheck "libmp3lame (for mencoder)" | 6528 echocheck "libmp3lame (for mencoder)" |
6529 _mp3lame=no | 6529 _mp3lame=no |
6530 _def_mp3lame_preset='#undef HAVE_MP3LAME_PRESET' | 6530 _def_mp3lame_preset='#undef HAVE_MP3LAME_PRESET' |
6531 _def_mp3lame_preset_medium='#undef HAVE_MP3LAME_PRESET_MEDIUM' | 6531 _def_mp3lame_preset_medium='#undef HAVE_MP3LAME_PRESET_MEDIUM' |
6532 cat > $TMPC <<EOF | 6532 cat > $TMPC <<EOF |
6533 #include <lame/lame.h> | 6533 #include <lame/lame.h> |
6534 int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv); printf("%d%d\n",lv.major,lv.minor); return 0; } | 6534 int main(void) { lame_version_t lv; (void) lame_init(); get_lame_version_numerical(&lv); printf("%d%d\n",lv.major,lv.minor); return 0; } |
6535 EOF | 6535 EOF |
6536 # Note: libmp3lame usually depends on vorbis | 6536 # Note: libmp3lame usually depends on vorbis |
6537 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes | 6537 cc_check -lmp3lame $_ld_lm && tmp_run && _mp3lame=yes |
6538 if test "$_mp3lame" = yes ; then | 6538 if test "$_mp3lame" = yes ; then |
6539 _def_mp3lame="#define HAVE_MP3LAME" | 6539 _def_mp3lame="#define HAVE_MP3LAME" |
6540 _ld_mp3lame=-lmp3lame | 6540 _ld_mp3lame=-lmp3lame |
6541 _libs_mencoder="$_libs_mencoder $_ld_mp3lame" | 6541 _libs_mencoder="$_libs_mencoder $_ld_mp3lame" |
6542 cat > $TMPC << EOF | 6542 cat > $TMPC << EOF |
6543 #include <lame/lame.h> | 6543 #include <lame/lame.h> |
6544 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; } | 6544 int main(void) { lame_set_preset(NULL, STANDARD_FAST); return 0; } |
6545 EOF | 6545 EOF |
6546 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define HAVE_MP3LAME_PRESET" | 6546 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset="#define HAVE_MP3LAME_PRESET" |
6547 cat > $TMPC << EOF | 6547 cat > $TMPC << EOF |
6548 #include <lame/lame.h> | 6548 #include <lame/lame.h> |
6549 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } | 6549 int main(void) { lame_set_preset(NULL, MEDIUM_FAST); return 0; } |
6550 EOF | 6550 EOF |
6551 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM" | 6551 cc_check $_ld_mp3lame $_ld_lm && _def_mp3lame_preset_medium="#define HAVE_MP3LAME_PRESET_MEDIUM" |
6552 if echo $_libavencoders | grep -q MP3LAME ; then | 6552 if echo $_libavencoders | grep -q MP3LAME ; then |
6553 _lavc_mp3lame=yes | 6553 _lavc_mp3lame=yes |
6554 _def_lavc_mp3lame="#define CONFIG_LIBMP3LAME 1" | 6554 _def_lavc_mp3lame="#define CONFIG_LIBMP3LAME 1" |
6555 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" | 6555 _libs_mplayer="$_libs_mplayer $_ld_mp3lame" |
6556 else | |
6557 _lavc_mp3lame=no | |
6558 _def_lavc_mp3lame="#undef CONFIG_LIBMP3LAME" | |
6559 fi | |
6560 else | 6556 else |
6561 _def_mp3lame='#undef HAVE_MP3LAME' | 6557 _lavc_mp3lame=no |
6562 fi | 6558 _def_lavc_mp3lame="#undef CONFIG_LIBMP3LAME" |
6563 echores "$_mp3lame" | 6559 fi |
6560 else | |
6561 _def_mp3lame='#undef HAVE_MP3LAME' | |
6562 fi | |
6563 echores "$_mp3lame" | |
6564 | 6564 |
6565 fi | 6565 fi |
6566 | 6566 |
6567 echocheck "mencoder" | 6567 echocheck "mencoder" |
6568 _mencoder_flag='#undef HAVE_MENCODER' | 6568 _mencoder_flag='#undef HAVE_MENCODER' |