~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Niclas Jansson
  • Date: 2010-10-10 20:08:08 UTC
  • Revision ID: njansson@csc.kth.se-20101010200808-3wd41acv6i795ogy
Work on new build system

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
AM_MAINTAINER_MODE
6
6
AC_LANG(C++)
7
7
 
 
8
# Feature options.
 
9
AC_ARG_ENABLE(mpi,
 
10
              AC_HELP_STRING([--enable-mpi],
 
11
              [Compile with support for MPI]),enable_mpi=yes, enable_mpi=no)
 
12
 
 
13
AC_ARG_ENABLE(openmp,
 
14
              AC_HELP_STRING([--enable-openmp],
 
15
              [Compile with support for OpenMP]),enable_openmp=yes, enable_openmp=no)
 
16
 
8
17
# Checks for programs.
9
18
AC_PROG_CXX
10
19
AC_PROG_INSTALL
11
20
AC_PROG_MAKE_SET
12
21
AC_PROG_RANLIB
13
 
AX_MPI
14
 
CXX="$MPICXX"
15
 
LIBS="$MPILIBS $LIBS"
16
 
AX_OPENMP
 
22
 
 
23
if test $enable_mpi = yes; then
 
24
   AX_MPI       
 
25
   CXX="$MPICXX"
 
26
   LIBS="$MPILIBS $LIBS"
 
27
fi
 
28
 
 
29
if test $enable_openmp = yes; then
 
30
   AX_OPENMP
 
31
   CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
 
32
fi
17
33
 
18
34
# Checks for libraries.
19
35
AM_PATH_XML2( ,libxml2_found=yes, libxml2_found=no)
45
61
                          src/io/Makefile])
46
62
 
47
63
AC_OUTPUT
 
64
 
 
65
 CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
 
 
b'\\ No newline at end of file'