Improve CoreAudio check: Use all required headers and frameworks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29258 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
1 parent
614a0e9800
commit
9b7c75da73
1 file changed
+3
-1
@@ -3807,10 +3807,12 @@ 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 && _coreaudio=yes
|
||||
cc_check -framework CoreAudio -framework AudioUnit -framework AudioToolbox && _coreaudio=yes
|
||||
fi
|
||||
if test "$_coreaudio" = yes ; then
|
||||
extra_ldflags="$extra_ldflags -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
|
||||
|
||||
Reference in new issue
Block a user