Skip to content
Snippets Groups Projects
configure.ac 1.14 KiB
Newer Older
  • Learn to ignore specific revisions
  • # $Id$
    # 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])
    
    AM_CONFIG_HEADER([config.h])
    
    # create symlink dune -> $top_srcdir
    DUNE_SYMLINK
    # 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], '$(top_builddir)')
    
    AC_SUBST([AM_CPPFLAGS], '-I$(top_srcdir)')
    
    AC_SUBST([LOCAL_LIBS], '$(top_builddir)/common/libcommon.la')
    
    # write output
    AC_CONFIG_FILES([Makefile
    
         dune/Makefile
         dune/common/Makefile
         dune/common/test/Makefile
         dune/common/exprtmpl/Makefile
    
         doc/Makefile
         doc/devel/Makefile
         doc/layout/Makefile
         doc/doxygen/Makefile
    
         doc/doxygen/Doxyfile
    
         doc/buildsystem/Makefile
    
         m4/Makefile
    
         am/Makefile
         bin/check-log-store
    
         dune-common.pc])
    
    # make scripts executable
    
    chmod +x bin/check-log-store
    
    
    # print results
    DUNE_SUMMARY_ALL