[build] configure/Makefile changes to use SIMD exp and BLAS when available

This commit is contained in:
Al
2016-08-06 00:43:24 -04:00
parent 59e28c6c2a
commit 3137ef5c6a
3 changed files with 276 additions and 16 deletions

View File

@@ -3,6 +3,8 @@
AC_INIT([libpostal], [0.3])
AC_CONFIG_MACRO_DIRS([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([src])
LT_INIT([shared])
@@ -60,4 +62,20 @@ AC_CHECK_PROG([FOUND_SHUF], [shuf], [yes])
AS_IF([test "x$FOUND_SHUF" = xyes], [AC_DEFINE([HAVE_SHUF], [1], [shuf available])])
# ------------------------------------------------------------------
# Checks for SSE2 build
# ------------------------------------------------------------------
AC_ARG_ENABLE([sse2],
AS_HELP_STRING(
[--disable-sse2],
[disable SSE2 optimization routines]
)
)
AS_IF([test "x$enable_sse2" != "xno"], [
CFLAGS="-mfpmath=sse -msse2 -DUSE_SSE ${CFLAGS}"
])
AX_BLAS()
AC_OUTPUT