Skip to content

Commit a7c4c18

Browse files
committed
configure: Cleanup
1 parent 2049d1f commit a7c4c18

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

configure

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,11 @@ probe_need CFG_CURL curl
306306
# and shouldn't attempt to load submodules
307307
if [ ! -e ${CFG_SRC_DIR}.git ]
308308
then
309+
probe CFG_GIT git
309310
msg "git: no git directory. disabling submodules"
310311
CFG_DISABLE_MANAGE_SUBMODULES=1
311312
else
312-
probe_need CFG_GIT git
313+
probe_need CFG_GIT git
313314
fi
314315

315316
probe CFG_CLANG clang++
@@ -482,14 +483,6 @@ done
482483
# Configure submodules
483484
step_msg "configuring submodules"
484485

485-
# If we have no git directory then we are probably a tarball distribution
486-
# and shouldn't attempt to load submodules
487-
if [ ! -e ${CFG_SRC_DIR}.git ]
488-
then
489-
msg "git: no git directory. disabling submodules"
490-
CFG_DISABLE_MANAGE_SUBMODULES=1
491-
fi
492-
493486
# Have to be in the top of src directory for this
494487
if [ -z $CFG_DISABLE_MANAGE_SUBMODULES ]
495488
then
@@ -679,14 +672,8 @@ putvar CFG_PREFIX
679672
putvar CFG_TARGET_TRIPLES
680673
putvar CFG_C_COMPILER
681674
putvar CFG_LIBDIR
675+
putvar CFG_DISABLE_MANAGE_SUBMODULES
682676

683-
# Setting this again because it may have been changed
684-
if [ $CFG_DISABLE_MANAGE_SUBMODULES ]
685-
then
686-
putvar CFG_DISABLE_MANAGE_SUBMODULES
687-
fi
688-
689-
# Ditto for pandoc
690677
if [ ! -z $BAD_PANDOC ]
691678
then
692679
CFG_PANDOC=

0 commit comments

Comments
 (0)