# HG changeset patch # User alex # Date 1049818252 0 # Node ID ea743bdf7e4dd65e15bd040612879251577200bb # Parent 95727467a091bd7c220839263fc1aff37deb003a Darwin Altivec detection fixes and MacOSX API detection reworked, based on patch by Dan Christiansen diff -r 95727467a091 -r ea743bdf7e4d configure --- a/configure Tue Apr 08 05:14:43 2003 +0000 +++ b/configure Tue Apr 08 16:10:52 2003 +0000 @@ -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,30 +2371,28 @@ _macosx=yes else _macosx=no + _def_macosx='#undef MACOSX' fi fi if test "$_macosx" = yes ; then cat > $TMPC < -#include #include -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 " + _def_macosx='#undef MACOSX' fi fi -if test "$_macosx" = yes ; then - _def_macosx='#define MACOSX 1' -else - _def_macosx='#undef MACOSX' -fi echores "$_macosx"