Set variable SED as not all Linuces have it set by default.

The variable is was set and used by dunecontrol but not by duneproject.

(cherry picked from commit dcaa5581c11886ee047a6702fb6c078780c1f18e)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[duneproject] Complain about dot in module name.

Cf. FS#1461.

(cherry picked from commit 3433521d447121d3da2065fe7f9bf3e907771497)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[autotools] Remove second call to AM_INIT_AUTOMAKE.

Complained by autoconf 1.14, cf. FS#1462.
Thanks to Claus for the heads-up.

(cherry picked from commit 152efd8bbef696d61cc6a7f803b201496bf1404c)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[CMake] Update cmake/modules/UseLATEX.cmake to version 1.10.4.

Whitespace changes where necessary to please the git commit hook.

(cherry picked from commit 0e7febb938039690bbbf8e574205df7053505168)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>

Conflicts:
	cmake/modules/UseLATEX.cmake
[CMake] Apply our modifications to UseLATEX.cmake.

Needed to build the documentation only for make doc.
Avoid name clashes by adding MANGLE_TARGET_NAMES.
With CMake 3.0.0 no more warnings are emitted by
building the documentation.

(cherry picked from commit fef31ca50f059307d7ce79fee0f4d08acceadbe9)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>