summaryrefslogtreecommitdiff
path: root/.ci/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/configure.sh')
-rwxr-xr-x.ci/configure.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.ci/configure.sh b/.ci/configure.sh
new file mode 100755
index 0000000000..fc2b231081
--- /dev/null
+++ b/.ci/configure.sh
@@ -0,0 +1,12 @@
1#!/bin/bash
2
3
4set -o pipefail
5export TEST_VAR=1
6if ! ./configure $@ | tee -a configlog ; then
7 if grep -q 'configure: error: changes in the environment can compromise the build' configlog ; then
8 echo "clearing config.cache and retrying..."
9 rm -f configlog config.cache
10 ./configure $@
11 fi
12fi