diff mbox

[2/3] configure: add ARCH optimisation support by directory

Message ID 1427919128-30737-2-git-send-email-mike.holmes@linaro.org
State Superseded
Headers show

Commit Message

Mike Holmes April 1, 2015, 8:12 p.m. UTC
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 configure.ac | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 57054c5..f14648c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,16 @@  AC_TYPE_UINT32_T
 AC_TYPE_UINT64_T
 
 ##########################################################################
+# Which archetecture optimizations will we use
+##########################################################################
+AS_CASE([$host],
+  [x86*], [ARCH=x86],
+  [mips64*], [ARCH=mips64],
+  [ARCH=linux]
+)
+AC_SUBST([ARCH])
+
+##########################################################################
 # Set correct platform library version
 ##########################################################################
 AGE=0
@@ -286,6 +296,7 @@  AC_MSG_RESULT([
 
 	Library version:	${ODP_LIBSO_VERSION}
 
+	arch			${ARCH}
 	with_platform:		${with_platform}
 	prefix:			${prefix}
 	sysconfdir:		${sysconfdir}