Skip to content
Snippets Groups Projects
configure.ac 1.46 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Process this file with autoconf to produce a configure script.
    
    Christian Engwer's avatar
    Christian Engwer committed
    DUNE_AC_INIT # gets module version from dune.module file
    
    AC_CONFIG_SRCDIR([dune/common/stdstreams.cc])
    
    # add configure flags needed to create log files for dune-autobuild
    DUNE_AUTOBUILD_FLAGS
    
    Oliver Sander's avatar
    Oliver Sander committed
    # check all dune dependecies and prerequisits
    
    DUNE_CHECK_ALL
    
    
    # preset variable to path such that #include <dune/...> works
    
    AC_SUBST([DUNE_COMMON_ROOT], '$(abs_top_srcdir)')
    AC_SUBST([DUNE_COMMON_BIN], '$(abs_top_srcdir)/bin/')
    
    AC_SUBST([AM_CPPFLAGS], '-I$(top_srcdir)')
    
    AC_SUBST([AM_LDFLAGS], '$(DUNE_LDFLAGS)')
    
    AC_SUBST([LDADD], '$(top_builddir)/lib/libdunecommon.la')
    
    # write output
    AC_CONFIG_FILES([Makefile
    
    Markus Blatt's avatar
     
    Markus Blatt committed
         cmake/Makefile
         cmake/modules/Makefile
         cmake/scripts/Makefile
         cmake/pkg/Makefile
    
         dune/Makefile
         dune/common/Makefile
         dune/common/test/Makefile
    
         dune/common/parallel/Makefile
    
         dune/common/parallel/test/Makefile
    
         dune/common/std/Makefile
    
         doc/Makefile
    
         doc/comm/Makefile
         doc/comm/figures/Makefile
    
         doc/doxygen/Makefile
    
         doc/doxygen/Doxyfile
    
         m4/Makefile
    
         share/Makefile
         share/bash-completion/Makefile
    
         share/bash-completion/completions/Makefile
    
         dune-common.pc])
    
    # make scripts executable
    
    AC_CONFIG_FILES([
         bin/check-log-store],[
         chmod +x bin/check-log-store])
    AC_OUTPUT
    
    
    # print results
    DUNE_SUMMARY_ALL