From b1ee78faf81ca8822766e782bd2f17d635baab42 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Tue, 2 Apr 2024 15:25:15 +0100 Subject: [PATCH] Raise configure error message for unsupported archives Github lets users download archives of our repos. These do not contain the necessary submodules. We regularly encounter users who stumble across this. We already do have an error message that is raised when a non-recursive git checkout was done. This commit adds an error message for a non-git download that does not contain the necessary files. --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure b/configure index 34cc68bfc6..f64b2938ec 100755 --- a/configure +++ b/configure @@ -145,6 +145,25 @@ Zeek. To check out the required subdirectories, please execute: exit 1 fi +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 downloaded a non-release archive from github. +These archives do not contain all required files. + +If you want to download the current release of Zeek, please download a full +archive using one of the links at https://zeek.org/get-zeek/. + +If you want to get the current development version of Zeek, please use git to +clone our repository. + +See https://docs.zeek.org/en/master/install.html#retrieving-the-sources for +instructions. +" >&2 + exit 1 +fi + # Function to append a CMake cache entry definition to the # CMakeCacheEntries variable. # $1 is the cache entry variable name