16
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[Compile with debug symbols]),
16
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
17
[Compile with debug symbols]),
17
18
[enable_debug=${enableval}],[enable_debug=no])
19
20
AC_ARG_ENABLE(function-cache, AC_HELP_STRING([--enable-function-cache],
20
21
[Compile with local data cache in functions]),
21
[enable_function_cache=${enableval}],[enable_function_cache=no])
22
[enable_function_cache=${enableval}],
23
[enable_function_cache=no])
23
25
AC_ARG_ENABLE(optimize-p1, AC_HELP_STRING([--enable-optimize-p1],
24
26
[Compile with optimization for P1 elements]),
25
[enable_optimize_p1=${enableval}],[enable_optimize_p1=no])
27
[enable_optimize_p1=${enableval}],
28
[enable_optimize_p1=no])
27
AC_ARG_ENABLE(progress-bar, AC_HELP_STRING([--disable-progress-bar],[Compile without progress bar]),
28
[enable_progressbar=no],[enable_progressbar=yes])
30
AC_ARG_ENABLE(progress-bar, AC_HELP_STRING([--disable-progress-bar],
31
[Compile without progress bar]),
32
[enable_progressbar=no],
33
[enable_progressbar=yes])
30
35
AC_HELP_STRING([--enable-mpi],
31
[Compile with support for MPI]),[enable_mpi=${enableval}], [enable_mpi=no])
36
[Compile with support for MPI]),
37
[enable_mpi=${enableval}], [enable_mpi=no])
33
39
AC_ARG_ENABLE(mpi-io, AC_HELP_STRING([--enable-mpi-io],
34
40
[Compile with support for MPI I/O]),
37
43
AC_ARG_ENABLE(openmp,
38
44
AC_HELP_STRING([--enable-openmp],
39
[Compile with support for OpenMP]),[enable_openmp=${enableval}], [enable_openmp=no])
45
[Compile with support for OpenMP]),
46
[enable_openmp=${enableval}], [enable_openmp=no])
41
48
AC_ARG_ENABLE(boost-tr1, AC_HELP_STRING([--enable-boost-tr1],
42
49
[Compile with support for Boost TR1 headers]),
50
57
AC_ARG_WITH(gts, AC_HELP_STRING([--with-gts], [Compile with support for GTS]),
51
58
[with_gts=${withval}],[with_gts=no])
53
AC_ARG_WITH(janpack, AC_HELP_STRING([--with-janpack], [Compile with support for JANPACK]),
60
AC_ARG_WITH(janpack, AC_HELP_STRING([--with-janpack],
61
[Compile with support for JANPACK]),
54
62
[with_janpack=${withval}],[with_janpack=no])
56
AC_ARG_WITH(petsc, AC_HELP_STRING([--with-petsc], [Compile with support for PETSc linear algebra]),
57
[with_petsc=${withval}],[with_petsc=no])
64
AC_ARG_WITH(petsc, AC_HELP_STRING([--with-petsc],
65
[Compile with support for PETSc linear algebra]),
66
[with_petsc=${withval}],[with_petsc=no])
60
69
if test "x${enable_function_cache}" = xyes; then
61
AC_DEFINE(ENABLE_FUNCTION_CACHE, [1], [Compile with local data cache in functions])
70
AC_DEFINE(ENABLE_FUNCTION_CACHE, [1],
71
[Compile with local data cache in functions])
64
74
if test "x${enable_optimize_p1}" = xyes; then
65
AC_DEFINE(ENABLE_P1_OPTIMIZATIONS, [1], [Compile with optimization for P1 elements])
75
AC_DEFINE(ENABLE_P1_OPTIMIZATIONS, [1],
76
[Compile with optimization for P1 elements])
68
79
if test "x${enable_progressbar}" != xyes; then
69
AC_DEFINE(NO_PROGRESS_BAR, [1], [Compile without progress bar])
80
AC_DEFINE(NO_PROGRESS_BAR, [1],
81
[Compile without progress bar])
72
84
if test "x${enable_boosttr1}" = xyes; then
163
175
AC_DEFINE(HAVE_GTS,[1],[Have GTS library])
178
found_la_backend="no"
166
180
if test "x${with_petsc}" != xno; then
167
181
# This assumes a modern CRAY, for example XT or XE series systems
168
182
if test "x${ax_cv_cxx_compiler_vendor}" = xcray; then
169
183
AC_DEFINE(HAVE_PETSC,1,[Define if you have the Petsc library.])
184
found_la_backend="yes"
187
if test "x${HAVE_PETSC}" != 0; then
188
found_la_backend="yes"
175
193
if test "x${with_janpack}" != xno; then
195
if test "x${HAVE_JANPACK}" != 0; then
196
found_la_backend="yes"
201
if test "x${found_la_backend}" != xyes; then
202
AC_MSG_ERROR([Linear Algebra backend not found])
179
205
if test "x${enable_debug}" != xno; then