Skip to content

Commit 2049d1f

Browse files
db48xbrson
authored andcommitted
only require git if the source looks like it was checked out from git, otherwise don't attempt to manage the submodules
1 parent 11b403d commit 2049d1f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

configure

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,17 @@ step_msg "looking for build programs"
301301
probe_need CFG_PERL perl
302302
probe_need CFG_PYTHON python python2.6 python2 python3
303303
probe_need CFG_CURL curl
304-
probe_need CFG_GIT git
304+
305+
# If we have no git directory then we are probably a tarball distribution
306+
# and shouldn't attempt to load submodules
307+
if [ ! -e ${CFG_SRC_DIR}.git ]
308+
then
309+
msg "git: no git directory. disabling submodules"
310+
CFG_DISABLE_MANAGE_SUBMODULES=1
311+
else
312+
probe_need CFG_GIT git
313+
fi
314+
305315
probe CFG_CLANG clang++
306316
probe CFG_GCC gcc
307317
probe CFG_LLVM_CONFIG llvm-config

0 commit comments

Comments
 (0)