]> AND Private Git Repository - Cipher_code.git/blob - IDA_new/jerasure/configure.ac
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
update
[Cipher_code.git] / IDA_new / jerasure / configure.ac
1 # Jerasure autoconf template
2
3 AC_PREREQ([2.65])
4 AC_INIT([Jerasure], [2.0], [], [],
5         [https://jerasure.org/jerasure/jerasure])
6 AC_CONFIG_SRCDIR([src/jerasure.c])
7 AC_CONFIG_HEADERS([include/config.h])
8
9 AC_CONFIG_AUX_DIR([build-aux])
10 AC_CONFIG_MACRO_DIR([m4])
11
12 AM_INIT_AUTOMAKE([1.15 -Wall -Wno-extra-portability])
13
14 # Package default C compiler flags.
15 dnl This must be before LT_INIT and AC_PROG_CC.
16 : ${CFLAGS='-g -O3 -Wall'}
17
18 LT_INIT([disable-static])
19
20 # Checks for programs.
21 AC_PROG_CC
22 AC_PROG_CXX
23
24
25 # Checks for libraries.
26 AC_CHECK_LIB([gf_complete], [gf_init_easy], [],
27              [AC_MSG_FAILURE(
28                [You need to have gf_complete installed.
29                   gf_complete is available from http://jerasure.org/jerasure/gf-complete])
30              ])
31
32 # Checks for header files.
33 AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
34 AC_CHECK_HEADERS([gf_complete.h gf_general.h gf_method.h gf_rand.h])
35
36 # Checks for typedefs, structures, and compiler characteristics.
37 AC_TYPE_UINT32_T
38 AC_TYPE_UINT64_T
39 AX_EXT
40
41 AC_ARG_ENABLE([sse],
42               AS_HELP_STRING([--disable-sse], [Build without SSE optimizations]),
43               [if   test "x$enableval" = "xno" ; then
44                 SIMD_FLAGS=""
45                 echo "DISABLED SSE!!!"
46               fi]
47 )
48
49 # Checks for library functions.
50 AC_FUNC_MALLOC
51 AC_CHECK_FUNCS([bzero getcwd gettimeofday mkdir strchr strdup strrchr])
52
53 AC_CONFIG_FILES([Examples/Makefile
54                  Makefile
55                  src/Makefile])
56 AC_OUTPUT