summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-29 15:44:46 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-29 15:44:46 +0000
commit3d39c823e0f955a2948cfd77b00751d069edb72a (patch)
tree3458761e15f2e6b75cee984d76e4e46d1b8967d0 /configure
parent382d7cbca8d262ceb746d4cfc1fa5d5a21e85c95 (diff)
downloadmpv-3d39c823e0f955a2948cfd77b00751d069edb72a.tar.bz2
mpv-3d39c823e0f955a2948cfd77b00751d069edb72a.tar.xz
enable vo_macosx if corevideo available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15293 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 7 insertions, 8 deletions
diff --git a/configure b/configure
index a849fce33f..0337888393 100755
--- a/configure
+++ b/configure
@@ -3199,21 +3199,20 @@ EOF
_noaomodules="macosx $_noaomodules"
_novomodules="quartz $_novomodules"
fi
-fi
-echores "$_macosx"
-
-echocheck "Mac OS X Core Video Support"
-if test "$_macosx" = yes ; then
- if test "`sysctl -n kern.osrelease | cut -d "." -f 1`" = "8" ; then
- echo "yes"
+cat > $TMPC <<EOF
+#include <Carbon/Carbon.h>
+#include <QuartzCore/CoreVideo.h>
+int main(void) {}
+EOF
+ if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
_vosrc="$_vosrc vo_macosx.m"
_vomodules="macosx $_vomodules"
_macosx_frameworks="$_macosx_frameworks -framework Cocoa -framework QuartzCore -framework OpenGL"
else
- echo "no"
_novomodules="macosx $_novomodules"
fi
fi
+echores "$_macosx"
echocheck "Mac OS X Finder Support"
if test "$_macosx_finder_support" = auto ; then