2011-12-08 07:49:09 -06:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2011-12-12 07:57:09 -06:00
|
|
|
AC_PREREQ([2.59])
|
2012-09-21 05:29:22 -05:00
|
|
|
AC_INIT([OPM Core Library], [0.1], [atgeirr@sintef.no],
|
2011-12-08 07:49:09 -06:00
|
|
|
[opmcore], [https://public.ict.sintef.no/opm/hg/opmcore])
|
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
|
|
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
2012-08-23 07:20:41 -05:00
|
|
|
# Needed for automake since version 1.12 because extra-portability
|
|
|
|
# warnings were then added to -Wall. Ifdef makes it backwards compatible.
|
|
|
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
|
|
|
|
2011-12-08 07:49:09 -06:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-12-12 04:29:14 -06:00
|
|
|
AC_CONFIG_SRCDIR([opm/core/grid.h])
|
2011-12-08 07:49:09 -06:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
2012-01-06 04:22:35 -06:00
|
|
|
AM_PROG_CC_C_O
|
2011-12-08 07:49:09 -06:00
|
|
|
|
2012-09-21 07:28:26 -05:00
|
|
|
dnl Initialize libtool; the funny indentation here is to
|
|
|
|
dnl satisfy libtoolize' check for the presence of this macro
|
2012-06-05 11:40:36 -05:00
|
|
|
m4_ifdef([LT_INIT],
|
2012-09-21 07:28:26 -05:00
|
|
|
[
|
|
|
|
LT_INIT[]dnl
|
2012-06-05 11:40:36 -05:00
|
|
|
LT_LANG([C++])dnl
|
|
|
|
LT_LANG([Fortran 77])dnl
|
|
|
|
LT_LANG([Fortran])dnl
|
|
|
|
],dnl
|
|
|
|
[AC_PROG_LIBTOOL[]dnl
|
|
|
|
AC_PROG_CXX[]dnl
|
|
|
|
AC_PROG_F77[]dnl
|
|
|
|
AC_PROG_FC[]dnl
|
|
|
|
])[]dnl
|
2011-12-08 07:49:09 -06:00
|
|
|
|
2012-06-14 11:13:56 -05:00
|
|
|
OPM_CORE_CHECKS
|
2012-04-13 08:35:19 -05:00
|
|
|
|
2012-06-27 09:25:46 -05:00
|
|
|
OPM_DYNLINK_BOOST_TEST
|
|
|
|
|
2012-06-28 06:27:03 -05:00
|
|
|
ERT
|
2011-12-08 09:15:14 -06:00
|
|
|
|
2012-07-12 07:37:23 -05:00
|
|
|
dnl Substitute Autoconf's abs_*dir variables into the Makefiles for the
|
|
|
|
dnl benefit of external code that uses these variables to derive
|
|
|
|
dnl locations (e.g., Dune's DUNE_CHECK_MODULES macro). Automakes prior
|
|
|
|
dnl to version 1.10 do not automatically substitute these variables into
|
|
|
|
dnl output files.
|
|
|
|
AC_SUBST([abs_srcdir])
|
|
|
|
AC_SUBST([abs_builddir])
|
|
|
|
AC_SUBST([abs_top_srcdir])
|
|
|
|
AC_SUBST([abs_top_builddir])
|
|
|
|
|
2011-12-08 07:49:09 -06:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
tests/Makefile
|
|
|
|
examples/Makefile
|
2012-04-10 10:46:52 -05:00
|
|
|
tutorials/Makefile
|
2013-02-11 16:08:09 -06:00
|
|
|
opm-core.pc
|
2012-09-21 05:28:57 -05:00
|
|
|
lib/pkgconfig/opm-core.pc
|
2012-10-19 07:14:15 -05:00
|
|
|
opmcore-config.cmake
|
2011-12-08 07:49:09 -06:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_OUTPUT
|