Improve CoreVideo check: Test more #includes, add -framework Carbon to LDFLAGS.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29247 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-05-04 13:16:04 +00:00
parent 0044b18877
commit a094d6279b
1 changed files with 5 additions and 2 deletions

7
configure vendored
View File

@ -3854,15 +3854,18 @@ echocheck "CoreVideo"
if test "$_corevideo" = auto ; then
cat > $TMPC <<EOF
#include <Carbon/Carbon.h>
#include <CoreServices/CoreServices.h>
#include <OpenGL/OpenGL.h>
#include <QuartzCore/CoreVideo.h>
#include <QuickTime/QuickTime.h>
int main(void) { return 0; }
EOF
_corevideo=no
cc_check -framework Carbon -framework QuartzCore -framework OpenGL && _corevideo=yes
cc_check -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes
fi
if test "$_corevideo" = yes ; then
_vomodules="macosx $_vomodules"
extra_ldflags="$extra_ldflags -framework Cocoa -framework QuartzCore -framework OpenGL"
extra_ldflags="$extra_ldflags -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL"
def_corevideo='#define CONFIG_COREVIDEO 1'
else
_novomodules="macosx $_novomodules"