[x264-devel] Re: PPC64 support in configure

Markus Rothe markus at unixforces.net
Fri Apr 7 08:05:41 CEST 2006


On Thursday 06 April 2006 23:33, Loren Merritt wrote:
> On Thu, 6 Apr 2006, Markus Rothe wrote:
> > There are also many ppc(32) machines that do not support altivec (G3 for
> > example), so you should think about removing the lines which enable
> > altivec on ppc and let the user decide if he or she wants to add this
> > CFLAGS using --extra-cflags or not.
>
> Why would they care? It's not an error to compile in altivec support on a
> cpu that can't run it (detection also happens at runtime). Just like we
> compile in SSE2 for all x86 variants, while not all of them use it.

I see.. Sorry, I was wrong then.

The following patch is correct, is it? Unfortunaly I don't know 
what 'uname -m' reports on Mac OS X running on a G5...

Regards,

Markus Rothe


--- configure.orig      2006-04-06 18:07:44.000000000 +0000
+++ configure   2006-04-07 06:02:38.000000000 +0000
@@ -144,6 +144,15 @@
       CFLAGS="$CFLAGS -maltivec -mabi=altivec"
     fi
     ;;
+  ppc64)
+    ARCH="PPC64"
+    if [ $SYS = MACOSX ]
+    then
+      CFLAGS="$CFLAGS -faltivec"
+    else
+      CFLAGS="$CFLAGS -maltivec -mabi=altivec"
+    fi
+  ;;
   sun4m|sun4d|sparc|sparc64)
     ARCH="Sparc"
     ;;

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list