From 1ee369e85c2abcdf4f81876ee4bbea03f7185d32 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Mon, 22 Mar 1993 05:51:13 +0000 Subject: [PATCH] Solve all config problems, make a local site.exp file. --- gdb/testsuite/Makefile.in | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 2d1a76f66da..0853823a6c3 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -144,7 +144,32 @@ uninstall: force # -rm -f $(datadir)/*.exp -rm -fr $(targetdir) -check: all +site.exp: ./config.status + @echo "Making a new config file..." + -@rm -f ./tmp? + @touch site.exp + -@mv site.exp site.bak + @echo "## these variables are automatically generated by make ##" > ./tmp0 + @echo "# Do not edit here. If you wish to override these values" >> ./tmp0 + @echo "# add them to the last section" >> ./tmp0 + @echo "set host_os ${host_os}" >> ./tmp0 + @echo "set host_alias ${host_alias}" >> ./tmp0 + @echo "set host_cpu ${host_cpu}" >> ./tmp0 + @echo "set host_vendor ${host_vendor}" >> ./tmp0 + @echo "set target_os ${target_os}" >> ./tmp0 + @echo "set target_alias ${target_alias}" >> ./tmp0 + @echo "set target_cpu ${target_cpu}" >> ./tmp0 + @echo "set target_vendor ${target_vendor}" >> ./tmp0 + @echo "set srcdir ${srcdir}" >> ./tmp0 + @echo "set exec_prefix ${exec_prefix}" >> ./tmp0 + @echo "set objdir `pwd`" >> ./tmp0 + @echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0 + @cat ./tmp0 > site.exp + @cat site.bak | sed \ + -e '1,/^## All variables above are.*##/ d' >> site.exp + @rm -f ./tmp1 ./tmp0 + +check: all site.exp $(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB) subdir_do: force -- 2.30.2