aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Shanqing Cai <cais@google.com>2016-04-28 10:34:56 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-04-28 11:41:12 -0700
commitde6d48ce9298effa59a06ef8e0f83b2fbed5104f (patch)
treef9fe9ed199f23f4d756c2f2a3cc884f27d1894fc /configure
parentf7eba2a4c8461012c31856935c2645590d1f0d37 (diff)
Check for protobuf submodule in configure
so that the builds can fail fast in cases where the --recurse-submodules flag is missed during git clone. Change: 121039992
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 0a7d697c40..75098c17ee 100755
--- a/configure
+++ b/configure
@@ -2,6 +2,17 @@
DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!"
+## Verify that the submodule google/protobuf is available
+# TODO(cais): Remove this check once protobuf is no longer depended upon
+if [[ ! -f "google/protobuf/protobuf.bzl" ]]; then
+ echo "ERROR: It appears that the required submodule google/protobuf is not "\
+"available in this TensorFlow git clone."
+ echo "Please be sure to use the --recurse-submodules flag when performing "\
+"git clone of TensorFlow."
+
+ exit 1
+fi
+
## Set up python-related environment settings
while true; do
fromuser=""