summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rwxr-xr-xconfigure7
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be0fe583..144aa482 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-11-05 Kaz Kylheku <kaz@kylheku.com>
+ * configure: Bugfixes. Before the compiler tests, we must
+ remove the conftest executable, to make sure that the next test will
+ try to re-make it. The configure runs fast enough that the new
+ conftest.c does not always have a timestamp which is newer than
+ previous conftest executable.
+
+2011-11-05 Kaz Kylheku <kaz@kylheku.com>
+
Task #11442. Make work on MingW.
* configure: Test for environ and GetEnvironmentStrings.
diff --git a/configure b/configure
index 6f98e559..d8594f8e 100755
--- a/configure
+++ b/configure
@@ -574,6 +574,7 @@ int main(void)
}
!
+rm -f conftest
if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
printf "failed\n\n"
printf "Errors from compilation: \n\n"
@@ -767,6 +768,7 @@ $inline int func(void)
return 0;
}
!
+ rm -f conftest2
if ! make conftest2 > conftest.err 2>&1 ; then
continue
fi
@@ -798,6 +800,7 @@ int main(void)
syntax error
#endif
!
+ rm -rf conftest
if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
printf "failed\n\n"
printf "Errors from compilation: \n\n"
@@ -816,6 +819,7 @@ fi
printf "Checking for yacc program ... "
if [ -z "$yacc_given" -a -z "$yaccname_given" ] ; then
+ rm -f conftest.yacc
for yaccname in "yacc" "byacc" "bison -y" "" ; do
yaccpath=$(make yaccname="$yaccname" conftest.yacc)
if command -v $yaccpath > /dev/null ; then
@@ -862,6 +866,7 @@ int main(void)
return 0;
}
!
+rm -f conftest
if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
printf "no\n"
else
@@ -883,6 +888,7 @@ int main(void)
return 0;
}
!
+rm -f conftest
if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
printf "no\n"
else
@@ -905,6 +911,7 @@ int main(void)
return 0;
}
!
+rm -f conftest
if ! make conftest > conftest.err 2>&1 || ! [ -x conftest ] ; then
printf "no\n"
else