-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
44 lines (34 loc) · 983 Bytes
/
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
AC_INIT([pmi],[1.0a])
AC_CONFIG_MACRO_DIR(build-aux/macros)
AC_CONFIG_AUX_DIR(build-aux)
AC_CONFIG_SRCDIR([pmi/pmi.hpp])
AM_INIT_AUTOMAKE()
AXES_IMPORT_EXTRA_PREFIXES
AC_PROG_CXX
AC_LANG([C++])
AC_PROG_LIBTOOL
AXES_MPI
if test "x$axes_cv_mpi" = "xno"; then
AC_MSG_ERROR([could not compile an MPI program])
fi
AC_MSG_CHECKING([whether to optimize the code])
AC_ARG_WITH([optimize],
AS_HELP_STRING([--with-optimize],
[optimize the code (deactivates logging and control messages, default: no)]),
[pmi_optimize=$withval], [pmi_optimize="no"])
AC_MSG_RESULT($pmi_optimize)
if test "x$pmi_optimize" = "xyes"; then
AC_DEFINE(PMI_OPTIMIZE,1,[define if PMI shall be optimized])
LOG4ESPP_LIBS=""
else
AXES_LOG4ESPP
fi
CPPFLAGS='-I $(top_srcdir) -I $(top_srcdir)/logging '"$CPPFLAGS"
LIBS="$LOG4ESPP_LIBS $MPI_LIBS $LIBS"
AC_CONFIG_HEADERS([acconfig.hpp])
AC_CONFIG_FILES([Makefile \
logging/Makefile \
pmi/Makefile \
examples/Makefile \
])
AC_OUTPUT