Compatibility module for dunecontrol-driven clients

If a client generated with duneproject/built with dunecontrol has a
dependency to opm-autodiff, the macros defined in this file is expected
to exist and will be called to search for the opm-autodiff library.

All that is done here is to use the pkg-config helper module and
import the configuration that was written by the CMake system (which
even may have been called earlier in the same dunecontrol "session")
This commit is contained in:
Roland Kaufmann
2013-05-24 11:41:05 +02:00
parent d2286f33eb
commit 1a63243419

12
m4/opm_autodiff.m4 Normal file
View File

@@ -0,0 +1,12 @@
dnl -*- autoconf -*-
dnl locate opm-autodiff library itself; this macro is called by every module
dnl that depends on opm-autodiff.
AC_DEFUN([OPM_AUTODIFF_CHECK_MODULE],
[
OPM_CHECK_PKG_MODULE([opm-autodiff],[1.0],[Utilities for automatic differentiation and simulators based on AD])
])
dnl find all prerequisites of opm-autodiff; nothing to do here since this
dnl is done by the CMake module and then stored in the -config file.
AC_DEFUN([OPM_AUTODIFF_CHECKS],[])