Blame view

configure.ac 1.82 KB
153dd209   KMG   Setting up autoco...
1
2
3
4
5
# gf-complete autoconf template

# FIXME - add project url as the last argument
AC_INIT(gf-complete, 1.0)

d315d20d   Janne Grunau   build: make CFLAG...
6
7
8
# Override default CFLAGS
: ${CFLAGS="-Wall -Wpointer-arith -O3 -g"}

153dd209   KMG   Setting up autoco...
9
10
AC_PREREQ([2.61])

2a2f1e30   Janne Grunau   check: split unit...
11
AM_INIT_AUTOMAKE([no-dependencies foreign parallel-tests])
153dd209   KMG   Setting up autoco...
12
13
14
15
16
17
18
LT_INIT # libtool

AC_CONFIG_HEADER(include/config.h)

dnl Needed when reconfiguring with 'autoreconf -i -s'
AC_CONFIG_MACRO_DIR([m4])

a98f6c11   Kevin Greenan   Added entry to co...
19
20
21
# This prevents './configure; make' from trying to run autotools.
AM_MAINTAINER_MODE([disable])

153dd209   KMG   Setting up autoco...
22
23
24
dnl Compiling with per-target flags requires AM_PROG_CC_C_O.
AC_PROG_CC

36e75c3e   Janne Grunau   use posix_memalig...
25
26
27
28
29
30
31
# Check for functions to provide aligned memory
#
AC_CHECK_FUNCS([posix_memalign],
 [found_memalign=yes; break])

AS_IF([test "x$found_memalign" != "xyes"], [AC_MSG_WARN([No function for aligned memory allocation found])])

0690ba86   Bassam Tabbara   Added --enable fl...
32
33
34
35
36
37
38
39
AX_EXT()

AC_ARG_ENABLE([neon],
              AS_HELP_STRING([--disable-neon], [Build without NEON optimizations]))

AS_IF([test "x$enable_neon" != "xno"],
      [noneon_CPPFLAGS=$CPPFLAGS
       CPPFLAGS="$CPPFLAGS $SIMD_FLAGS"
153dd209   KMG   Setting up autoco...
40
41
       AC_CHECK_HEADER([arm_neon.h],
                       [have_neon=yes],
eb5ce0ca   Janne Grunau   configure: add AR...
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
                       [have_neon=no
                        CPPFLAGS=$noneon_CPPFLAGS])],
      [have_neon=no
       AS_IF([test "x$ax_cv_have_neon_ext" = "xyes"],
             [SIMD_FLAGS=""])
      ])

AS_IF([test "x$have_neon" = "xno"],
      [AS_IF([test "x$enable_neon" = "xyes"],
             [AC_MSG_ERROR([neon requested but arm_neon.h not found])])
      ])
AM_CONDITIONAL([HAVE_NEON], [test "x$have_neon" = "xyes"])

AC_ARG_ENABLE([sse],
              AS_HELP_STRING([--disable-sse], [Build without SSE optimizations]),
              [if   test "x$enableval" = "xno" ; then
                SIMD_FLAGS=""
                echo "DISABLED SSE!!!"
              fi]
)

a11dc931   Kevin Greenan   Adding option to ...
63
64
AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile test/Makefile examples/Makefile])
AC_OUTPUT
22cd7b15   Loic Dachary   add --enable-valg...

ad110421   Bassam Tabbara   Simplify SIMD mak...

153dd209   KMG   Setting up autoco...