[Mplayer-cvslog] CVS: main configure,1.691,1.692

Alex Beregszaszi alex at mplayerhq.hu
Tue Apr 8 18:11:21 CEST 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv20680

Modified Files:
	configure 
Log Message:
Darwin Altivec detection fixes and MacOSX API detection reworked, based on patch by Dan Christiansen <danchr at daimi.au.dk>

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.691
retrieving revision 1.692
diff -u -r1.691 -r1.692
--- configure	7 Apr 2003 21:08:56 -0000	1.691
+++ configure	8 Apr 2003 16:10:52 -0000	1.692
@@ -858,6 +858,11 @@
 	_march='-mcpu=750'
 	_mcpu='-mtune=750'
     fi
+    if darwin ; then
+	if [[ $(sysctl -n hw.vectorunit) == 1 ]]; then
+	    _altivec=yes
+ 	fi
+    fi
     ;;
 
   alpha)
@@ -2366,29 +2371,27 @@
         _macosx=yes
     else
 	_macosx=no
+	_def_macosx='#undef MACOSX'
     fi
 fi
 if test "$_macosx" = yes ; then
   cat > $TMPC <<EOF
 #include <Carbon/Carbon.h>
-#include <Cocoa/Cocoa.h>
 #include <QuickTime/QuickTime.h>
-int main(void) { 
-  NSApplicationLoad(); 
+int main(void) {
+    EnterMovies();
+    ExitMovies();
+    CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
 }
 EOF
-  if cc_check -ObjC -framework Carbon -framework Cocoa -framework QuickTime ; then 
+  if cc_check -framework Carbon -framework QuickTime ; then 
     _macosx=yes
-    _macosx_frameworks="-framework Carbon -framework Cocoa -framework QuickTime "
+    _macosx_frameworks="-framework Carbon -framework QuickTime"
+    _def_macosx='#define MACOSX 1'
   else
     _macosx=no
-    echo -n "failed to detect Mac OS X APIs, defaulting to "
-  fi
-fi
-if test "$_macosx" = yes ; then
-    _def_macosx='#define MACOSX 1'
-else
     _def_macosx='#undef MACOSX'
+  fi
 fi
 echores "$_macosx"
 



More information about the MPlayer-cvslog mailing list