[CMake] Do not add dunegrid in UG/ALUGrid/ALBERTA flags.

Otherwise dunegrid would be linked to itself which is odd,
uncommon compared to other external libraries, and it leads
to error CMP0038 with CMake 3.0.0.

(cherry picked from commit 4e1c6ad33542a8db86278d59ee48c5fa92b7b34b)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[CMake] Add directory test target uncoditionally for albertagrid/test

Otherwise CTest complains for a missing configure file.

(cherry picked from commit b7a51e5a921a7b02d85df15c0fdc9c3c63ab5376)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[CMake] UseUG does no longer emit warnings when UG is not found.

Add result logging.

(cherry picked from commit 25f3e041ffe63b8b0843aa88f3947103baede344)
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.

(cherry picked from commit d774be347c47e8b3b68b2253ef014cd074abbe7a)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[alugrid,bugfix] make function ALUGridParallelSerial inline

the static function ALUGridParallelSerial should be declared static
inline, as it is defined in a header. The function does not depend on
template parameters and might thus lead to symbol clashes between
different compilation units.

Kudos to clang-3.4 for pointing this out ;-)

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

Conflicts:
	dune/grid/alugrid/3d/alugrid.hh
[CMake] Use find_path instead of find_file in FindALUGrid.cmake

find_path finds the directory which is all we need.

(cherry picked from commit 7d3df224a7566125af7ce908be72156b34241443)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[CMake] Add status output to UG config check.

"QUIET" was too much, but now we have the ugly
warning back, when UG ist not found.

(cherry picked from commit b67a40ed76f1d1a9ee7866837b33f6f3a3921851)
Signed-off-by: Christoph Grüninger <gruenich@dune-project.org>
[CMake] Add missing ".cc" for test-mcmg-geogrid.

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