From 9937f480245ef53f3e6000c09bbbf4fa0fce9404 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 23:39:26 -0400 Subject: [PATCH] Only select efficient unaligned accesses for x86 and powerpc This is why the Linux kernel does at this point. Signed-off-by: Mathieu Desnoyers --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9002159..908b7de 100644 --- a/configure.ac +++ b/configure.ac @@ -101,11 +101,11 @@ changequote([,])dnl x86_64) LIBFORMAT="elf64-x86-64" ;; powerpc) LIBFORMAT="elf32-powerpc" ;; ppc64) LIBFORMAT="elf64-powerpc" ;; - s390) LIBFORMAT="elf32-s390" ;; - s390x) LIBFORMAT="elf64-s390" ;; + s390) LIBFORMAT="elf32-s390"; NO_UNALIGNED_ACCESS=1 ;; + s390x) LIBFORMAT="elf64-s390"; NO_UNALIGNED_ACCESS=1 ;; armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;; - arm) LIBFORMAT="elf32-littlearm" ;; - mips*) LIBFORMAT="" ;; + arm) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;; + mips*) LIBFORMAT=""; NO_UNALIGNED_ACCESS=1;; *) AC_MSG_ERROR([unable to detect library format (unsupported architecture ($host_cpu)?)]) ;; esac AC_SUBST(LIBFORMAT) -- 2.34.1