[duneproject,release] Let new modules create CMake package configuration files with autotools.
(cherry picked from commit 49699030b29122d5ed6eaca6d749f541f57177bf)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[am2cmake,release] Add directives for CMake package configuration with autotools during conversion
(cherry picked from commit a404f29435f458585e9461e371368769b7bf1634)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[release,parallel] Suppress unused parameter warnings without DUNE_ISTL_WITH_CHECKING
(cherry picked from commit 9a141d3a5175ac67612aeccd39beb0cad2117f27)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[buildsystem,bugfix] Test for the right directories when creating package configuration files.

Due to testing the wrong directories some variables where missing in the
package configuration files. This patch fixes this.
(cherry picked from commit 0826cf14106567f4d0faf5751018b19f14f6e80c)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[bugfix,duneproject] Makes duneproject work again with installed modules.

duneproject failed miserably when run with only installed modules. With
this patch we correctly setup the pkg-config and dunecontrol path to
handle this situation. In addition we fixed various issues with the newly
created modules and they now build as exspected.
(cherry picked from commit 3afb183479779b47042f66a757b4fec95b213d90)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>
[cmake,bugfix] Handle case where module search path is not in list.

With new modules there were cases where cmake/modules was not in the
modules path which made configuration fail. This patch fixes this case.
(cherry picked from commit d1011bfeaf97b21d3acc8033453bd9cd86ff4b1e)

Signed-off-by: Markus Blatt <markus@dr-blatt.de>