The decision whether a module is installed is usually based on whether
pkgconfig was able to find it. If the DUNE module does not ship a
pkgconf file or pkgconf is missing, then dunecontrol tries to build
this installed modules, too. That fails miserably.
With this commit we add a check at the end that checks whether
there is a CMakeLists.txt file in the source directory of the
module. This directory is where the dune.module file was found. If
there is none we also assume that the module is installed and do not
try to build it.
Gbp-Pq: Name dunecontrol-Module-without-CMakeLists.txt-next-to-du.patch
module_inst="yes"
fi
fi
+ # Mark modules as installed if there is no CMakeLists.txt in path
+ # Not that path is where the dune.module file is located.
+ if test "$module_inst" = "no" && ! test -e "$path/CMakeLists.txt"; then
+ module_inst="yes"
+ fi
+
# avoid multiple definition of the same module
if eval test "x\$HAVE_$module" != "x"; then
# make sure we don't stumble over the same module twice