]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1998-09-27 Ben Elliston <bje@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 26 Sep 1998 07:39:39 +0000 (07:39 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 26 Sep 1998 07:39:39 +0000 (07:39 +0000)
* testsuite/Makefile.in (check): If DejaGNU is not installed,
print a warning and skip the `dejacheck' target (which will fail).
(site.exp): Use tests to guard commands from generating error
messages if `site.exp' or `site.bak' do not exist. Contributed by
Karl Heuer <kwzh@gnu.org>.

ChangeLog
testsuite/Makefile.in

index 313a7df3c884eb8d4298ef53ede2fbf7e5e18943..6c4494f8e1d4d15713590cca2b8b456ccf8a4ccc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1998-09-27  Ben Elliston  <bje@cygnus.com>
+
+       * testsuite/Makefile.in (check): If DejaGNU is not installed,
+       print a warning and skip the `dejacheck' target (which will fail).
+       (site.exp): Use tests to guard commands from generating error
+       messages if `site.exp' or `site.bak' do not exist. Contributed by
+       Karl Heuer <kwzh@gnu.org>.
+       
 1998-09-26  Ben Elliston  <bje@cygnus.com>
 
        * texinfo.tex: Import latest version from the FSF.
index 7c9586013212c29ba17a2415d2c3fba446c7a4e7..bc4c8d9716e6f2741794cd91c507f1f9197c9dd9 100644 (file)
@@ -46,16 +46,19 @@ dejacheck:
          exit 1; \
        fi
 
-check: dejacheck site.exp all
+check: site.exp all
+       @if ($(RUNTEST) --version) >/dev/null 2>&1; then \
+       echo $(RUNTEST); \
        $(RUNTEST) $(RUNTESTFLAGS) --tool autoconf AUTOCONF=${AUTOCONF} \
-       AUTOCONFFLAGS="${AUTOCONFFLAGS}" --srcdir $(srcdir)
+       AUTOCONFFLAGS="${AUTOCONFFLAGS}" --srcdir $(srcdir); \
+       else echo $(RUNTEST) not found, check skipped; fi
 
 installcheck:
 
 site.exp: Makefile
        @echo "Making a new site.exp file..."
-       -@rm -f site.bak
-       -@mv site.exp site.bak
+       @test ! -f site.bak || rm -f site.bak
+       @test ! -f site.exp || mv site.exp site.bak
        @echo "## these variables are automatically generated by make ##" > site.exp
        @echo "# Do not edit here. If you wish to override these values" >> site.exp
        @echo "# add them to the last section" >> site.exp
@@ -63,7 +66,7 @@ site.exp: Makefile
        @echo "set srcdir ${srcdir}" >> site.exp
        @echo "set objdir `pwd`" >> site.exp
        @echo "## All variables above are generated by configure. Do Not Edit ##" >> site.exp
-       -@sed '1,/^## All variables above are.*##/ d' site.bak >> site.exp
+       @test ! -f site.bak || sed '1,/^## All variables above are.*##/ d' site.bak >> site.exp
 
 install: