summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-11-05 21:31:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-11-05 21:31:13 -0700
commitd44bbf2177ae706e15247ca08c5739c8156bf3cb (patch)
tree4da085c572b9a3be2da2e320539efeb648ffc1dd /configure
parent7f9e034cc898604ef98b96832afbfcae61768e8e (diff)
downloadtxr-d44bbf2177ae706e15247ca08c5739c8156bf3cb.tar.gz
txr-d44bbf2177ae706e15247ca08c5739c8156bf3cb.tar.bz2
txr-d44bbf2177ae706e15247ca08c5739c8156bf3cb.zip
* 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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
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