Solve all config problems, make a local site.exp file.
authorRob Savoye <rob@cygnus>
Mon, 22 Mar 1993 05:51:13 +0000 (05:51 +0000)
committerRob Savoye <rob@cygnus>
Mon, 22 Mar 1993 05:51:13 +0000 (05:51 +0000)
gdb/testsuite/Makefile.in

index 2d1a76f66daa44d71faf205c10fd7d62fb8da755..0853823a6c370119527b756493931235ec785654 100644 (file)
@@ -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