From 85fa502b8d69f72eecee95fe3692344ae4035989 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Wed, 5 Dec 2001 15:12:02 +0000 Subject: altivec support by Jeffrey W. Baker CVS patchset: 1171 CVS date: 2001/12/05 15:12:02 --- configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.in') 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*) -- cgit v1.2.3