summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-08 16:10:52 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-08 16:10:52 +0000
commitb48febac40063febb0c332f37578c147a8d36a3f (patch)
treeb88796cb11c61dd1fe040a652f81d747a7bb764b /configure
parent68d505b20277032aeba9236c91ae95885758fc2a (diff)
downloadmpv-b48febac40063febb0c332f37578c147a8d36a3f.tar.bz2
mpv-b48febac40063febb0c332f37578c147a8d36a3f.tar.xz
Darwin Altivec detection fixes and MacOSX API detection reworked, based on patch by Dan Christiansen <danchr@daimi.au.dk>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9880 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure25
1 files changed, 14 insertions, 11 deletions
diff --git a/configure b/configure
index 6a249df5b1..b22ea1db2d 100755
--- a/configure
+++ b/configure
@@ -858,6 +858,11 @@ EOF
_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 @@ if test "$_macosx" = auto ; then
_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"