aboutsummaryrefslogtreecommitdiffhomepage
path: root/autogen.sh
diff options
context:
space:
mode:
authorGravatar Nan Xiao <nan@chinadtrace.org>2017-09-04 15:43:54 +0800
committerGravatar GitHub <noreply@github.com>2017-09-04 15:43:54 +0800
commitf4ff17bb166d298af77739302f88d033a224b100 (patch)
tree3754c498e8f284ff69e8799e6a086b1662add5d2 /autogen.sh
parent6699f2cf64c656d96f4d6f93fa9563faf02e94b4 (diff)
Update autogen.sh
Fix the bug in following scenario: gmock is downloaded successfully while gtest not. Resuming "autogen.sh", the gtest won't be downloaded. And following error will occur: $ ./autogen.sh + autoreconf -f -i -Wall,no-obsolete aclocal: error: configure.ac:1: file 'gtest/m4/acx_pthread.m4' does not exist autoreconf: aclocal failed with exit status: 1
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 9f266425..9560aaf1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -35,7 +35,9 @@ if test ! -e gmock; then
unzip -q release-1.7.0.zip
rm release-1.7.0.zip
mv googlemock-release-1.7.0 gmock
+fi
+if test ! -e gmock/gtest; then
curl $curlopts -L -O https://github.com/google/googletest/archive/release-1.7.0.zip
unzip -q release-1.7.0.zip
rm release-1.7.0.zip