diff options
author | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-03 17:35:49 +0000 |
---|---|---|
committer | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-03 17:35:49 +0000 |
commit | b6e4a7971295b7f831227b5b36bba10d8d2adc7e (patch) | |
tree | 169d1676fc85810c71e3a4635cc8157bd7de971f /configure | |
parent | ac8b01d5054af43c00049806aa03af4c9ddb8f0b (diff) | |
download | mpv-b6e4a7971295b7f831227b5b36bba10d8d2adc7e.tar.bz2 mpv-b6e4a7971295b7f831227b5b36bba10d8d2adc7e.tar.xz |
makes --enable-*-faad really enable without any further check and drop support for old external faad2 versions (<= 1.1)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14639 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 4 insertions, 30 deletions
@@ -5319,7 +5319,10 @@ if test "$_faad_external" != no ; then _faad_external=no cat > $TMPC << EOF #include <faad.h> -int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); return 0; } +#ifndef FAAD_MIN_STREAMSIZE +#error Too old version +#endif +int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); faacDecInit(0, 0, 0, 0, 0); return 0; } EOF cc_check $_inc_faad $_ld_faad $_ld_lm && _faad_external=yes fi @@ -5328,34 +5331,6 @@ else echores "no" fi -if test "$_faad_internal" = yes -o "$_faad_external" = yes; then -echocheck "FAAD2 version" -cat > $TMPC <<EOF -#include <faad.h> -#ifndef FAAD_MIN_STREAMSIZE -#error Too old version -#endif -int main(void) { -#ifdef FAAD2_VERSION - printf("%s\n",FAAD2_VERSION); -#else - printf("1.0\n"); -#endif - return 0; -} -EOF - if cc_check -I- $_inc_faad $_ld_faad $_ld_lm && "$TMPO" >> "$TMPLOG" ; then - _faad_version=`"$TMPO"` - _faad_tempversion=`"$TMPO" | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1\2/'` - _def_faad_version="#define FAADVERSION $_faad_tempversion" - echores "$_faad_version" - else - _faad_external=no - _faad_internal=no - echores "failed to get version" - fi -fi - if test "$_faad_external" = yes; then _def_faad='#define HAVE_FAAD 1' _codecmodules="faad2(external) $_codecmodules" @@ -7345,7 +7320,6 @@ $_def_matroska /* enable FAAD (AAC) support */ $_def_faad $_def_faad_internal -$_def_faad_version /* enable LADSPA plugin support */ $_def_ladspa |