aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2017-03-13 15:56:04 +0100
committerDan Gudmundsson <[email protected]>2017-03-13 15:56:04 +0100
commite452f3b5bbba1f2139121e259d208dce112b1f74 (patch)
tree5e82e2e6e1d4412c18c13688b4ae72b5714e5704
parent47e46069d01960b74cefeba648e98e6afbb79e59 (diff)
downloadotp-e452f3b5bbba1f2139121e259d208dce112b1f74.tar.gz
otp-e452f3b5bbba1f2139121e259d208dce112b1f74.tar.bz2
otp-e452f3b5bbba1f2139121e259d208dce112b1f74.zip
Clean configure when before invoking autoconf
Autoconf doesn't remake configure if creation time on configure.in is older than the previous version. This caused problems on windows so always recreate configure when running ./otp_build autoconf
-rwxr-xr-xotp_build5
1 files changed, 5 insertions, 0 deletions
diff --git a/otp_build b/otp_build
index d0f75aff71..175c5fbcfe 100755
--- a/otp_build
+++ b/otp_build
@@ -310,6 +310,11 @@ do_autoconf ()
echo "=== cleaning $d/autom4te.cache"
rm -f "$d"/autom4te.cache/*
}
+ [ ! -f "$d/configure" ] || {
+ echo "=== cleaning $d/configure"
+ rm -f "$d"/configure
+ }
+
echo "=== running autoconf in $d"
( cd "$d" && autoconf ) || exit 1
chdr=`cat "$file" | sed -n "s|.*\(AC_CONFIG_HEADER\).*|\1|p"`