[Dune] dune.module + Suggests + Automake Macro (dune-2.0)
Dan Popovic
dan.popovic at iwr.uni-heidelberg.de
Tue Jul 12 08:24:59 CEST 2011
Hello Dune-Users,
recently I wondered if there is a way to built certain sub-directories
of a dune application depending on if some dune module listed below
'Suggests' in the application's dune.module is available or not.
Yesterday I talked with Joe and he pointed out that this feature is
already available (I'm working with dune-2.0 stable): In
dune-common/m4/dune.m4, DUNE_CHECK_MODULES defines an AM_CONDITIONAL
named HAVE_{MODULE} where MODULE is the name of the module from
'Suggests' in upper case and any '-' is replaced by '_'. For
instance, for dune-pdelab there would be 'HAVE_DUNE_PDELAB' defined and
could be used in a Makefile.am in an if-clause. Joe already added
detailed documentation about DUNE_CHECK_MODULES to dune.m4 where it is
described how this macro should be called and which conditional is
defined -- perfect! ;-)
'Thanks' Joe and best regards to all.
Dan
Am Freitag, den 08.07.2011, 14:32 +0200 schrieb Dan Popovic:
> Dear Dune,
>
> if I specify any dune module, say dune-foo, as "Suggests = dune-foo" in
> the dune.module file of my dune application, is it then possible to have
> certain directories in my application built depending on if the
> suggested module is installed or not? Is there, for instance, any
> Automake-Macro defined which I could use in my build-files?
>
> I had a look into the build-system-howto, but could not find any hints
> on this. My question is probably related to the issue that the P1-FEM
> example in the dune-grid-howto should be compiled if dune-istl is
> installed only (which was discussed on this list some weeks ago), but
> afaics this was realized up to today (I had a look in the current trunk
> of dune-grid-howto).
>
> Any help appreciated -- Have a nice day,
>
> Dan
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
More information about the Dune
mailing list