changeset 18739:13664a5039c7

Simplify and streamline FAAD detection.
author diego
date Sat, 17 Jun 2006 17:08:06 +0000
parents 6a99893397e9
children f6396989d394
files configure
diffstat 1 files changed, 22 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Jun 17 15:47:37 2006 +0000
+++ b/configure	Sat Jun 17 17:08:06 2006 +0000
@@ -1827,9 +1827,9 @@
   --disable-libmpeg2)	_libmpeg2=no	;;
   --enable-musepack)	_musepack=yes	;;
   --disable-musepack)	_musepack=no	;;
-  --enable-faad-internal)	_faad_internal=yes	_faad_external=no	;;
+  --enable-faad-internal)	_faad_internal=yes	;;
   --disable-faad-internal)	_faad_internal=no	;;
-  --enable-faad-external)	_faad_external=yes	_faad_internal=no	;;
+  --enable-faad-external)	_faad_external=yes	;;
   --disable-faad-external)	_faad_external=no	;;
   --enable-faac)	_faac=yes	;;
   --disable-faac)	_faac=no	;;
@@ -5794,7 +5794,8 @@
 fi
 echores "$_faac"
 
-echocheck "internal FAAD2 (AAC) support"
+
+echocheck "FAAD2 (AAC) support"
 if test "$_faad_internal" = auto ; then
   if x86 && test cc_vendor=gnu; then
     case $cc_version in
@@ -5809,19 +5810,7 @@
   else
     _faad_internal=yes
   fi
-fi
-if test "$_faad_internal" = yes ; then
-  _def_faad_internal="#define USE_INTERNAL_FAAD 1"
-  _faad_external=no
-else
-  _def_faad_internal="#undef USE_INTERNAL_FAAD"
-  _inc_faad=
-fi
-echores "$_faad_internal"
-
-
-echocheck "external FAAD2 (AAC) support"
-if test "$_faad_external" != no ; then
+elif test "$_faad_external" = auto ; then
   _ld_faad='-lfaad'
   _inc_faad="$_inc_extra"
   # external faad: check if it's really faad2 :)
@@ -5837,19 +5826,27 @@
     cc_check $_inc_faad $_ld_faad $_ld_lm && _faad_external=yes
   fi
 fi
-echores "$_faad_external"
-
-if test "$_faad_external" = yes; then
+
+if test "$_faad_internal" = yes ; then
+  _def_faad_internal="#define USE_INTERNAL_FAAD 1"
+  _faad=yes
+elif test "$_faad_external" = yes ; then
+  _faad=yes
+else
+  _def_faad_internal="#undef USE_INTERNAL_FAAD"
+  _faad=no
+fi
+
+if test "$_faad" = yes ; then
   _def_faad='#define HAVE_FAAD 1'
-  _codecmodules="faad2(external) $_codecmodules"
-elif test "$_faad_internal" = yes; then
-  _def_faad='#define HAVE_FAAD 1'
-  _codecmodules="faad2(internal) $_codecmodules"
+  _codecmodules="faad2 $_codecmodules"
 else
   _def_faad='#undef HAVE_FAAD'
   _nocodecmodules="faad2 $_nocodecmodules"
   _ld_faad=
-fi
+  _inc_faad=
+fi
+echores "$_faad"
 
 
 echocheck "LADSPA plugin support"
@@ -7404,6 +7401,7 @@
 LIBMPEG2 = $_libmpeg2
 TREMOR = $_tremor_internal
 TREMOR_FLAGS = $_tremor_flags
+FAAD = $_faad
 
 SPEEX = $_speex
 MUSEPACK = $_musepack