]> git.sesse.net Git - mlt/commitdiff
configure: fix mmx/sse detection on OS X and add detection of x86_64 to define ARCH_X...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 12 Dec 2008 08:56:08 +0000 (08:56 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 12 Dec 2008 08:56:08 +0000 (08:56 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1261 d19143bc-622f-0410-bfdd-b5b2a6649095

configure

index dce184f6e2041fd74844f92cf194e656517e7d8d..2929578014e09419a089a86d2a4bdaf4ada8cb70 100755 (executable)
--- a/configure
+++ b/configure
@@ -67,6 +67,7 @@ build_config()
 
                case $targetos in
                Darwin)
+               sysctl -a hw | grep "x86_64: 1" > /dev/null && echo "CFLAGS+=-DARCH_X86_64"
                echo "CFLAGS+=-D__DARWIN__ `sdl-config --cflags`"
                echo "SHFLAGS=-dynamiclib"
                echo "LDFLAGS+=`sdl-config --libs`"
@@ -174,7 +175,7 @@ if [ "$mmx" = "true" ]
 then
        case $targetos in
                Darwin)
-               sysctl -a hw | grep mmx: > /dev/null | mmx=false
+               sysctl -a hw | grep "mmx: 1" > /dev/null || mmx=false
                ;;
                Linux)
                grep mmx /proc/cpuinfo > /dev/null 2>&1 || mmx=false
@@ -193,7 +194,7 @@ if [ "$sse" = "true" ]
 then
        case $targetos in
                Darwin)
-               sysctl -a hw | grep sse: > /dev/null | sse=false
+               sysctl -a hw | grep "sse: 1" > /dev/null || sse=false
                ;;
                Linux)
                grep sse /proc/cpuinfo > /dev/null 2>&1 || sse=false