mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Make configure complain if submodules are not checked out.
Since people forgetting to checkout submodules is such a common failure case - update configure to give an error message is the cmake directory seems to be missing. This just checks for the presence of cmake/COPYING when a .git directory is found; if cmake/COPYING is not present an error message is displayed.
This commit is contained in:
parent
3648b1465e
commit
437520f45f
1 changed files with 14 additions and 0 deletions
14
configure
vendored
14
configure
vendored
|
@ -106,6 +106,20 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
|
|||
|
||||
sourcedir="$( cd "$( dirname "$0" )" && pwd )"
|
||||
|
||||
if [ ! -e "$sourcedir/cmake/COPYING" ] && [ -d "$sourcedir/.git" ]; then
|
||||
echo "\
|
||||
You seem to be missing the content of the cmake directory.
|
||||
|
||||
This typically means that you performed a non-recursive git clone of
|
||||
Zeek. To check out the required subdirectories, please execute
|
||||
|
||||
git submodule update --recursive --init
|
||||
|
||||
in $sourcedir.
|
||||
" >&2;
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Function to append a CMake cache entry definition to the
|
||||
# CMakeCacheEntries variable.
|
||||
# $1 is the cache entry variable name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue