From de6d48ce9298effa59a06ef8e0f83b2fbed5104f Mon Sep 17 00:00:00 2001 From: Shanqing Cai Date: Thu, 28 Apr 2016 10:34:56 -0800 Subject: 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 --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure') 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="" -- cgit v1.2.3