[Dune] dunecontrol

Christian Engwer christi at uni-hd.de
Tue May 6 12:31:46 CEST 2008


> 1) in projects based on the duneproject script, configure.ac
> contains DUNE_CHECK_ALL and not DUNE_CHECK_ALL_M - which makes
> sense, but we had some problems with, e.g., finding the tr1/tuple.
> Probably a AC_LANG_PUSH([C++]) is missing in DUNE_CHECK_ALL?
> Everything works fine with the following patch to dune_all.m4:

These problems are not related to DUNE_CHECK_ALL
vs. DUNE_CHECK_ALL_M. The patch will work, but is not a clean
solution. We should try to keep the C++-lang local. We had quite a
mess with languages being pushed and popped and it was not always
clear which lang was in use, depending on the order of the tests. We
already looked into the problem and Sven has patch ready and will
commit it later today.

>  AC_DEFUN([DUNE_CHECK_ALL],[
> +  AC_LANG_PUSH([C++])
>    # doxygen and latex take a lot of time...
>    AC_REQUIRE([DUNE_DOCUMENTATION])
>    AC_REQUIRE([DUNE_WEB])
> @@ -83,6 +84,7 @@
>    AC_SUBST(ALL_PKG_CPPFLAGS, "$CPPFLAGS $DUNE_PKG_CPPFLAGS")
> 
>    AC_SUBST(am_dir, $DUNE_COMMON_ROOT/am)
> +  AC_LANG_POP([C++])

> 2) In the find_modules_in_path() function:
>    Adding a maxpdepth argument to the find, e.g.,
>          $(find "$dir" -maxdepth 2 -name $CONTROL | $GREP -v  ...
>    leads to a reduction in execution time of the dunecontrol and also
>    of duneporject script - especially on slow disc.
>    And also it is then possible to have a directory (e.g. old) where
>    one can have copies of dune modules. Probably  checking for
>    dune.module in subsubdirectories has some other reason which I do not
>    know about?

This will definitely change the semantics of DUNE_CONTROL_PATH. I'm
against this solution. We either change the behaviour completely and
allow only explicit listing of directories or dune.module files, or we
keep it the way it is.

The argument of slow disks does not count. You can always provide a
DUNE_CONTROL_PATH. In this path you can either specify directories,
which are then search recursively or explicitely specify the
dune.module files. This the later case no recursion takes place.

Christian




More information about the Dune mailing list