summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-12-05 15:12:02 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-12-05 15:12:02 +0000
commit85fa502b8d69f72eecee95fe3692344ae4035989 (patch)
treeecbc5a6c7d1166dab53781c70722588a36e7ce9d /configure.in
parent814d94cb28617fdafa195f8bdbd4c40db4ccc92a (diff)
downloadxine-lib-85fa502b8d69f72eecee95fe3692344ae4035989.tar.gz
xine-lib-85fa502b8d69f72eecee95fe3692344ae4035989.tar.bz2
altivec support by Jeffrey W. Baker <jwbaker@acm.org>
CVS patchset: 1171 CVS date: 2001/12/05 15:12:02
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d01c1b35f..31bb299f4 100644
--- a/configure.in
+++ b/configure.in
@@ -177,6 +177,9 @@ LIBMPEG2_CFLAGS="" dnl default include path removed, no more needed.
LIBA52_CFLAGS=""
LIBFFMPEG_CFLAGS=""
+AC_ARG_ENABLE(altivec, [ --enable-altivec use assembly codes for Motorola 74xx CPUs],
+ enable_altivec=yes, enable_altivec=no)
+
if test x$enable_mlib = x; then
AC_ARG_ENABLE(mlib,
[ --disable-mlib make a version not using mediaLib],
@@ -561,6 +564,12 @@ case "$host_or_hostalias" in
GLOBAL_CFLAGS="$GLOBAL_CFLAGS -O3 -pipe -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions"
DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
AC_DEFINE(FPM_PPC)
+ AC_DEFINE(ARCH_PPC)
+
+ if test x$enable_altivec = xyes; then
+ AC_DEFINE(ENABLE_ALTIVEC)
+ GLOBAL_CFLAGS="$GLOBAL_CFLAGS -Wa,-m7400"
+ fi
;;
sparc*-*-linux*)