We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b403d commit 2049d1fCopy full SHA for 2049d1f
configure
@@ -301,7 +301,17 @@ step_msg "looking for build programs"
301
probe_need CFG_PERL perl
302
probe_need CFG_PYTHON python python2.6 python2 python3
303
probe_need CFG_CURL curl
304
-probe_need CFG_GIT git
+
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
315
probe CFG_CLANG clang++
316
probe CFG_GCC gcc
317
probe CFG_LLVM_CONFIG llvm-config
0 commit comments