Mercurial > audlegacy
changeset 4881:a74ccf27f8f2
Better Altivec support.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Tue, 05 May 2009 17:00:13 -0500 |
parents | 1127ed19b368 |
children | d3af4699043f |
files | acinclude.m4 |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/acinclude.m4 Mon May 04 23:20:56 2009 -0400 +++ b/acinclude.m4 Tue May 05 17:00:13 2009 -0500 @@ -222,7 +222,7 @@ CFLAGS="$aud_my_save_CFLAGS" ]) -dnl AltiVec support +dnl AltiVec support dnl =============== AUD_ARG_ENABLE([altivec], [yes], [AltiVec support], [ @@ -231,12 +231,19 @@ AC_DEFINE([HAVE_ALTIVEC], 1, [Define to 1 if your system has AltiVec.]) AC_DEFINE([HAVE_ALTIVEC_H], 1, [Define to 1 if your system has an altivec.h file.]) AC_DEFINE([ARCH_POWERPC], 1, [Define to 1 if your system is a PowerPC.]) - SIMD_CFLAGS="-maltivec" + case $target in + *-apple-*) + SIMD_CFLAGS="-mpim-altivec" + ;; + *) + SIMD_CFLAGS="-maltivec" + ;; + esac AC_SUBST([SIMD_CFLAGS]) ],[ enable_altivec="no" ]) -]) +]) ])