Skip to content

Commit

Permalink
Clean configure when before invoking autoconf
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dgud committed Mar 13, 2017
1 parent 47e4606 commit e452f3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions otp_build
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit e452f3b

Please sign in to comment.