2011-12-08 14:49:09 +01:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
2011-12-12 14:57:09 +01:00
|
|
|
AC_PREREQ([2.59])
|
2012-09-21 12:29:22 +02:00
|
|
|
AC_INIT([OPM Core Library], [0.1], [atgeirr@sintef.no],
|
2011-12-08 14:49:09 +01: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 14:20:41 +02: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 14:49:09 +01:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-12-12 11:29:14 +01:00
|
|
|
AC_CONFIG_SRCDIR([opm/core/grid.h])
|
2011-12-08 14:49:09 +01:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
|
AC_PROG_CC
|
2012-01-06 11:22:35 +01:00
|
|
|
AM_PROG_CC_C_O
|
2011-12-08 14:49:09 +01:00
|
|
|
|
2012-09-21 14:28:26 +02:00
|
|
|
dnl Initialize libtool; the funny indentation here is to
|
|
|
|
|
dnl satisfy libtoolize' check for the presence of this macro
|
2012-06-05 18:40:36 +02:00
|
|
|
m4_ifdef([LT_INIT],
|
2012-09-21 14:28:26 +02:00
|
|
|
[
|
|
|
|
|
LT_INIT[]dnl
|
2012-06-05 18:40:36 +02: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 14:49:09 +01:00
|
|
|
|
2012-06-14 18:13:56 +02:00
|
|
|
OPM_CORE_CHECKS
|
2012-04-13 15:35:19 +02:00
|
|
|
|
2012-06-27 16:25:46 +02:00
|
|
|
OPM_DYNLINK_BOOST_TEST
|
|
|
|
|
|
2012-06-28 13:27:03 +02:00
|
|
|
ERT
|
2011-12-08 16:15:14 +01:00
|
|
|
|
2012-07-12 14:37:23 +02: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 14:49:09 +01:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
Makefile
|
|
|
|
|
tests/Makefile
|
|
|
|
|
examples/Makefile
|
2012-04-10 17:46:52 +02:00
|
|
|
tutorials/Makefile
|
2013-02-11 23:08:09 +01:00
|
|
|
opm-core.pc
|
2012-09-21 12:28:57 +02:00
|
|
|
lib/pkgconfig/opm-core.pc
|
2012-10-19 14:14:15 +02:00
|
|
|
opmcore-config.cmake
|
2011-12-08 14:49:09 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT
|