aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-24 17:27:05 +0000
committerGravatar gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-24 17:27:05 +0000
commit3fa1eb2a60cdb8822753d1314f31a0676161e74d (patch)
tree7969dc5b1f48cbed219eeabbc8c6c3c538882b5d /configure
parentc27cdb7288da825f85a88337b6baa9f506643f51 (diff)
add specific test to check if we can enable ao_macosx not matter how vo_quartz test may turn out
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28029 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index 547369c485..cf90bc85b7 100755
--- a/configure
+++ b/configure
@@ -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();