File 0031-Clean-configure-when-before-invoking-autoconf.patch of Package erlang

From e452f3b5bbba1f2139121e259d208dce112b1f74 Mon Sep 17 00:00:00 2001
From: Dan Gudmundsson <dgud@erlang.org>
Date: Mon, 13 Mar 2017 15:56:04 +0100
Subject: [PATCH] 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
---
 otp_build | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/otp_build b/otp_build
index d0f75aff7..175c5fbcf 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"`
-- 
2.12.0

openSUSE Build Service is sponsored by