summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 9f338528c510c2d3b78e7f6158bdaa191e4e0461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# gf-complete autoconf template

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

AC_PREREQ([2.61])

AM_INIT_AUTOMAKE([no-dependencies foreign])
LT_INIT # libtool

AC_CONFIG_HEADER(include/config.h)

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

# This prevents './configure; make' from trying to run autotools.
AM_MAINTAINER_MODE([disable])

# Override default CFLAGS
CFLAGS="-Wall -Wpointer-arith -O3 -g"

dnl Compiling with per-target flags requires AM_PROG_CC_C_O.
AC_PROG_CC

AX_EXT()

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]
)

AC_CONFIG_FILES([Makefile src/Makefile tools/Makefile test/Makefile examples/Makefile])
AC_OUTPUT