changeset 29223:3c13788cc259

cosmetics: Move CoreAudio check to audio output section.
author diego
date Tue, 05 May 2009 17:57:44 +0000
parents 1ce79aed275a
children 1b0acc3d6781
files configure
diffstat 1 files changed, 24 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue May 05 17:36:31 2009 +0000
+++ b/configure	Tue May 05 17:57:44 2009 +0000
@@ -3807,28 +3807,6 @@
 
 if darwin; then
 
-echocheck "CoreAudio"
-if test "$_coreaudio" = auto ; then
-  cat > $TMPC <<EOF
-#include <CoreAudio/CoreAudio.h>
-#include <AudioToolbox/AudioToolbox.h>
-#include <AudioUnit/AudioUnit.h>
-int main(void) { return 0; }
-EOF
-  _coreaudio=no
-  cc_check -framework CoreAudio -framework AudioUnit -framework AudioToolbox && _coreaudio=yes
-fi
-if test "$_coreaudio" = yes ; then
-  libs_mplayer="$libs_mplayer -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
-  def_coreaudio='#define CONFIG_COREAUDIO 1'
-  _aomodules="coreaudio $_aomodules"
-else
-  def_coreaudio='#undef CONFIG_COREAUDIO'
-  _noaomodules="coreaudio $_noaomodules"
-fi
-echores $_coreaudio
-
-
 echocheck "Quartz framework"
 if test "$_quartz" = auto ; then
   cat > $TMPC <<EOF
@@ -5680,6 +5658,30 @@
 fi #if sunos
 
 
+if darwin; then
+echocheck "CoreAudio"
+if test "$_coreaudio" = auto ; then
+  cat > $TMPC <<EOF
+#include <CoreAudio/CoreAudio.h>
+#include <AudioToolbox/AudioToolbox.h>
+#include <AudioUnit/AudioUnit.h>
+int main(void) { return 0; }
+EOF
+  _coreaudio=no
+  cc_check -framework CoreAudio -framework AudioUnit -framework AudioToolbox && _coreaudio=yes
+fi
+if test "$_coreaudio" = yes ; then
+  libs_mplayer="$libs_mplayer -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
+  def_coreaudio='#define CONFIG_COREAUDIO 1'
+  _aomodules="coreaudio $_aomodules"
+else
+  def_coreaudio='#undef CONFIG_COREAUDIO'
+  _noaomodules="coreaudio $_noaomodules"
+fi
+echores $_coreaudio
+fi #if darwin
+
+
 if irix; then
 echocheck "SGI audio"
 if test "$_sgiaudio" = auto ; then