]> granicus.if.org Git - libx264/commitdiff
Changes the PowerPC ppccommon.h header so it no longer checks for a particular
authorBrad Smith <brad@comstyle.com>
Sat, 17 Jan 2009 12:52:28 +0000 (12:52 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Sat, 17 Jan 2009 12:52:28 +0000 (12:52 +0000)
OS such as Linux but instead looks for HAVE_ALTIVEC_H being set.
Fixes all *BSD/PowerPC builds.

common/ppc/ppccommon.h
configure

index a3d18b50eee8500cafa20be1df7c64b0004041f5..7c8788596f1298c7db2056367ad944f13dc9864a 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#ifdef SYS_LINUX
+#ifdef HAVE_ALTIVEC_H
 #include <altivec.h>
 #endif
 
index eb5109192366d005d10114eec588b220695c8aa6..599b1050e016e7a9349e0f512377c4b6dda6b914 100755 (executable)
--- a/configure
+++ b/configure
@@ -263,7 +263,7 @@ case $host_cpu in
     then
       ALTIVECFLAGS="$ALTIVECFLAGS -faltivec -fastf -mcpu=G4"
     else
-      ALTIVECFLAGS="$ALTIVECFLAGS -maltivec -mabi=altivec"
+      ALTIVECFLAGS="$ALTIVECFLAGS -maltivec -mabi=altivec -DHAVE_ALTIVEC_H"
     fi
     ;;
   sparc)