diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-11-05 21:31:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-11-05 21:31:13 -0700 |
commit | d44bbf2177ae706e15247ca08c5739c8156bf3cb (patch) | |
tree | 4da085c572b9a3be2da2e320539efeb648ffc1dd /configure | |
parent | 7f9e034cc898604ef98b96832afbfcae61768e8e (diff) | |
download | txr-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-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |