configure.ac 1.46 KB
Newer Older
1
# -*- Autoconf -*-
2
# Process this file with autoconf to produce a configure script.
3

4
AC_PREREQ([2.62])
Christian Engwer's avatar
Christian Engwer committed
5
DUNE_AC_INIT # gets module version from dune.module file
6
AC_CONFIG_SRCDIR([dune/common/stdstreams.cc])
7
AC_CONFIG_HEADERS([config.h])
8

9 10
# add configure flags needed to create log files for dune-autobuild
DUNE_AUTOBUILD_FLAGS
11
# check all dune dependecies and prerequisits
12
DUNE_CHECK_ALL
13 14

# preset variable to path such that #include <dune/...> works
15 16
AC_SUBST([DUNE_COMMON_ROOT], '$(abs_top_srcdir)')
AC_SUBST([DUNE_COMMON_BIN], '$(abs_top_srcdir)/bin/')
17
AC_SUBST([AM_CPPFLAGS], '-I$(top_srcdir)')
18
AC_SUBST([AM_LDFLAGS], '$(DUNE_LDFLAGS)')
19
AC_SUBST([LDADD], '$(top_builddir)/lib/libdunecommon.la')
20

21 22
# write output
AC_CONFIG_FILES([Makefile
23
     lib/Makefile
24
     bin/Makefile
25 26 27 28
     cmake/Makefile
     cmake/modules/Makefile
     cmake/scripts/Makefile
     cmake/pkg/Makefile
29 30 31
     dune/Makefile
     dune/common/Makefile
     dune/common/test/Makefile
32
     dune/common/parallel/Makefile
33
     dune/common/parallel/test/Makefile
34
     dune/common/std/Makefile
35
     doc/Makefile
36 37
     doc/comm/Makefile
     doc/comm/figures/Makefile
38
     doc/doxygen/Makefile
39
     doc/doxygen/Doxyfile
40
     m4/Makefile
41
     am/Makefile
42 43
     share/Makefile
     share/bash-completion/Makefile
44
     share/bash-completion/completions/Makefile
45
     dune-common.pc])
46
# make scripts executable
47 48 49 50
AC_CONFIG_FILES([
     bin/check-log-store],[
     chmod +x bin/check-log-store])
AC_OUTPUT
51 52 53

# print results
DUNE_SUMMARY_ALL