-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
636 lines (538 loc) · 18.4 KB
/
configure.ac
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
# Enhance help message (must be set before anything else)
m4_divert_text([HELP_END], [
More information on how to configure the build of ESCDF-Fortran is available
in the doc/ subdirectory of the source tree, in particular in the
configuring-escdf-fortran.md file.
ESCDF-Fortran is part of a diverse software ecosystem. You can find more
information about it at https://esl.cecam.org/, the homepage of the
Electronic Structure Library Wiki.])
# Init Autoconf
AC_PREREQ([2.69])
AC_INIT([ESCDF-Fortran], [0.1.0], [https://gitlab.e-cam2020.eu/esl/escdf-fortran/issues], [escdf-fortran])
AC_CONFIG_AUX_DIR([config/gnu])
AC_CONFIG_MACRO_DIR([config/m4])
AC_CONFIG_SRCDIR([src/m_escdf.F90])
_AC_SRCDIRS([.])
# Init Automake
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.13 parallel-tests color-tests])
AM_CONFIG_HEADER([config.h])
# Generate timestamp
escdff_timestamp=`date '+%Y%m%dT%H%M%S%z'`
AC_SUBST(escdff_timestamp)
# ------------------------------------ #
#
# System utilities
#
# Check for common programs and features
AC_PROG_AWK
AC_PROG_GREP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_SED
# Init variables
escdff_core_incs=""
AC_SUBST(escdff_core_incs)
# ------------------------------------ #
#
# Default settings
#
# Note for developers: you may edit these parameters to tune the behaviour
# of the build system. Please do it with care.
# Optional features
escdff_debug_enable_def="no"
escdff_gcov_enable_def="no"
escdff_memprof_enable_def="no"
# MPI
escdff_mpi_enable_def="auto"
# HDF5 (serial and MPI cases are distinct)
escdff_hdf5_enable_def="yes"
escdff_hdf5_ser_incs_def=""
escdff_hdf5_ser_libs_def="-lhdf5"
escdff_hdf5_mpi_incs_def=""
escdff_hdf5_mpi_libs_def="-lhdf5_mpi -lhdf5"
# ESCDF
escdff_escdf_enable_def="yes"
escdff_escdf_incs_def=""
escdff_escdf_libs_def="-lescdf"
# ------------------------------------ #
#
# Check consistency of defaults
#
# Default triggers for optional features must be yes or no, and not empty
for escdff_cfg_default in debug gcov memprof; do
tmp_default=`eval echo \$\{escdff_${escdff_cfg_default}_enable_def\}`
if test "${tmp_default}" != "no" -a \
"${tmp_default}" != "yes"; then
AC_MSG_ERROR([invalid default value: escdff_${escdff_cfg_default}_enable_def = ${tmp_default}])
fi
done
# Default triggers for external dependencies must be yes, no, or auto
for escdff_cfg_default in hdf5 mpi; do
tmp_default=`eval echo \$\{escdff_${escdff_cfg_default}_enable_def\}`
if test "${tmp_default}" != "" -a \
"${tmp_default}" != "auto" -a \
"${tmp_default}" != "no" -a \
"${tmp_default}" != "yes"; then
AC_MSG_ERROR([invalid default value: escdff_${escdff_cfg_default}_enable_def = ${tmp_default}])
fi
done
# Clean-up
unset tmp_default
# ------------------------------------ #
#
# Optional features
#
# Debugging
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[Enable verbose function output (default: ${escdff_debug_enable_def})])],
[escdff_debug_enable="${enableval}"; escdff_debug_type="yon"],
[escdff_debug_enable="${escdff_debug_enable_def}"; escdff_debug_type="def"])
AC_SUBST(enable_debug)
# gcov
AC_ARG_ENABLE([gcov],
[AS_HELP_STRING([--enable-gcov],
[Enable code coverage (default: ${escdff_gcov_enable_def})])],
[escdff_gcov_enable="${enableval}"; escdff_gcov_type="yon"],
[escdff_gcov_enable="${escdff_gcov_enable_def}"; escdff_gcov_type="def"])
AC_SUBST(enable_gcov)
# memprof
AC_ARG_ENABLE([memprof],
[AS_HELP_STRING([--enable-memprof],
[Enable memory profiling (default: ${escdff_memprof_enable_def})])],
[escdff_memprof_enable="${enableval}"; escdff_memprof_type="yon"],
[escdff_memprof_enable="${escdff_memprof_enable_def}"; escdff_memprof_type="def"])
AC_SUBST(enable_memprof)
# ------------------------------------ #
#
# External dependencies
#
# ESCDF (mandatory)
AC_ARG_WITH([escdf],
[AS_HELP_STRING([--with-escdf],
[Install prefix of the ESCDF library (e.g. /usr/local). Since ESCDF is a mandatory dependency, --with-escdf without argument has no effect, while --without-escdf produces an error.])],
[ if test "${withval}" = "no" -o "${withval}" = "yes"; then
escdff_escdf_enable="${withval}"
escdff_escdf_type="yon"
else
escdff_escdf_enable="yes"
escdff_escdf_type="dir"
escdff_escdf_incs="-I${withval}/include"
escdff_escdf_libs="-L${withval}/lib"
fi],
[escdff_escdf_enable="${escdff_escdf_enable_def}"; escdff_escdf_type="def";
escdff_escdf_incs=""; escdff_escdf_libs=""])
AC_ARG_VAR([ESCDF_INCLUDES],
[Include flags for ESCDF. Please note that this variable conflicts with the --with-escdf option.])
AC_ARG_VAR([ESCDF_LIBS],
[Library flags for ESCDF. Please note that this variable conflicts with the --with-escdf option.])
AC_SUBST(with_escdf)
# HDF5 (mandatory)
AC_ARG_WITH([hdf5],
[AS_HELP_STRING([--with-hdf5],
[Install prefix of the HDF5 library (e.g. /usr/local). Since HDF5 is a mandatory dependency, --with-hdf5 without argument has no effect, while --without-hdf5 produces an error.])],
[ if test "${withval}" = "no" -o "${withval}" = "yes"; then
escdff_hdf5_enable="${withval}"
escdff_hdf5_type="yon"
else
escdff_hdf5_enable="yes"
escdff_hdf5_type="dir"
escdff_hdf5_incs="-I${withval}/include"
escdff_hdf5_libs="-L${withval}/lib"
fi],
[escdff_hdf5_enable="${escdff_hdf5_enable_def}"; escdff_hdf5_type="def";
escdff_hdf5_incs=""; escdff_hdf5_libs=""])
AC_ARG_VAR([HDF5_INCLUDES],
[Include flags for HDF5. Please note that this variable conflicts with the --with-hdf5 option.])
AC_ARG_VAR([HDF5_LIBS],
[Library flags for HDF5. Please note that this variable conflicts with the --with-hdf5 option.])
AC_SUBST(with_hdf5)
# MPI (optional)
AC_ARG_WITH([mpi],
[AS_HELP_STRING([--with-mpi],
[Install prefix of MPI (e.g. /usr/local). The default behaviour is to detect whether the specified compilers properly support MPI and to fall back to serial mode if not. You may use --with-mpi without argument to force MPI detection, in which case detection failures will result in errors, and --without-mpi to disable MPI support completely.])],
[ if test "${withval}" = "no" -o "${withval}" = "yes"; then
escdff_mpi_enable="${withval}"
escdff_mpi_type="yon"
else
escdff_mpi_enable="yes"
escdff_mpi_type="dir"
fi],
[escdff_mpi_enable="${escdff_mpi_enable_def}"; escdff_mpi_type="def"])
AC_ARG_VAR([MPICC], [MPI-aware C compiler (usually called 'mpicc'). Please note that this variable conflicts with the --with-mpi option.])
AC_ARG_VAR([MPIFC], [MPI-aware Fortran compiler (usually called 'mpif90'. Please note that this variable conflicts with the --with-mpi option.])
AC_SUBST(with_mpi)
# ------------------------------------ #
#
# Check option consistency
#
# All --enable-* options must be yes or no
for escdff_cfg_option in debug; do
tmp_option=`eval echo \$\{enable_${escdff_cfg_option}\}`
if test "${tmp_option}" != "" -a \
"${tmp_option}" != "no" -a \
"${tmp_option}" != "yes"; then
AC_MSG_ERROR([--enable-${escdff_cfg_option} must be "yes" or "no"])
fi
done
unset tmp_option
# ESCDF is mandatory
if test "${escdff_escdf_enable}" = "no"; then
AC_MSG_ERROR([ESCDF-Fortran requires ESCDF
Please see https://www.hdfgroup.org/ESCDF/ for installation
instructions.])
fi
if test "${escdff_escdf_enable}" = "auto"; then
AC_MSG_NOTICE([setting ESCDF trigger to yes])
escdff_escdf_enable="yes"
fi
# HDF5 is mandatory
if test "${escdff_hdf5_enable}" = "no"; then
AC_MSG_ERROR([ESCDF-Fortran requires HDF5
Please see https://www.hdfgroup.org/HDF5/ for installation
instructions.])
fi
if test "${escdff_hdf5_enable}" = "auto"; then
AC_MSG_NOTICE([setting HDF5 trigger to yes])
escdff_hdf5_enable="yes"
fi
# All *_INCLUDES and *_LIBS environment variables must be provided at once
tmp_escdf_vars="${ESCDF_INCLUDES}${ESCDF_LIBS}"
if test -n "${tmp_escdf_vars}" -a \
\( -z "${ESCDF_INCLUDES}" -o -z "${ESCDF_LIBS}" \); then
AC_MSG_ERROR([ESCDF_INCLUDES and ESCDF_LIBS must both be set])
fi
tmp_hdf5_vars="${HDF5_INCLUDES}${HDF5_LIBS}"
if test -n "${tmp_hdf5_vars}" -a \
\( -z "${HDF5_INCLUDES}" -o -z "${HDF5_LIBS}" \); then
AC_MSG_ERROR([HDF5_INCLUDES and HDF5_LIBS must both be set])
fi
tmp_mpi_vars="${MPICC}${MPIFC}"
if test -n "${tmp_mpi_vars}" -a \
\( -z "${MPICC}" -o -z "${MPIFC}" \); then
AC_MSG_ERROR([MPICC and MPIFC must both be set])
fi
# Environment variables conflict with --with-* options
if test -n "${tmp_hdf5_vars}" -a -n "${with_hdf5}"; then
AC_MSG_ERROR([conflicting option settings
Please use HDF5_INCLUDES + HDF5_LIBS or --with-hdf5,
not both.])
fi
if test -n "${tmp_mpi_vars}" -a -n "${with_mpi}"; then
AC_MSG_ERROR([conflicting option settings
Please use MPICC + MPIFC or --with-mpi,
not both.])
fi
# When using environment variables, triggers must be set to yes
if test -n "${tmp_escdf_vars}"; then
escdff_escdf_enable="yes"
escdff_escdf_type="env"
fi
if test -n "${tmp_hdf5_vars}"; then
escdff_hdf5_enable="yes"
escdff_hdf5_type="env"
fi
if test -n "${tmp_mpi_vars}"; then
escdff_mpi_enable="yes"
escdff_mpi_type="env"
fi
# Clean-up
unset tmp_escdf_vars
unset tmp_hdf5_vars
unset tmp_mpi_vars
# ------------------------------------ #
#
# Substitute build-system variables
#
# Defaults
AC_SUBST(escdff_debug_enable_def)
AC_SUBST(escdff_escdf_enable_def)
AC_SUBST(escdff_escdf_incs_def)
AC_SUBST(escdff_escdf_libs_def)
AC_SUBST(escdff_hdf5_enable_def)
AC_SUBST(escdff_hdf5_ser_incs_def)
AC_SUBST(escdff_hdf5_ser_libs_def)
AC_SUBST(escdff_hdf5_mpi_incs_def)
AC_SUBST(escdff_hdf5_mpi_libs_def)
AC_SUBST(escdff_mpi_enable_def)
# Triggers
AC_SUBST(escdff_debug_enable)
AC_SUBST(escdff_gcov_enable)
AC_SUBST(escdff_memprof_enable)
AC_SUBST(escdff_escdf_enable)
AC_SUBST(escdff_hdf5_enable)
AC_SUBST(escdff_mpi_enable)
# Initialization types
AC_SUBST(escdff_debug_type)
AC_SUBST(escdff_escdf_type)
AC_SUBST(escdff_hdf5_type)
AC_SUBST(escdff_mpi_type)
# Internal MPI parameters
AC_SUBST(escdff_mpi_cc_set)
AC_SUBST(escdff_mpi_cc_wrap)
AC_SUBST(escdff_mpi_fc_set)
AC_SUBST(escdff_mpi_fc_wrap)
# Build flags for external dependencies
AC_SUBST(escdff_escdf_incs)
AC_SUBST(escdff_escdf_libs)
AC_SUBST(escdff_hdf5_incs)
AC_SUBST(escdff_hdf5_libs)
# ------------------------------------ #
#
# Architecture setup
#
# Init MPI parameters, possibly setting and/or wrapping compilers
ESCDFF_MPI_INIT
# ------------------------------------ #
#
# C language support
#
# Init C compiler and preprocessor
AC_PROG_CC
AC_PROG_CPP
# ------------------------------------ #
#
# Fortran language support
#
# Init Fortran compiler
AC_PROG_FC
# ------------------------------------ #
#
# Libtool configuration
#
# Init Libtool (must be done once compilers are fully set)
LT_INIT
LT_PREREQ([2.4])
LTOBJEXT="lo"
AC_SUBST(LTOBJEXT)
# ------------------------------------ #
#
# Multicore architecture support
#
# Look for MPI
if test "${escdff_mpi_enable}" != "no"; then
ESCDFF_MPI_DETECT
if test "${escdff_mpi_ok}" = "yes"; then
AC_DEFINE([HAVE_MPI], 1, [Define to 1 to enable MPI support.])
escdff_mpi_enable="yes"
else
if test "${escdff_mpi_enable}" = "auto"; then
AC_MSG_NOTICE([disabling MPI support])
escdff_mpi_enable="no"
else
AC_MSG_FAILURE([MPI support is broken - please check your configuration])
fi
fi
fi
# From now on, the MPI trigger must be yes or no
if test "${escdff_mpi_enable}" != "no" -a "${escdff_mpi_enable}" != "yes"; then
AC_MSG_ERROR([unexpected MPI trigger value: '${escdff_mpi_enable}'])
fi
# ------------------------------------ #
#
# Adjust build parameters according to configure options
#
# Debugging support
if test "${escdff_debug_enable}" = "yes"; then
AC_DEFINE([ESCDFF_DEBUG], 1, [Define to 1 to enable internal debugging.])
fi
# ------------------------------------ #
#
# Look for external dependencies (the order strongly matters)
#
# Check for mathematical functions
AC_CHECK_LIB(m, sqrt, [], [
AC_MSG_WARN([missing math library (sqrt not found)])])
# Set HDF5 includes
if test "${escdff_hdf5_type}" != "dir"; then
if test -n "${HDF5_INCLUDES}"; then
escdff_hdf5_incs="${HDF5_INCLUDES}"
else
if test "${escdff_mpi_enable}" = "yes"; then
escdff_hdf5_incs="${escdff_hdf5_mpi_incs_def}"
else
escdff_hdf5_incs="${escdff_hdf5_ser_incs_def}"
fi
fi
fi
# Set HDF5 libraries (requires MPI to be fully set)
if test "${escdff_hdf5_type}" = "dir"; then
if test "${escdff_mpi_enable}" = "yes"; then
escdff_hdf5_libs="${escdff_hdf5_libs} ${escdff_hdf5_mpi_libs_def}"
else
escdff_hdf5_libs="${escdff_hdf5_libs} ${escdff_hdf5_ser_libs_def}"
fi
else
if test -n "${HDF5_LIBS}"; then
escdff_hdf5_libs="${HDF5_LIBS}"
else
if test "${escdff_mpi_enable}" = "yes"; then
escdff_hdf5_libs="${escdff_hdf5_mpi_libs_def}"
else
escdff_hdf5_libs="${escdff_hdf5_ser_libs_def}"
fi
fi
fi
# Look for HDF5
AC_MSG_CHECKING([how HDF5 parameters have been set])
AC_MSG_RESULT([${escdff_hdf5_type}])
AC_MSG_CHECKING([for HDF5 include flags])
AC_MSG_RESULT([${escdff_hdf5_incs}])
AC_MSG_CHECKING([for HDF5 library flags])
AC_MSG_RESULT([${escdff_hdf5_libs}])
ESCDFF_HDF5_DETECT
if test "${escdff_hdf5_ok}" = "yes"; then
CPPFLAGS="${CPPFLAGS} ${escdff_hdf5_incs}"
LIBS="${escdff_hdf5_libs} ${LIBS}"
else
AC_MSG_FAILURE([HDF5 is missing or incomplete])
fi
# Set ESCDF includes
if test "${escdff_escdf_type}" != "dir"; then
if test -n "${ESCDF_INCLUDES}"; then
escdff_escdf_incs="${ESCDF_INCLUDES}"
else
escdff_escdf_incs="${escdff_escdf_incs_def}"
fi
fi
# Set ESCDF libraries (requires MPI to be fully set)
if test "${escdff_escdf_type}" = "dir"; then
escdff_escdf_libs="${escdff_escdf_libs} ${escdff_escdf_libs_def}"
else
if test -n "${ESCDF_LIBS}"; then
escdff_escdf_libs="${ESCDF_LIBS}"
else
escdff_escdf_libs="${escdff_escdf_libs_def}"
fi
fi
# Look for ESCDF
AC_MSG_CHECKING([how ESCDF parameters have been set])
AC_MSG_RESULT([${escdff_escdf_type}])
AC_MSG_CHECKING([for ESCDF include flags])
AC_MSG_RESULT([${escdff_escdf_incs}])
AC_MSG_CHECKING([for ESCDF library flags])
AC_MSG_RESULT([${escdff_escdf_libs}])
ESCDFF_ESCDF_DETECT
if test "${escdff_escdf_ok}" = "yes"; then
CPPFLAGS="${CPPFLAGS} ${escdff_escdf_incs}"
LIBS="${escdff_escdf_libs} ${LIBS}"
else
AC_MSG_FAILURE([ESCDF is missing or incomplete])
fi
# ------------------------------------ #
#
# Instrumentation
#
# Memory profiling
if test "${enable_memprof}" = "yes"; then
AC_CHECK_PROGS([VALGRIND], [valgrind])
if test "${VALGRIND}" = ""; then
AC_MSG_ERROR([memory profiling tool not found
please install valgrind first to perform memory profiling])
fi
fi
AM_CONDITIONAL([DO_CHECKMEM], [test "${enable_memprof}" = "yes"])
# Code coverage
AC_MSG_CHECKING([whether to enable code coverage (GCC only)])
AC_MSG_RESULT([${enable_gcov}])
CFLAGS_COVERAGE=""
FCFLAGS_COVERAGE=""
LDFLAGS_COVERAGE=""
LIBS_COVERAGE=""
if test "${enable_gcov}" = "yes"; then
if test "${ac_cv_c_compiler_gnu}" != "yes" -o \
"${lt_cv_prog_gnu_ld}" != "yes"; then
AC_MSG_ERROR([code coverage requires GNU compilers
please re-run configure using GCC compilers])
fi
AC_CHECK_PROGS([GCOV], [gcov])
if test "${GCOV}" = ""; then
AC_MSG_ERROR([gcov not found
please make sure that the gcov executable is in PATH])
fi
CFLAGS_COVERAGE="--coverage --no-inline"
LDFLAGS_COVERAGE="--coverage"
LIBS_COVERAGE="-lgcov"
fi
AM_CONDITIONAL([DO_COVERAGE], [test "${enable_gcov}" = "yes"])
AC_SUBST(GCOV)
AC_SUBST(CFLAGS_COVERAGE)
AC_SUBST(FCFLAGS_COVERAGE)
AC_SUBST(LDFLAGS_COVERAGE)
AC_SUBST(LIBS_COVERAGE)
# ------------------------------------ #
#
# Prepare data for the test suite
#
# Generate explicit dependencies for GCOV tests
if test "${enable_gcov}" = "yes"; then
echo "# Script-generated makefile targets for GCOV tests" \
>src/gcov-tests-deps.mf
for src in ${ac_top_srcdir}/src/test_*.c; do
exe=`basename "${src}" | sed -e 's/\.c//'`
echo "" >>src/gcov-tests-deps.mf
echo "${exe}.log: gcov_clean.log" >>src/gcov-tests-deps.mf
done
for src in ${ac_top_srcdir}/src/test_*.in; do
exe=`basename "${src}" | sed -e 's/\.in//'`
echo "" >>src/gcov-tests-deps.mf
echo "${exe}.log: gcov_clean.log" >>src/gcov-tests-deps.mf
done
echo "" >>src/gcov-tests-deps.mf
echo "gcov_report.log: gcov_clean.log" >>src/gcov-tests-deps.mf
fi
# ------------------------------------ #
# Write down YAML configuration
AC_OUTPUT([config/data/escdf-fortran-config.yml])
# Inform Automake
AM_CONDITIONAL([DO_BUILD_MPI], [test "${escdff_mpi_enable}" = "yes"])
# Report configuration
AC_MSG_NOTICE([])
AC_MSG_NOTICE([Final build parameters])
AC_MSG_NOTICE([----------------------])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([TSTAMP = ${escdff_timestamp}])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([DEBUG = ${escdff_debug_enable} (init: ${escdff_debug_type})])
AC_MSG_NOTICE([COVERAGE = ${escdff_enable_gcov} (init: ${escdff_gcov_type})])
AC_MSG_NOTICE([PROFILING = ${escdff_enable_memprof} (init: ${escdff_memprof_type})])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([ESCDF = ${escdff_escdf_enable} (init: ${escdff_escdf_type})])
AC_MSG_NOTICE([HDF5 = ${escdff_hdf5_enable} (init: ${escdff_hdf5_type})])
AC_MSG_NOTICE([MPI = ${escdff_mpi_enable} (init: ${escdff_mpi_type})])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([CPP = ${CPP}])
AC_MSG_NOTICE([CPPFLAGS = ${CPPFLAGS}])
AC_MSG_NOTICE([CC = ${CC}])
AC_MSG_NOTICE([MPICC = ${MPICC}])
AC_MSG_NOTICE([CFLAGS = ${CFLAGS}])
AC_MSG_NOTICE([FC = ${FC}])
AC_MSG_NOTICE([MPIFC = ${MPIFC}])
AC_MSG_NOTICE([FCFLAGS = ${FCFLAGS}])
AC_MSG_NOTICE([LDFLAGS = ${LDFLAGS}])
AC_MSG_NOTICE([LIBS = ${LIBS}])
AC_MSG_NOTICE([])
# Output configuration
AC_CONFIG_COMMANDS([script-perms],
[chmod u+x \
src/gcov_check_coverage \
src/gcov_clean \
src/gcov_report \
src/test_memory
])
AC_CONFIG_FILES([
Makefile
doc/Makefile
src/Makefile
src/gcov_check_coverage
src/gcov_clean
src/gcov_report
src/test_memory
config/data/escdf-fortran.pc])
AC_OUTPUT