Skip to content
Snippets Groups Projects
Commit ecce29ee authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

- added automake/autoconf-stuff so that the headers and other stuff

  can be installed into a system
- wrote m4-macros so that any program using dune can check for
  albert/ug/dune them self

[[Imported from SVN: r4]]
parent 379644f8
No related branches found
No related tags found
No related merge requests found
# A simulation of Subversion default ignores, generated by reposurgeon.
*.o
*.lo
*.la
*.al
.libs
*.so
*.so.[0-9]*
*.a
*.pyc
*.pyo
*.rej
*~
.#*
.*.swp
.DS_store
Makefile
Makefile.in
config.*
configure
aclocal.m4
autom4te.cache
depcomp
install-sh
missing
mkinstalldirs
dune.pc
\ No newline at end of file
# $Id$
# don't follow the full GNU-standard
AUTOMAKE_OPTIONS = foreign
SUBDIRS = common fem grid solver doc m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = dune.pc
#!/bin/sh
# $Id$
# barf on errors
set -e
# prepare everything
echo "--> aclocal..."
aclocal
echo "--> autoheader..."
autoheader
echo "--> automake..."
automake --add-missing
echo "--> autoconf..."
autoconf
# $Id$
# Process this file with autoconf to produce a configure script.
AC_INIT(Dune, 0.0, dune@hal.iwr.uni-heidelberg.de)
AM_INIT_AUTOMAKE(Dune, 0.0, dune@hal.iwr.uni-heidelberg.de)
AC_CONFIG_SRCDIR([grid/common/grid.hh])
AM_CONFIG_HEADER(common/config.hh)
## extra options
AC_ARG_WITH(dim,
AC_HELP_STRING([--with-dim=[2|3]],[which dimension to use in Albert/UG-libs]),,
with_dim=2)
AC_SUBST(LIBDIM, $with_dim)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for the right compiler
if test x$GCC = xyes ; then
if "$CC" --version | grep '^2\.' 1>/dev/null 2>&1; then
AC_MSG_ERROR([you are using g++ 2.x, please upgrade to g++ 3.x
if you have installed different compilers you can specify one
by setting the environment variables CXX und CC.
])
fi
fi
# stuff we need for the dune-headers
# !!! add warnings if something can't be found
# Checks for libraries.
AC_CHECK_LIB([m], [pow])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([malloc.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([pow sqrt])
# write output
AC_CONFIG_FILES([Makefile
common/Makefile
fem/Makefile
fem/localbase/Makefile
fem/operator/Makefile
grid/Makefile
grid/albertgrid/Makefile
grid/common/Makefile
grid/sgrid/Makefile
grid/spgrid/Makefile
solver/Makefile
solver/common/Makefile
solver/pmgsolver/Makefile
doc/Makefile
m4/Makefile
dune.pc])
AC_OUTPUT
Makefile
Makefile.in
\ No newline at end of file
# $Id$
# nothing yet..
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: Dune
Version: @VERSION@
Description: the Dune numerics library
Requires:
Libs: @LIBS@
Cflags:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment