[MPlayer-cvslog] r28029 - trunk/configure

gpoirier subversion at mplayerhq.hu
Mon Nov 24 18:27:05 CET 2008


Author: gpoirier
Date: Mon Nov 24 18:27:05 2008
New Revision: 28029

Log:
add specific test to check if we can enable ao_macosx not matter how vo_quartz test may turn out


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Mon Nov 24 18:27:05 2008
@@ -3582,9 +3582,23 @@ if test "$_macosx" = auto ; then
 fi
 if test "$_macosx" = yes ; then
   cat > $TMPC <<EOF
+#include <CoreAudio/CoreAudio.h>
+int main(void) { return 0; }
+EOF
+  if cc_check -framework CoreAudio; then
+    _ld_extra="$_ld_extra -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
+    _coreaudio=yes
+    _def_coreaudio='#define CONFIG_COREAUDIO 1'
+    _aosrc="$_aosrc ao_macosx.c"
+    _aomodules="macosx $_aomodules"
+  else
+    _coreaudio=no
+    _def_coreaudio='#undef CONFIG_COREAUDIO'
+    _noaomodules="macosx $_noaomodules"
+  fi
+  cat > $TMPC <<EOF
 #include <Carbon/Carbon.h>
 #include <QuickTime/QuickTime.h>
-#include <CoreAudio/CoreAudio.h>
 int main(void) {
     EnterMovies();
     ExitMovies();



More information about the MPlayer-cvslog mailing list