changeset 29205:94b0940726ca

Improve CoreVideo check: Test more #includes, add -framework Carbon to LDFLAGS.
author diego
date Mon, 04 May 2009 13:16:04 +0000
parents de815ca5405c
children 7a70063d8b5b
files configure
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon May 04 11:44:36 2009 +0000
+++ b/configure	Mon May 04 13:16:04 2009 +0000
@@ -3854,15 +3854,18 @@
 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"