diff options
author | Anton Blanchard <anton@ozlabs.org> | 2018-07-08 14:56:31 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2018-08-20 18:16:34 +1000 |
commit | f301518c5288d495cff463ec7f1e3972918f285b (patch) | |
tree | 72710da5eff5dba327bb2b426ab0c30ee0857f74 /configure.ac | |
parent | 5e0d4187a2001babb6b319d8f8b89171e7fd21cd (diff) | |
download | flac-f301518c5288d495cff463ec7f1e3972918f285b.tar.gz |
configure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64
FLAC__CPU_PPC wasn't catching powerpcle or powerpc64le. Fix that and
add a new define for FLAC__CPU_PPC64.
Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 592e7750..55078293 100644 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,16 @@ case "$host_cpu" in AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) asm_optimisation=$asm_opt ;; - powerpc|powerpc64) + powerpc64|powerpc64le) + cpu_ppc64=true + cpu_ppc=true + AC_DEFINE(FLAC__CPU_PPC) + AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC]) + AC_DEFINE(FLAC__CPU_PPC64) + AH_TEMPLATE(FLAC__CPU_PPC64, [define if building for PowerPC64]) + asm_optimisation=$asm_opt + ;; + powerpc|powerpcle) cpu_ppc=true AC_DEFINE(FLAC__CPU_PPC) AH_TEMPLATE(FLAC__CPU_PPC, [define if building for PowerPC]) @@ -157,6 +166,7 @@ esac AM_CONDITIONAL(FLAC__CPU_X86_64, test "x$cpu_x86_64" = xtrue) AM_CONDITIONAL(FLaC__CPU_IA32, test "x$cpu_ia32" = xtrue) AM_CONDITIONAL(FLaC__CPU_PPC, test "x$cpu_ppc" = xtrue) +AM_CONDITIONAL(FLaC__CPU_PPC64, test "x$cpu_ppc64" = xtrue) AM_CONDITIONAL(FLaC__CPU_SPARC, test "x$cpu_sparc" = xtrue) if test "x$ac_cv_header_x86intrin_h" = xyes; then |