summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog153
-rw-r--r--Makefile.in4
-rwxr-xr-xconfigure49
-rw-r--r--configure.in5
-rw-r--r--lib/Automake/Makefile.in2
-rw-r--r--lib/Makefile.in2
-rw-r--r--lib/am/Makefile.in2
-rw-r--r--m4/Makefile.in2
-rw-r--r--stamp-vti2
-rw-r--r--tests/Makefile.am5
-rw-r--r--tests/Makefile.in17
-rwxr-xr-xtests/acinclude.test20
-rwxr-xr-xtests/aclibobj.test20
-rwxr-xr-xtests/aclocal.test20
-rwxr-xr-xtests/aclocali.test20
-rwxr-xr-xtests/aclocali1.test20
-rwxr-xr-xtests/aclocalii.test20
-rwxr-xr-xtests/acoutnoq.test20
-rwxr-xr-xtests/acoutput.test20
-rwxr-xr-xtests/acoutput2.test20
-rwxr-xr-xtests/acoutqnl.test20
-rwxr-xr-xtests/acouttbs.test20
-rwxr-xr-xtests/acouttbs2.test20
-rwxr-xr-xtests/acsilent.test20
-rwxr-xr-xtests/acsubst.test21
-rwxr-xr-xtests/acsubst2.test21
-rwxr-xr-xtests/all.test20
-rwxr-xr-xtests/alpha.test20
-rwxr-xr-xtests/amassign.test20
-rwxr-xr-xtests/ammissing.test20
-rwxr-xr-xtests/ansi.test21
-rwxr-xr-xtests/ansi2.test20
-rwxr-xr-xtests/ansi3.test20
-rwxr-xr-xtests/ansi4.test20
-rwxr-xr-xtests/ansi5.test20
-rwxr-xr-xtests/ansi6.test20
-rwxr-xr-xtests/ansi7.test20
-rwxr-xr-xtests/ansi8.test20
-rwxr-xr-xtests/ar.test20
-rwxr-xr-xtests/asm.test20
-rwxr-xr-xtests/autoheader.test20
-rwxr-xr-xtests/autoheader2.test20
-rwxr-xr-xtests/auxdir.test20
-rwxr-xr-xtests/auxdir2.test20
-rwxr-xr-xtests/backsl.test20
-rwxr-xr-xtests/backsl2.test20
-rwxr-xr-xtests/badline.test20
-rwxr-xr-xtests/badopt.test20
-rwxr-xr-xtests/badprog.test20
-rwxr-xr-xtests/block.test20
-rwxr-xr-xtests/canon.test20
-rwxr-xr-xtests/canon2.test20
-rwxr-xr-xtests/canon3.test20
-rwxr-xr-xtests/canon4.test20
-rwxr-xr-xtests/canon5.test20
-rwxr-xr-xtests/ccnoco.test20
-rwxr-xr-xtests/check.test20
-rwxr-xr-xtests/checkall.test20
-rwxr-xr-xtests/clean.test20
-rwxr-xr-xtests/colneq.test20
-rwxr-xr-xtests/colneq2.test20
-rwxr-xr-xtests/colon.test20
-rwxr-xr-xtests/colon2.test20
-rwxr-xr-xtests/colon3.test20
-rwxr-xr-xtests/colon4.test20
-rwxr-xr-xtests/colon5.test20
-rwxr-xr-xtests/colon6.test20
-rwxr-xr-xtests/colon7.test20
-rwxr-xr-xtests/comment.test20
-rwxr-xr-xtests/comment2.test20
-rwxr-xr-xtests/comment3.test20
-rwxr-xr-xtests/comment4.test21
-rwxr-xr-xtests/comment5.test21
-rwxr-xr-xtests/comment6.test21
-rwxr-xr-xtests/compile_f_c_cxx.test20
-rwxr-xr-xtests/cond.test20
-rwxr-xr-xtests/cond10.test20
-rwxr-xr-xtests/cond11.test20
-rwxr-xr-xtests/cond12.test20
-rwxr-xr-xtests/cond13.test20
-rwxr-xr-xtests/cond14.test20
-rwxr-xr-xtests/cond15.test20
-rwxr-xr-xtests/cond16.test20
-rwxr-xr-xtests/cond17.test20
-rwxr-xr-xtests/cond18.test20
-rwxr-xr-xtests/cond19.test20
-rwxr-xr-xtests/cond2.test20
-rwxr-xr-xtests/cond20.test20
-rwxr-xr-xtests/cond21.test20
-rwxr-xr-xtests/cond22.test20
-rwxr-xr-xtests/cond23.test20
-rwxr-xr-xtests/cond24.test20
-rwxr-xr-xtests/cond3.test20
-rwxr-xr-xtests/cond4.test20
-rwxr-xr-xtests/cond5.test20
-rwxr-xr-xtests/cond6.test20
-rwxr-xr-xtests/cond7.test20
-rwxr-xr-xtests/cond8.test20
-rwxr-xr-xtests/cond9.test20
-rwxr-xr-xtests/condd.test20
-rwxr-xr-xtests/condincl.test20
-rwxr-xr-xtests/condincl2.test20
-rwxr-xr-xtests/condlib.test20
-rwxr-xr-xtests/condman.test20
-rwxr-xr-xtests/condman2.test20
-rwxr-xr-xtests/conf2.test20
-rwxr-xr-xtests/confdeps.test20
-rwxr-xr-xtests/confdist.test20
-rwxr-xr-xtests/confh.test20
-rwxr-xr-xtests/confh4.test20
-rwxr-xr-xtests/config.test20
-rwxr-xr-xtests/confincl.test20
-rwxr-xr-xtests/confsub.test21
-rwxr-xr-xtests/confvar.test20
-rwxr-xr-xtests/confvar2.test20
-rwxr-xr-xtests/copy.test20
-rwxr-xr-xtests/ctarget1.test20
-rwxr-xr-xtests/cxx.test20
-rwxr-xr-xtests/cxx2.test20
-rwxr-xr-xtests/cxxansi.test20
-rwxr-xr-xtests/cxxcpp.test20
-rwxr-xr-xtests/cxxlibobj.test20
-rwxr-xr-xtests/cxxlink.test20
-rwxr-xr-xtests/cxxnoc.test20
-rwxr-xr-xtests/cxxo.test20
-rwxr-xr-xtests/cygwin32.test20
-rwxr-xr-xtests/dash.test20
-rw-r--r--tests/defs.in (renamed from tests/defs)64
-rwxr-xr-xtests/defun.test20
-rwxr-xr-xtests/defun2.test20
-rwxr-xr-xtests/dejagnu.test20
-rwxr-xr-xtests/dejagnu2.test20
-rwxr-xr-xtests/depacl.test20
-rwxr-xr-xtests/depacl2.test20
-rwxr-xr-xtests/depcomp.test20
-rwxr-xr-xtests/depcomp2.test20
-rwxr-xr-xtests/depdist.test20
-rwxr-xr-xtests/depend.test20
-rwxr-xr-xtests/depend2.test21
-rwxr-xr-xtests/depend3.test20
-rwxr-xr-xtests/depend4.test20
-rwxr-xr-xtests/destdir.test20
-rwxr-xr-xtests/dirforbid.test20
-rwxr-xr-xtests/dirlist.test20
-rwxr-xr-xtests/discover.test20
-rwxr-xr-xtests/distcommon.test20
-rwxr-xr-xtests/distcommon2.test20
-rwxr-xr-xtests/distcommon3.test20
-rwxr-xr-xtests/distdir.test20
-rwxr-xr-xtests/distname.test20
-rwxr-xr-xtests/dollar.test20
-rwxr-xr-xtests/double.test20
-rwxr-xr-xtests/dup2.test20
-rwxr-xr-xtests/dup3.test20
-rwxr-xr-xtests/else.test20
-rwxr-xr-xtests/empty.test21
-rwxr-xr-xtests/empty2.test20
-rwxr-xr-xtests/empty3.test20
-rwxr-xr-xtests/empty4.test20
-rwxr-xr-xtests/error.test20
-rwxr-xr-xtests/exdir.test20
-rwxr-xr-xtests/exdir2.test20
-rwxr-xr-xtests/exeext.test20
-rwxr-xr-xtests/exeext2.test20
-rwxr-xr-xtests/exsource.test21
-rwxr-xr-xtests/ext.test20
-rwxr-xr-xtests/ext2.test21
-rwxr-xr-xtests/extra.test20
-rwxr-xr-xtests/extra2.test20
-rwxr-xr-xtests/extra3.test20
-rwxr-xr-xtests/extra4.test20
-rwxr-xr-xtests/extra5.test20
-rwxr-xr-xtests/extra6.test20
-rwxr-xr-xtests/extra7.test20
-rwxr-xr-xtests/flibs.test20
-rwxr-xr-xtests/fnoc.test20
-rwxr-xr-xtests/fo.test20
-rwxr-xr-xtests/fonly.test20
-rwxr-xr-xtests/fortdep.test20
-rwxr-xr-xtests/fpinst2.test20
-rwxr-xr-xtests/fpinstall.test20
-rwxr-xr-xtests/gcj.test20
-rwxr-xr-xtests/gcj2.test20
-rwxr-xr-xtests/gcj3.test20
-rwxr-xr-xtests/gcj4.test20
-rwxr-xr-xtests/gcj5.test20
-rwxr-xr-xtests/getopt.test20
-rwxr-xr-xtests/gettext.test20
-rwxr-xr-xtests/gettext2.test20
-rwxr-xr-xtests/gnits.test20
-rwxr-xr-xtests/gnits2.test20
-rwxr-xr-xtests/gnits3.test20
-rwxr-xr-xtests/gnuwarn.test20
-rwxr-xr-xtests/header.test20
-rwxr-xr-xtests/implicit.test20
-rwxr-xr-xtests/include.test20
-rwxr-xr-xtests/include2.test20
-rwxr-xr-xtests/info.test20
-rwxr-xr-xtests/insh.test20
-rwxr-xr-xtests/insh2.test21
-rwxr-xr-xtests/install.test20
-rwxr-xr-xtests/install2.test20
-rwxr-xr-xtests/installdir.test20
-rwxr-xr-xtests/installsh.test20
-rwxr-xr-xtests/instdata.test20
-rwxr-xr-xtests/instdata2.test20
-rwxr-xr-xtests/instexec.test20
-rwxr-xr-xtests/insthook.test20
-rwxr-xr-xtests/instman.test20
-rwxr-xr-xtests/instman2.test20
-rwxr-xr-xtests/interp.test20
-rwxr-xr-xtests/interp2.test20
-rwxr-xr-xtests/java.test20
-rwxr-xr-xtests/java2.test20
-rwxr-xr-xtests/javaprim.test20
-rwxr-xr-xtests/javasubst.test20
-rwxr-xr-xtests/ldadd.test20
-rwxr-xr-xtests/ldflags.test20
-rwxr-xr-xtests/lex.test22
-rwxr-xr-xtests/lex2.test20
-rwxr-xr-xtests/lex3.test20
-rwxr-xr-xtests/lex4.test20
-rwxr-xr-xtests/lex5.test20
-rwxr-xr-xtests/libobj10.test20
-rwxr-xr-xtests/libobj11.test20
-rwxr-xr-xtests/libobj2.test21
-rwxr-xr-xtests/libobj3.test20
-rwxr-xr-xtests/libobj4.test20
-rwxr-xr-xtests/libobj5.test20
-rwxr-xr-xtests/libobj7.test20
-rwxr-xr-xtests/libobj8.test20
-rwxr-xr-xtests/library.test20
-rwxr-xr-xtests/library2.test20
-rwxr-xr-xtests/libtool.test20
-rwxr-xr-xtests/libtool2.test20
-rwxr-xr-xtests/libtool3.test20
-rwxr-xr-xtests/libtool4.test20
-rwxr-xr-xtests/link_c_cxx.test20
-rwxr-xr-xtests/link_dist.test20
-rwxr-xr-xtests/link_f_c.test20
-rwxr-xr-xtests/link_f_c_cxx.test20
-rwxr-xr-xtests/link_f_cxx.test20
-rwxr-xr-xtests/link_f_only.test20
-rwxr-xr-xtests/lisp.test20
-rwxr-xr-xtests/lisp2.test20
-rwxr-xr-xtests/listval.test20
-rwxr-xr-xtests/ltdeps.test20
-rwxr-xr-xtests/ltlibobjs.test20
-rwxr-xr-xtests/maintclean.test20
-rwxr-xr-xtests/make.test20
-rwxr-xr-xtests/makevars.test20
-rwxr-xr-xtests/man.test20
-rwxr-xr-xtests/man2.test20
-rwxr-xr-xtests/mclean.test20
-rwxr-xr-xtests/mdate.test20
-rwxr-xr-xtests/mdate2.test20
-rwxr-xr-xtests/mdate3.test20
-rwxr-xr-xtests/mdate4.test20
-rwxr-xr-xtests/mkinst2.test20
-rwxr-xr-xtests/mkinstall.test20
-rwxr-xr-xtests/nobase.test21
-rwxr-xr-xtests/nodefine.test21
-rwxr-xr-xtests/nodefine2.test21
-rwxr-xr-xtests/nodep.test20
-rwxr-xr-xtests/nodepcomp.test20
-rwxr-xr-xtests/nodist.test20
-rwxr-xr-xtests/nodist2.test21
-rwxr-xr-xtests/noinst.test20
-rwxr-xr-xtests/noinstdir.test20
-rwxr-xr-xtests/nolink.test20
-rwxr-xr-xtests/nostdinc.test20
-rwxr-xr-xtests/number.test20
-rwxr-xr-xtests/obsolete.test20
-rwxr-xr-xtests/order.test20
-rwxr-xr-xtests/outdir.test20
-rwxr-xr-xtests/output.test20
-rwxr-xr-xtests/output2.test20
-rwxr-xr-xtests/output3.test20
-rwxr-xr-xtests/output4.test20
-rwxr-xr-xtests/output5.test20
-rwxr-xr-xtests/package.test20
-rwxr-xr-xtests/parse.test20
-rwxr-xr-xtests/percent.test20
-rwxr-xr-xtests/pluseq.test20
-rwxr-xr-xtests/pluseq2.test20
-rwxr-xr-xtests/pluseq3.test20
-rwxr-xr-xtests/pluseq4.test20
-rwxr-xr-xtests/pluseq5.test20
-rwxr-xr-xtests/pluseq6.test20
-rwxr-xr-xtests/pluseq7.test20
-rwxr-xr-xtests/pluseq8.test20
-rwxr-xr-xtests/pluseq9.test20
-rwxr-xr-xtests/postproc.test20
-rwxr-xr-xtests/ppf77.test20
-rwxr-xr-xtests/pr2.test20
-rwxr-xr-xtests/pr204.test21
-rwxr-xr-xtests/pr211.test20
-rwxr-xr-xtests/pr220.test20
-rwxr-xr-xtests/pr224.test20
-rwxr-xr-xtests/pr229.test20
-rwxr-xr-xtests/pr243.test20
-rwxr-xr-xtests/pr266.test20
-rwxr-xr-xtests/pr279-2.test20
-rwxr-xr-xtests/pr279.test20
-rwxr-xr-xtests/pr287.test20
-rwxr-xr-xtests/pr300-lib.test20
-rwxr-xr-xtests/pr300-ltlib.test20
-rwxr-xr-xtests/pr300-prog.test20
-rwxr-xr-xtests/pr307.test20
-rwxr-xr-xtests/pr72.test20
-rwxr-xr-xtests/pr87.test20
-rwxr-xr-xtests/pr9.test20
-rwxr-xr-xtests/prefix.test20
-rwxr-xr-xtests/primary.test20
-rwxr-xr-xtests/primary2.test20
-rwxr-xr-xtests/proginst.test20
-rwxr-xr-xtests/python.test20
-rwxr-xr-xtests/python2.test20
-rwxr-xr-xtests/ranlib.test20
-rwxr-xr-xtests/recurs.test20
-rwxr-xr-xtests/recurs2.test20
-rwxr-xr-xtests/remake.test20
-rwxr-xr-xtests/remake2.test20
-rwxr-xr-xtests/remake3.test20
-rwxr-xr-xtests/req.test20
-rwxr-xr-xtests/required.test20
-rwxr-xr-xtests/required2.test20
-rwxr-xr-xtests/rulepat.test20
-rwxr-xr-xtests/scripts.test20
-rwxr-xr-xtests/seenc.test20
-rwxr-xr-xtests/sinclude.test20
-rwxr-xr-xtests/sourcesub.test20
-rwxr-xr-xtests/sourcesub2.test20
-rwxr-xr-xtests/space.test20
-rwxr-xr-xtests/specflags.test20
-rwxr-xr-xtests/specflags2.test20
-rwxr-xr-xtests/specflags3.test20
-rwxr-xr-xtests/specflags6.test20
-rwxr-xr-xtests/specflags7.test20
-rwxr-xr-xtests/specflags8.test20
-rwxr-xr-xtests/specflags9.test20
-rwxr-xr-xtests/spell.test20
-rwxr-xr-xtests/spell2.test20
-rwxr-xr-xtests/spell3.test20
-rwxr-xr-xtests/spelling.test20
-rwxr-xr-xtests/stamph.test20
-rwxr-xr-xtests/stamph2.test20
-rwxr-xr-xtests/stdlib.test20
-rwxr-xr-xtests/strip.test20
-rwxr-xr-xtests/subdir.test20
-rwxr-xr-xtests/subdir2.test20
-rwxr-xr-xtests/subdir3.test20
-rwxr-xr-xtests/subdir4.test20
-rwxr-xr-xtests/subdir5.test20
-rwxr-xr-xtests/subdir6.test20
-rwxr-xr-xtests/subdir7.test20
-rwxr-xr-xtests/subdirbuiltsources.test20
-rwxr-xr-xtests/subdircond.test20
-rwxr-xr-xtests/subdircond2.test20
-rwxr-xr-xtests/subdircond3.test20
-rwxr-xr-xtests/subobj.test20
-rwxr-xr-xtests/subobj2.test20
-rwxr-xr-xtests/subobj3.test20
-rwxr-xr-xtests/subobj4.test20
-rwxr-xr-xtests/subobj5.test20
-rwxr-xr-xtests/subobj6.test20
-rwxr-xr-xtests/subobj7.test20
-rwxr-xr-xtests/subobj8.test20
-rwxr-xr-xtests/subobj9.test20
-rwxr-xr-xtests/subobjname.test20
-rwxr-xr-xtests/subpkg.test20
-rwxr-xr-xtests/subst.test20
-rwxr-xr-xtests/substref.test20
-rwxr-xr-xtests/substtarg.test20
-rwxr-xr-xtests/suffix.test20
-rwxr-xr-xtests/suffix10.test20
-rwxr-xr-xtests/suffix2.test20
-rwxr-xr-xtests/suffix3.test20
-rwxr-xr-xtests/suffix4.test20
-rwxr-xr-xtests/suffix5.test20
-rwxr-xr-xtests/suffix6.test20
-rwxr-xr-xtests/suffix7.test20
-rwxr-xr-xtests/suffix8.test20
-rwxr-xr-xtests/suffix9.test20
-rwxr-xr-xtests/symlink.test20
-rwxr-xr-xtests/symlink2.test20
-rwxr-xr-xtests/symlink3.test20
-rwxr-xr-xtests/syntax.test20
-rwxr-xr-xtests/tags.test20
-rwxr-xr-xtests/tagsub.test20
-rwxr-xr-xtests/target-cflags.test20
-rwxr-xr-xtests/target.test20
-rwxr-xr-xtests/texinfo.test21
-rwxr-xr-xtests/texinfo10.test20
-rwxr-xr-xtests/texinfo13.test20
-rwxr-xr-xtests/texinfo16.test20
-rwxr-xr-xtests/texinfo2.test20
-rwxr-xr-xtests/texinfo3.test20
-rwxr-xr-xtests/texinfo4.test20
-rwxr-xr-xtests/texinfo5.test20
-rwxr-xr-xtests/texinfo6.test20
-rwxr-xr-xtests/texinfo7.test20
-rwxr-xr-xtests/texinfo8.test20
-rwxr-xr-xtests/texinfo9.test20
-rwxr-xr-xtests/transform.test20
-rwxr-xr-xtests/unused.test20
-rwxr-xr-xtests/vars.test20
-rwxr-xr-xtests/vars2.test20
-rwxr-xr-xtests/vars3.test20
-rwxr-xr-xtests/vartar.test20
-rwxr-xr-xtests/version.test20
-rwxr-xr-xtests/version2.test20
-rwxr-xr-xtests/version3.test20
-rwxr-xr-xtests/version4.test20
-rwxr-xr-xtests/version5.test20
-rwxr-xr-xtests/version6.test20
-rwxr-xr-xtests/vpath.test20
-rwxr-xr-xtests/vtexi.test20
-rwxr-xr-xtests/vtexi2.test20
-rwxr-xr-xtests/warnopts.test20
-rwxr-xr-xtests/werror.test20
-rwxr-xr-xtests/whoami.test20
-rwxr-xr-xtests/xsource.test20
-rwxr-xr-xtests/yacc.test20
-rwxr-xr-xtests/yacc2.test20
-rwxr-xr-xtests/yacc3.test20
-rwxr-xr-xtests/yacc4.test20
-rwxr-xr-xtests/yacc5.test20
-rwxr-xr-xtests/yacc6.test20
-rwxr-xr-xtests/yacc7.test20
-rwxr-xr-xtests/yacc8.test20
-rwxr-xr-xtests/yaccpp.test20
-rwxr-xr-xtests/yaccvpath.test20
-rw-r--r--version.texi2
434 files changed, 8293 insertions, 457 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ba0c727c..237bb495e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,156 @@
+2002-09-08 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * configure.in: Check for EGREP and FGREP. Create tests/defs.
+ * tests/defs: Rename as ...
+ * tests/defs.in: ... this. Add copyright notice. Use configure's
+ values for PERL, EGREP, and FGREP. Be verbose if $srcdir is unset.
+ * tests/Makefile.am (EXTRA_DIST): Remove defs.
+ (BUILT_SOURCES): New.
+ * tests/acinclude.test, tests/aclibobj.test, tests/aclocal.test,
+ tests/aclocali.test, tests/aclocali1.test, tests/aclocalii.test,
+ tests/acoutnoq.test, tests/acoutput.test, tests/acoutput2.test,
+ tests/acoutqnl.test, tests/acouttbs.test, tests/acouttbs2.test,
+ tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
+ tests/all.test, tests/alpha.test, tests/amassign.test,
+ tests/ammissing.test, tests/ansi.test, tests/ansi2.test,
+ tests/ansi3.test, tests/ansi4.test, tests/ansi5.test,
+ tests/ansi6.test, tests/ansi7.test, tests/ansi8.test,
+ tests/ar.test, tests/asm.test, tests/autoheader.test,
+ tests/autoheader2.test, tests/auxdir.test, tests/auxdir2.test,
+ tests/backsl.test, tests/backsl2.test, tests/badline.test,
+ tests/badopt.test, tests/badprog.test, tests/block.test,
+ tests/canon.test, tests/canon2.test, tests/canon3.test,
+ tests/canon4.test, tests/canon5.test, tests/ccnoco.test,
+ tests/check.test, tests/checkall.test, tests/clean.test,
+ tests/colneq.test, tests/colneq2.test, tests/colon.test,
+ tests/colon2.test, tests/colon3.test, tests/colon4.test,
+ tests/colon5.test, tests/colon6.test, tests/colon7.test,
+ tests/comment.test, tests/comment2.test, tests/comment3.test,
+ tests/comment4.test, tests/comment5.test, tests/comment6.test,
+ tests/compile_f_c_cxx.test, tests/cond.test, tests/cond10.test,
+ tests/cond11.test, tests/cond12.test, tests/cond13.test,
+ tests/cond14.test, tests/cond15.test, tests/cond16.test,
+ tests/cond17.test, tests/cond18.test, tests/cond19.test,
+ tests/cond2.test, tests/cond20.test, tests/cond21.test,
+ tests/cond22.test, tests/cond23.test, tests/cond24.test,
+ tests/cond3.test, tests/cond4.test, tests/cond5.test,
+ tests/cond6.test, tests/cond7.test, tests/cond8.test,
+ tests/cond9.test, tests/condd.test, tests/condincl.test,
+ tests/condincl2.test, tests/condlib.test, tests/condman.test,
+ tests/condman2.test, tests/conf2.test, tests/confdeps.test,
+ tests/confdist.test, tests/confh.test, tests/confh4.test,
+ tests/config.test, tests/confincl.test, tests/confsub.test,
+ tests/confvar.test, tests/confvar2.test, tests/copy.test,
+ tests/ctarget1.test, tests/cxx.test, tests/cxx2.test,
+ tests/cxxansi.test, tests/cxxcpp.test, tests/cxxlibobj.test,
+ tests/cxxlink.test, tests/cxxnoc.test, tests/cxxo.test,
+ tests/cygwin32.test, tests/dash.test, tests/defun.test,
+ tests/defun2.test, tests/dejagnu.test, tests/dejagnu2.test,
+ tests/depacl.test, tests/depacl2.test, tests/depcomp.test,
+ tests/depcomp2.test, tests/depdist.test, tests/depend.test,
+ tests/depend2.test, tests/depend3.test, tests/depend4.test,
+ tests/destdir.test, tests/dirforbid.test, tests/dirlist.test,
+ tests/discover.test, tests/distcommon.test,
+ tests/distcommon2.test, tests/distcommon3.test,
+ tests/distdir.test, tests/distname.test, tests/dollar.test,
+ tests/double.test, tests/dup2.test, tests/dup3.test,
+ tests/else.test, tests/empty.test, tests/empty2.test,
+ tests/empty3.test, tests/empty4.test, tests/error.test,
+ tests/exdir.test, tests/exdir2.test, tests/exeext.test,
+ tests/exeext2.test, tests/exsource.test, tests/ext.test,
+ tests/ext2.test, tests/extra.test, tests/extra2.test,
+ tests/extra3.test, tests/extra4.test, tests/extra5.test,
+ tests/extra6.test, tests/extra7.test, tests/flibs.test,
+ tests/fnoc.test, tests/fo.test, tests/fonly.test,
+ tests/fortdep.test, tests/fpinst2.test, tests/fpinstall.test,
+ tests/gcj.test, tests/gcj2.test, tests/gcj3.test, tests/gcj4.test,
+ tests/gcj5.test, tests/getopt.test, tests/gettext.test,
+ tests/gettext2.test, tests/gnits.test, tests/gnits2.test,
+ tests/gnits3.test, tests/gnuwarn.test, tests/header.test,
+ tests/implicit.test, tests/include.test, tests/include2.test,
+ tests/info.test, tests/insh.test, tests/insh2.test,
+ tests/install.test, tests/install2.test, tests/installdir.test,
+ tests/installsh.test, tests/instdata.test, tests/instdata2.test,
+ tests/instexec.test, tests/insthook.test, tests/instman.test,
+ tests/instman2.test, tests/interp.test, tests/interp2.test,
+ tests/java.test, tests/java2.test, tests/javaprim.test,
+ tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
+ tests/lex.test, tests/lex2.test, tests/lex3.test, tests/lex4.test,
+ tests/lex5.test, tests/libobj10.test, tests/libobj11.test,
+ tests/libobj2.test, tests/libobj3.test, tests/libobj4.test,
+ tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
+ tests/library.test, tests/library2.test, tests/libtool.test,
+ tests/libtool2.test, tests/libtool3.test, tests/libtool4.test,
+ tests/link_c_cxx.test, tests/link_dist.test, tests/link_f_c.test,
+ tests/link_f_c_cxx.test, tests/link_f_cxx.test,
+ tests/link_f_only.test, tests/lisp.test, tests/lisp2.test,
+ tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
+ tests/maintclean.test, tests/make.test, tests/makevars.test,
+ tests/man.test, tests/man2.test, tests/mclean.test,
+ tests/mdate.test, tests/mdate2.test, tests/mdate3.test,
+ tests/mdate4.test, tests/mkinst2.test, tests/mkinstall.test,
+ tests/nobase.test, tests/nodefine.test, tests/nodefine2.test,
+ tests/nodep.test, tests/nodepcomp.test, tests/nodist.test,
+ tests/nodist2.test, tests/noinst.test, tests/noinstdir.test,
+ tests/nolink.test, tests/nostdinc.test, tests/number.test,
+ tests/obsolete.test, tests/order.test, tests/outdir.test,
+ tests/output.test, tests/output2.test, tests/output3.test,
+ tests/output4.test, tests/output5.test, tests/package.test,
+ tests/parse.test, tests/percent.test, tests/pluseq.test,
+ tests/pluseq2.test, tests/pluseq3.test, tests/pluseq4.test,
+ tests/pluseq5.test, tests/pluseq6.test, tests/pluseq7.test,
+ tests/pluseq8.test, tests/pluseq9.test, tests/postproc.test,
+ tests/ppf77.test, tests/pr2.test, tests/pr204.test,
+ tests/pr211.test, tests/pr220.test, tests/pr224.test,
+ tests/pr229.test, tests/pr243.test, tests/pr266.test,
+ tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
+ tests/pr300-lib.test, tests/pr300-ltlib.test,
+ tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
+ tests/pr87.test, tests/pr9.test, tests/prefix.test,
+ tests/primary.test, tests/primary2.test, tests/proginst.test,
+ tests/python.test, tests/python2.test, tests/ranlib.test,
+ tests/recurs.test, tests/recurs2.test, tests/remake.test,
+ tests/remake2.test, tests/remake3.test, tests/req.test,
+ tests/required.test, tests/required2.test, tests/rulepat.test,
+ tests/scripts.test, tests/seenc.test, tests/sinclude.test,
+ tests/sourcesub.test, tests/sourcesub2.test, tests/space.test,
+ tests/specflags.test, tests/specflags2.test,
+ tests/specflags3.test, tests/specflags6.test,
+ tests/specflags7.test, tests/specflags8.test,
+ tests/specflags9.test, tests/spell.test, tests/spell2.test,
+ tests/spell3.test, tests/spelling.test, tests/stamph.test,
+ tests/stamph2.test, tests/stdlib.test, tests/strip.test,
+ tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
+ tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
+ tests/subdir7.test, tests/subdirbuiltsources.test,
+ tests/subdircond.test, tests/subdircond2.test,
+ tests/subdircond3.test, tests/subobj.test, tests/subobj2.test,
+ tests/subobj3.test, tests/subobj4.test, tests/subobj5.test,
+ tests/subobj6.test, tests/subobj7.test, tests/subobj8.test,
+ tests/subobj9.test, tests/subobjname.test, tests/subpkg.test,
+ tests/subst.test, tests/substref.test, tests/substtarg.test,
+ tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
+ tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
+ tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
+ tests/suffix9.test, tests/symlink.test, tests/symlink2.test,
+ tests/symlink3.test, tests/syntax.test, tests/tags.test,
+ tests/tagsub.test, tests/target-cflags.test, tests/target.test,
+ tests/texinfo.test, tests/texinfo10.test, tests/texinfo13.test,
+ tests/texinfo16.test, tests/texinfo2.test, tests/texinfo3.test,
+ tests/texinfo4.test, tests/texinfo5.test, tests/texinfo6.test,
+ tests/texinfo7.test, tests/texinfo8.test, tests/texinfo9.test,
+ tests/transform.test, tests/unused.test, tests/vars.test,
+ tests/vars2.test, tests/vars3.test, tests/vartar.test,
+ tests/version.test, tests/version2.test, tests/version3.test,
+ tests/version4.test, tests/version5.test, tests/version6.test,
+ tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
+ tests/warnopts.test, tests/werror.test, tests/whoami.test,
+ tests/xsource.test, tests/yacc.test, tests/yacc2.test,
+ tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
+ tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
+ tests/yaccpp.test, tests/yaccvpath.test: Add copyright notice.
+ Source ./defs instead of $srcdir/defs.
+
2002-09-05 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/am/distdir.am (distcheck): Strip $(srcdir) prefix on
diff --git a/Makefile.in b/Makefile.in
index 50af9f7d6..7fb8ec7c6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
@@ -399,7 +401,7 @@ distcleancheck_listfiles = find . -type f -print
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
- $(mkinstalldirs) $(distdir)/. $(distdir)/m4
+ $(mkinstalldirs) $(distdir)/. $(distdir)/m4 $(distdir)/tests
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
diff --git a/configure b/configure
index 20f63671f..44d0c089a 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.53c for GNU Automake 1.6c.
+# Generated by GNU Autoconf 2.53d for GNU Automake 1.6c.
#
# Report bugs to <bug-automake@gnu.org>.
#
@@ -270,7 +270,7 @@ PACKAGE_STRING='GNU Automake 1.6c'
PACKAGE_BUGREPORT='bug-automake@gnu.org'
ac_unique_file="automake.in"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE APIVERSION pkgvdatadir PERL LN LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE APIVERSION pkgvdatadir PERL LN EGREP FGREP LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -849,7 +849,7 @@ test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
GNU Automake configure 1.6c
-generated by GNU Autoconf 2.53c
+generated by GNU Autoconf 2.53d
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
@@ -864,7 +864,7 @@ This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Automake $as_me 1.6c, which was
-generated by GNU Autoconf 2.53c. Invocation command line was
+generated by GNU Autoconf 2.53d. Invocation command line was
$ $0 $@
@@ -1665,12 +1665,44 @@ test "x$am_cv_prog_ln" = xln && result=yes
echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6
+# Test for things needed by the test suite.
+echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+if test "${ac_cv_prog_egrep+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+ then ac_cv_prog_egrep='grep -E'
+ else ac_cv_prog_egrep='egrep'
+ fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+ EGREP=$ac_cv_prog_egrep
+
+
+echo "$as_me:$LINENO: checking for fgrep" >&5
+echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
+if test "${ac_cv_prog_fgrep+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
+ then ac_cv_prog_fgrep='grep -F'
+ else ac_cv_prog_fgrep='fgrep'
+ fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
+echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
+ FGREP=$ac_cv_prog_fgrep
+
+
+
ac_config_files="$ac_config_files automake"
ac_config_files="$ac_config_files aclocal"
- ac_config_files="$ac_config_files Makefile lib/Automake/Makefile lib/Makefile lib/am/Makefile m4/Makefile m4/amversion.m4:m4/amversion.in tests/Makefile"
+ ac_config_files="$ac_config_files Makefile lib/Automake/Makefile lib/Makefile lib/am/Makefile m4/Makefile m4/amversion.m4:m4/amversion.in tests/Makefile tests/defs"
cat >confcache <<\_ACEOF
@@ -2060,7 +2092,7 @@ _ASBOX
cat >&5 <<_CSEOF
This file was extended by GNU Automake $as_me 1.6c, which was
-generated by GNU Autoconf 2.53c. Invocation command line was
+generated by GNU Autoconf 2.53d. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
@@ -2114,7 +2146,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
GNU Automake config.status 1.6c
-configured by $0, generated by GNU Autoconf 2.53c,
+configured by $0, generated by GNU Autoconf 2.53d,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
@@ -2212,6 +2244,7 @@ do
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
"m4/amversion.m4" ) CONFIG_FILES="$CONFIG_FILES m4/amversion.m4:m4/amversion.in" ;;
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
+ "tests/defs" ) CONFIG_FILES="$CONFIG_FILES tests/defs" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
@@ -2313,6 +2346,8 @@ s,@APIVERSION@,$APIVERSION,;t t
s,@pkgvdatadir@,$pkgvdatadir,;t t
s,@PERL@,$PERL,;t t
s,@LN@,$LN,;t t
+s,@EGREP@,$EGREP,;t t
+s,@FGREP@,$FGREP,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
diff --git a/configure.in b/configure.in
index 8b2a9e737..3c4f356fe 100644
--- a/configure.in
+++ b/configure.in
@@ -79,6 +79,10 @@ result=no
test "x$am_cv_prog_ln" = xln && result=yes
AC_MSG_RESULT([$result])
+# Test for things needed by the test suite.
+AC_PROG_EGREP
+AC_PROG_FGREP
+
AC_CONFIG_FILES([automake], [chmod +x automake])
AC_CONFIG_FILES([aclocal], [chmod +x aclocal])
@@ -90,6 +94,7 @@ AC_CONFIG_FILES([
m4/Makefile
m4/amversion.m4:m4/amversion.in
tests/Makefile
+ tests/defs
])
AC_OUTPUT
diff --git a/lib/Automake/Makefile.in b/lib/Automake/Makefile.in
index 9359364b4..240636ab7 100644
--- a/lib/Automake/Makefile.in
+++ b/lib/Automake/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
diff --git a/lib/Makefile.in b/lib/Makefile.in
index f062f38ea..c965fa359 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
diff --git a/lib/am/Makefile.in b/lib/am/Makefile.in
index 5bcbd2812..9f859234a 100644
--- a/lib/am/Makefile.in
+++ b/lib/am/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
diff --git a/m4/Makefile.in b/m4/Makefile.in
index e4a46567a..526ca3dd1 100644
--- a/m4/Makefile.in
+++ b/m4/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
diff --git a/stamp-vti b/stamp-vti
index 2a10e2039..78896f231 100644
--- a/stamp-vti
+++ b/stamp-vti
@@ -1,4 +1,4 @@
-@set UPDATED 23 August 2002
+@set UPDATED 24 August 2002
@set UPDATED-MONTH August 2002
@set EDITION 1.6c
@set VERSION 1.6c
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b0af7f04d..9f222b3ea 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -421,7 +421,10 @@ yacc8.test \
yaccpp.test \
yaccvpath.test
-EXTRA_DIST = defs ChangeLog-old $(TESTS)
+EXTRA_DIST = ChangeLog-old $(TESTS)
+
+# Every test case implicitely depends on defs.
+BUILT_SOURCES = defs
distclean-local:
-rm -rf testSubDir
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 1c7bc5b58..a388eabb6 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -46,6 +46,8 @@ DEFS = @DEFS@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+FGREP = @FGREP@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
@@ -510,13 +512,17 @@ yaccpp.test \
yaccvpath.test
-EXTRA_DIST = defs ChangeLog-old $(TESTS)
+EXTRA_DIST = ChangeLog-old $(TESTS)
+
+# Every test case implicitely depends on defs.
+BUILT_SOURCES = defs
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/lib/mkinstalldirs
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = defs
DIST_SOURCES =
-DIST_COMMON = Makefile.am Makefile.in
-all: all-am
+DIST_COMMON = Makefile.am Makefile.in configure.in defs.in
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
@@ -524,6 +530,8 @@ $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
$(AUTOMAKE) --gnu tests/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+defs: $(top_builddir)/config.status defs.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
uninstall-info-am:
tags: TAGS
TAGS:
@@ -665,6 +673,7 @@ distclean-generic:
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
clean: clean-am
clean-am: clean-generic mostlyclean-am
diff --git a/tests/acinclude.test b/tests/acinclude.test
index 59133a2f2..5187f5346 100755
--- a/tests/acinclude.test
+++ b/tests/acinclude.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure acinclude is actually included.
# Report from Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo moo > acinclude.m4
diff --git a/tests/aclibobj.test b/tests/aclibobj.test
index e37a2c284..b694e7b50 100755
--- a/tests/aclibobj.test
+++ b/tests/aclibobj.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure AC_LIBOBJ and friends work.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > X << 'END'
AC_INIT
diff --git a/tests/aclocal.test b/tests/aclocal.test
index 3b423b64b..efd300e9d 100755
--- a/tests/aclocal.test
+++ b/tests/aclocal.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that aclocal --output works. Report from
# Alexandre Oliva.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
$ACLOCAL --output=fred || exit 1
test -f fred
diff --git a/tests/aclocali.test b/tests/aclocali.test
index 2ba6fe496..cd5ae38cf 100755
--- a/tests/aclocali.test
+++ b/tests/aclocali.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that ACLOCAL_AMFLAGS actually gets the right dependencies.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AM_QUUX >> configure.in
diff --git a/tests/aclocali1.test b/tests/aclocali1.test
index 3c814641a..c9461acfd 100755
--- a/tests/aclocali1.test
+++ b/tests/aclocali1.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that ACLOCAL_AMFLAGS doesn't cause circular dependencies.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AM_QUUX >> configure.in
diff --git a/tests/aclocalii.test b/tests/aclocalii.test
index 5dcae3da8..b1d4e9825 100755
--- a/tests/aclocalii.test
+++ b/tests/aclocalii.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure include of include detects missing macros
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo GNOME_X_CHECKS >> configure.in
diff --git a/tests/acoutnoq.test b/tests/acoutnoq.test
index d62f9190c..7f1a1a53f 100755
--- a/tests/acoutnoq.test
+++ b/tests/acoutnoq.test
@@ -1,4 +1,22 @@
#!/bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Jerome Santini.
# If I put this line in my configure.in:
@@ -6,7 +24,7 @@
# automake is not happy:
# [ ... ]
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/acoutput.test b/tests/acoutput.test
index 4cef8ddde..e9da7df93 100755
--- a/tests/acoutput.test
+++ b/tests/acoutput.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug when AC_OUTPUT has 2 args on the same line, eg:
# AC_OUTPUT([Makefile automake tests/Makefile],[chmod +x automake])
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/acoutput2.test b/tests/acoutput2.test
index c2ea9c377..854df9c5e 100755
--- a/tests/acoutput2.test
+++ b/tests/acoutput2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Eric Magnien.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/acoutqnl.test b/tests/acoutqnl.test
index f641408ff..565b22874 100755
--- a/tests/acoutqnl.test
+++ b/tests/acoutqnl.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/acouttbs.test b/tests/acouttbs.test
index 4b13ba40e..fe1224f83 100755
--- a/tests/acouttbs.test
+++ b/tests/acouttbs.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by François Pinard.
# If \ is in AC_OUTPUT, automake barfs.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/acouttbs2.test b/tests/acouttbs2.test
index e1297812c..7a41237cc 100755
--- a/tests/acouttbs2.test
+++ b/tests/acouttbs2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by David A. Swierczek.
# Another bug with \ in AC_OUTPUT (this time with whitespace).
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
PACKAGE=nonesuch
diff --git a/tests/acsilent.test b/tests/acsilent.test
index 7327dd638..d26a5057e 100755
--- a/tests/acsilent.test
+++ b/tests/acsilent.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure there are no spurious acinclude warnings.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >configure.in <<EOF
AC_INIT
diff --git a/tests/acsubst.test b/tests/acsubst.test
index 4937679bb..60105d663 100755
--- a/tests/acsubst.test
+++ b/tests/acsubst.test
@@ -1,5 +1,24 @@
#! /bin/sh
-. $srcdir/defs || exit 1
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+. ./defs || exit 1
set -e
diff --git a/tests/acsubst2.test b/tests/acsubst2.test
index e80cf537c..7cccc90c4 100755
--- a/tests/acsubst2.test
+++ b/tests/acsubst2.test
@@ -1,5 +1,24 @@
#! /bin/sh
-. $srcdir/defs || exit 1
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+. ./defs || exit 1
set -e
diff --git a/tests/all.test b/tests/all.test
index 98c233d33..d5dde941e 100755
--- a/tests/all.test
+++ b/tests/all.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure all-local and other -local targets work correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
for target in all install-exec install-data uninstall; do
echo "Doing $target"
diff --git a/tests/alpha.test b/tests/alpha.test
index 829217d3e..06fda0cc6 100755
--- a/tests/alpha.test
+++ b/tests/alpha.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure README-alpha is distributed when appropriate. Report from
# Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/amassign.test b/tests/amassign.test
index 56efd69ca..3132635fe 100755
--- a/tests/amassign.test
+++ b/tests/amassign.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to see if AM_ name can be assigned to in configure.in.
# Report from Steve Robbins.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_CFLAGS=foo
diff --git a/tests/ammissing.test b/tests/ammissing.test
index 054204ad1..461df10b2 100755
--- a/tests/ammissing.test
+++ b/tests/ammissing.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to see if aclocal correctly reports missing AM_ macro.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AM_ZARDOZ >> configure.in
diff --git a/tests/ansi.test b/tests/ansi.test
index 81b40f90b..780a36893 100755
--- a/tests/ansi.test
+++ b/tests/ansi.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where ansi2knr.c is not included in distribution.
# From François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = ansi2knr
diff --git a/tests/ansi2.test b/tests/ansi2.test
index 04368131f..3abe188b1 100755
--- a/tests/ansi2.test
+++ b/tests/ansi2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure ansi2knr built at the right time.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = ansi2knr
diff --git a/tests/ansi3.test b/tests/ansi3.test
index c716e7725..e10a7986a 100755
--- a/tests/ansi3.test
+++ b/tests/ansi3.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Actual test of ansi2knr functionality. Relies on existence
# of working gcc.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
diff --git a/tests/ansi4.test b/tests/ansi4.test
index 7c4afea0a..5d8686075 100755
--- a/tests/ansi4.test
+++ b/tests/ansi4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Quoting regression. Test from Thomas Gagne.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/ansi5.test b/tests/ansi5.test
index fdc71260b..4e50458b5 100755
--- a/tests/ansi5.test
+++ b/tests/ansi5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for ansi2knr in another directory.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(one/joe.c)
diff --git a/tests/ansi6.test b/tests/ansi6.test
index 617751773..a6b469f7c 100755
--- a/tests/ansi6.test
+++ b/tests/ansi6.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check ansi2knr on a source file in subdirectory.
# From Kevin Ryde.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(ansi6, 1.0)
diff --git a/tests/ansi7.test b/tests/ansi7.test
index 5ca9bc402..3db62cb16 100755
--- a/tests/ansi7.test
+++ b/tests/ansi7.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check ansi2knr on a source file in subdirectory.
# From Kevin Ryde.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(ansi6, 1.0)
diff --git a/tests/ansi8.test b/tests/ansi8.test
index d325a29d9..c4ce8e273 100755
--- a/tests/ansi8.test
+++ b/tests/ansi8.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that AM_C_PROTOTYPES is required by ansi2knr
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/ar.test b/tests/ar.test
index 60c1f474f..84f29398f 100755
--- a/tests/ar.test
+++ b/tests/ar.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for setting AR in configure.in.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/asm.test b/tests/asm.test
index 7f003b328..28adbc688 100755
--- a/tests/asm.test
+++ b/tests/asm.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of basic assembly functionality
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/autoheader.test b/tests/autoheader.test
index f85243f46..7ce915798 100755
--- a/tests/autoheader.test
+++ b/tests/autoheader.test
@@ -1,8 +1,26 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that autoheaders works, despite our AC_CONFIG_HEADERS hack.
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/autoheader2.test b/tests/autoheader2.test
index 78eadea26..15a00e2ea 100755
--- a/tests/autoheader2.test
+++ b/tests/autoheader2.test
@@ -1,8 +1,26 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that autoheaders works, despite our AC_CONFIG_HEADERS hack.
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/auxdir.test b/tests/auxdir.test
index 18d6e47a4..7b4061698 100755
--- a/tests/auxdir.test
+++ b/tests/auxdir.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure AC_CONFIG_AUX_DIR works correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
# The "./." is here so we don't have to mess with subdirs.
cat >> configure.in << 'END'
diff --git a/tests/auxdir2.test b/tests/auxdir2.test
index 891dc61af..bad076a05 100755
--- a/tests/auxdir2.test
+++ b/tests/auxdir2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# It should be possible to use a computed auxdir. This might seem
# bizarre, but it is actually used in multilib builds.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
# The "./." is here so we don't have to mess with subdirs.
cat >> configure.in << 'END'
diff --git a/tests/backsl.test b/tests/backsl.test
index 0bf43a66f..f6ab0121f 100755
--- a/tests/backsl.test
+++ b/tests/backsl.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for "\" problems. Bug report from Joerg-Martin Schwarz.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/backsl2.test b/tests/backsl2.test
index ae3eaaeaa..1020d169c 100755
--- a/tests/backsl2.test
+++ b/tests/backsl2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# We must skip the backslash, not complain about `./\' not existing.
# Reported by Rick Scott <rwscott@omnisig.com>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
SUBDIRS = \
diff --git a/tests/badline.test b/tests/badline.test
index 3ad0358ec..5fb113ede 100755
--- a/tests/badline.test
+++ b/tests/badline.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that line number and file name in error message
# referring to variable is always correct.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(TEXINFOS)
diff --git a/tests/badopt.test b/tests/badopt.test
index 8a5b88643..748d3d6f8 100755
--- a/tests/badopt.test
+++ b/tests/badopt.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure bad options cause error.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = zardoz
diff --git a/tests/badprog.test b/tests/badprog.test
index 47711e762..d210697ac 100755
--- a/tests/badprog.test
+++ b/tests/badprog.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that programs with bad names are properly
# transformed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/block.test b/tests/block.test
index a9d230033..de46cd718 100755
--- a/tests/block.test
+++ b/tests/block.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure block comments are not double-spaced.
# Report from François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
#START
diff --git a/tests/canon.test b/tests/canon.test
index 6745c7da7..79971446f 100755
--- a/tests/canon.test
+++ b/tests/canon.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that name canonicalization error works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/canon2.test b/tests/canon2.test
index ea60dda17..d556aa880 100755
--- a/tests/canon2.test
+++ b/tests/canon2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure name canonicalization happens for texinfo.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = zar-doz.texi
diff --git a/tests/canon3.test b/tests/canon3.test
index f6e70fdcf..a2e20a8bd 100755
--- a/tests/canon3.test
+++ b/tests/canon3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Yet another canonicalization test.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/canon4.test b/tests/canon4.test
index 330ead006..4c1abae83 100755
--- a/tests/canon4.test
+++ b/tests/canon4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure name canonicalization happens for libraries.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/canon5.test b/tests/canon5.test
index 9102bfd9f..66e6519f3 100755
--- a/tests/canon5.test
+++ b/tests/canon5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that we allow variable names starting in
# non-letters.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/ccnoco.test b/tests/ccnoco.test
index 90b72515d..750f8f274 100755
--- a/tests/ccnoco.test
+++ b/tests/ccnoco.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure we can compile when the compiler doesn't
# understand `-c -o'.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.1 << 'END'
AC_INIT(a.c)
diff --git a/tests/check.test b/tests/check.test
index 4f9945a3d..783d2f529 100755
--- a/tests/check.test
+++ b/tests/check.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test Automake style tests.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
TESTS = frob.test
diff --git a/tests/checkall.test b/tests/checkall.test
index 625daa8be..cc3eed1fe 100755
--- a/tests/checkall.test
+++ b/tests/checkall.test
@@ -1,8 +1,26 @@
#!/bin/sh
+# Copyright (C) 1996, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where check target doesn't depend on all.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_SCRIPTS = derived
diff --git a/tests/clean.test b/tests/clean.test
index b0942cc20..38d31d03b 100755
--- a/tests/clean.test
+++ b/tests/clean.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure a clean target depends on previous one.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
diff --git a/tests/colneq.test b/tests/colneq.test
index 353154bc4..db1d151fe 100755
--- a/tests/colneq.test
+++ b/tests/colneq.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that := definitions work.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = -Wno-portability
diff --git a/tests/colneq2.test b/tests/colneq2.test
index 458328f72..6e06c6bfa 100755
--- a/tests/colneq2.test
+++ b/tests/colneq2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that := in var substitutions works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
t = a b c
diff --git a/tests/colon.test b/tests/colon.test
index adcbc20cc..9c95f6100 100755
--- a/tests/colon.test
+++ b/tests/colon.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Nyul Laszlo. When using the ":" syntax in
# AC_OUTPUT, Automake fails to find the correct file.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon2.test b/tests/colon2.test
index 6ce57ca10..f71e6d545 100755
--- a/tests/colon2.test
+++ b/tests/colon2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure ":" works with files automake generates.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon3.test b/tests/colon3.test
index 630e99241..2ba455b44 100755
--- a/tests/colon3.test
+++ b/tests/colon3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure ":" works with files automake generates.
# This test is for multiple ":"s.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon4.test b/tests/colon4.test
index 0bef95108..3830f023b 100755
--- a/tests/colon4.test
+++ b/tests/colon4.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure ":" works with files automake generates.
# This test is for multiple ":"s.
# Test from Maciej W. Rozycki.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon5.test b/tests/colon5.test
index 083a2bb8c..a52067770 100755
--- a/tests/colon5.test
+++ b/tests/colon5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another multi-":" test, this time from Doug Evans.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon6.test b/tests/colon6.test
index 6bf91d951..e30249755 100755
--- a/tests/colon6.test
+++ b/tests/colon6.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Yet another multi-":" test, this time from Ken Pizzini.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/colon7.test b/tests/colon7.test
index ec4ed24f8..6f51d5e98 100755
--- a/tests/colon7.test
+++ b/tests/colon7.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another test for a failing ":" in AC_OUTPUT. Report from Maciej
# Stachowiak.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/comment.test b/tests/comment.test
index 863c0cdfc..918750b72 100755
--- a/tests/comment.test
+++ b/tests/comment.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that `#' as start of word in AUTOMAKE_OPTIONS means
# comment.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = #no such option
diff --git a/tests/comment2.test b/tests/comment2.test
index c2a1d2c1b..77766ed06 100755
--- a/tests/comment2.test
+++ b/tests/comment2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure comment recognition works in PROGRAMS. Report from Mark
# Galassi.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/comment3.test b/tests/comment3.test
index 017c0a7c4..541697f6b 100755
--- a/tests/comment3.test
+++ b/tests/comment3.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that `#' after a tab is a failure.
# The Tru64 Unix V5.1 system make will pass these to the
# shell, which in turn can't find `#' as a command.
# Sigh. Some vendors must be destroyed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
install-data-local:
diff --git a/tests/comment4.test b/tests/comment4.test
index 7f571ef8d..4a5888005 100755
--- a/tests/comment4.test
+++ b/tests/comment4.test
@@ -1,7 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Make sure commented variables are output near their comments.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in <<'EOF'
AC_OUTPUT
diff --git a/tests/comment5.test b/tests/comment5.test
index 9b4c62399..1fcfd070e 100755
--- a/tests/comment5.test
+++ b/tests/comment5.test
@@ -1,8 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Test for PR/280.
# (Automake should complain about trailing backslashes in comments.)
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/comment6.test b/tests/comment6.test
index 4438d6eb9..d5b4ffb88 100755
--- a/tests/comment6.test
+++ b/tests/comment6.test
@@ -1,7 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Test for PR/322.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/compile_f_c_cxx.test b/tests/compile_f_c_cxx.test
index 8aa089531..4fc7461b6 100755
--- a/tests/compile_f_c_cxx.test
+++ b/tests/compile_f_c_cxx.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure rules to invoke all compilers are selected with
# mixed source objects.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cond.test b/tests/cond.test
index fb8b0d839..734855060 100755
--- a/tests/cond.test
+++ b/tests/cond.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check basic use of conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/cond10.test b/tests/cond10.test
index 84b4950d3..d661926e7 100755
--- a/tests/cond10.test
+++ b/tests/cond10.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals. From Raja R Harinath.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond11.test b/tests/cond11.test
index 98c6e5c57..139ba86bb 100755
--- a/tests/cond11.test
+++ b/tests/cond11.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals. From Richard Boulton.
# This checks that, if LDADD is set from a conditional variable
# and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond12.test b/tests/cond12.test
index df7996da4..50a39b553 100755
--- a/tests/cond12.test
+++ b/tests/cond12.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test behaviour of variable_conditions_reduce()
# This checks the result of variable_conditions_reduce() for a wide variety
# of cases.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
# FIXME: probably ought to let use override this like we do in `defs'.
amfile=../../automake
diff --git a/tests/cond13.test b/tests/cond13.test
index 81a9fe6a0..123fa51aa 100755
--- a/tests/cond13.test
+++ b/tests/cond13.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals.
# Report from Lars J. Aas.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cond14.test b/tests/cond14.test
index 253874e06..52b5ad8bb 100755
--- a/tests/cond14.test
+++ b/tests/cond14.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals.
# Report from Robert Boehne
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cond15.test b/tests/cond15.test
index abc764f26..f45f4e20e 100755
--- a/tests/cond15.test
+++ b/tests/cond15.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for conditionally defined overriding of automatic rules.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cond16.test b/tests/cond16.test
index f7248b467..84d2f8052 100755
--- a/tests/cond16.test
+++ b/tests/cond16.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals in SOURCES with variable substitution references.
# Report from Richard Boulton
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
diff --git a/tests/cond17.test b/tests/cond17.test
index 8ab4bb3c4..ffc3a1962 100755
--- a/tests/cond17.test
+++ b/tests/cond17.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for being able to define an object to be generated in different ways
# according to a conditional.
# Report from Richard Boulton
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond18.test b/tests/cond18.test
index 1e55e023a..3a6b7dfe8 100755
--- a/tests/cond18.test
+++ b/tests/cond18.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
required='GNUmake gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond19.test b/tests/cond19.test
index 4bcd22010..61db20753 100755
--- a/tests/cond19.test
+++ b/tests/cond19.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
required='GNUmake gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond2.test b/tests/cond2.test
index 7ac7fc30e..bbc672f79 100755
--- a/tests/cond2.test
+++ b/tests/cond2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check SUBDIRS set based on conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/cond20.test b/tests/cond20.test
index ed5b901f4..c550c48d9 100755
--- a/tests/cond20.test
+++ b/tests/cond20.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for recursion handling in substitution references to
# conditional variables.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond21.test b/tests/cond21.test
index 32d641df0..9b279fa1f 100755
--- a/tests/cond21.test
+++ b/tests/cond21.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check for use of = and += in different conditions.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cond22.test b/tests/cond22.test
index 564a7f31e..f911e8ce7 100755
--- a/tests/cond22.test
+++ b/tests/cond22.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for bug when sources listed in conditional.
# Report from Richard Boulton. PR/326.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/cond23.test b/tests/cond23.test
index 8de8a5a94..0442a8e45 100755
--- a/tests/cond23.test
+++ b/tests/cond23.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that conditional redefinitions of AC_SUBST'ed variables are detected.
# Report from Patrik Weiskircher
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/cond24.test b/tests/cond24.test
index 32d5e9219..4260340e6 100755
--- a/tests/cond24.test
+++ b/tests/cond24.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that conditional redefinitions of AC_SUBST'ed variables are detected.
# Report from Patrik Weiskircher
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/cond3.test b/tests/cond3.test
index 053e77976..fed0d0dcb 100755
--- a/tests/cond3.test
+++ b/tests/cond3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test sources listed in conditional.
# Report from Rob Savoye <rob@cygnus.com>, and Lars J. Aas.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/cond4.test b/tests/cond4.test
index 3c64abffe..ee0dc7554 100755
--- a/tests/cond4.test
+++ b/tests/cond4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another sources-in-conditional test. Report from Tim Goodwin.
required='GNUmake gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/cond5.test b/tests/cond5.test
index 438764e23..9c7edbd06 100755
--- a/tests/cond5.test
+++ b/tests/cond5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Yet another sources-in-conditional test. Report from Tim Goodwin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/cond6.test b/tests/cond6.test
index 7502e0134..3af980683 100755
--- a/tests/cond6.test
+++ b/tests/cond6.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for an odd conditional bug. Report from Matt Leach.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AM_CONDITIONAL(FOO, true)' >> configure.in
diff --git a/tests/cond7.test b/tests/cond7.test
index 1c5071810..6f05584fe 100755
--- a/tests/cond7.test
+++ b/tests/cond7.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for an odd conditional bug. Report from Pavel Roskin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT()
diff --git a/tests/cond8.test b/tests/cond8.test
index 94d29b2f4..433853e67 100755
--- a/tests/cond8.test
+++ b/tests/cond8.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure _PROGRAMS conditionals can be written in a useful
# way.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_PROG_CC' >> configure.in
echo 'AM_CONDITIONAL(X, false)' >> configure.in
diff --git a/tests/cond9.test b/tests/cond9.test
index 80636bca1..777af89e6 100755
--- a/tests/cond9.test
+++ b/tests/cond9.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals. From Raja R Harinath.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/condd.test b/tests/condd.test
index 8918de545..127de542a 100755
--- a/tests/condd.test
+++ b/tests/condd.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/condincl.test b/tests/condincl.test
index e55e10c58..1523924d9 100755
--- a/tests/condincl.test
+++ b/tests/condincl.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure a conditional include statement is handled properly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(TOBE, false)
diff --git a/tests/condincl2.test b/tests/condincl2.test
index 3b068be65..0f8fbe748 100755
--- a/tests/condincl2.test
+++ b/tests/condincl2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another test of conditional include statements.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(TOBE, false)
diff --git a/tests/condlib.test b/tests/condlib.test
index 3ba6f03ab..b55264fa1 100755
--- a/tests/condlib.test
+++ b/tests/condlib.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug with conditional library.
# From Harlan Stenn
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
diff --git a/tests/condman.test b/tests/condman.test
index ebeaa3f87..4eb66360f 100755
--- a/tests/condman.test
+++ b/tests/condman.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure conditionals work with man pages.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(FRED, true)
diff --git a/tests/condman2.test b/tests/condman2.test
index be087cddd..1b506d363 100755
--- a/tests/condman2.test
+++ b/tests/condman2.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure appropriate man install targets generated in all cases.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
man_MANS = foo.1 foo.2
diff --git a/tests/conf2.test b/tests/conf2.test
index fa9bde78e..c9306e238 100755
--- a/tests/conf2.test
+++ b/tests/conf2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure several config headers are allowed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/confdeps.test b/tests/confdeps.test
index 3ad6bb7e3..fd3fd5517 100755
--- a/tests/confdeps.test
+++ b/tests/confdeps.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that config* files are properly regenerated.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo "FOO = foo" > Makefile.am
set -e
diff --git a/tests/confdist.test b/tests/confdist.test
index 76fcce125..6478a255b 100755
--- a/tests/confdist.test
+++ b/tests/confdist.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure configure is included in distribution. Report
# from Eleftherios Gkioulekas.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
diff --git a/tests/confh.test b/tests/confh.test
index d2b482de5..0e62b6cc7 100755
--- a/tests/confh.test
+++ b/tests/confh.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config.h works in a subdir.
# Report from Alexandre Oliva.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/confh4.test b/tests/confh4.test
index 06280af88..dfbeed958 100755
--- a/tests/confh4.test
+++ b/tests/confh4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 34.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/config.test b/tests/config.test
index d60945460..2b33654c1 100755
--- a/tests/config.test
+++ b/tests/config.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config.h rule made even if it is in a subdir. The
# idea is that if config.h is in a subdir, and there is no Makefile in
# that subdir, then we want to build config.h as the top level.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/confincl.test b/tests/confincl.test
index 4f155224c..f66072d75 100755
--- a/tests/confincl.test
+++ b/tests/confincl.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# This tests for a bug reported by Gord Matzigkeit.
# If config.h is not used, @CONFIG_INCLUDE_SPEC@ should not appear
# in Makefile.in.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/confsub.test b/tests/confsub.test
index 423a0d3cc..f9fdb5591 100755
--- a/tests/confsub.test
+++ b/tests/confsub.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config.h can be in subdir.
# Also, make sure config.h is properly rebuilt.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/confvar.test b/tests/confvar.test
index 9fa06aab5..c739e3969 100755
--- a/tests/confvar.test
+++ b/tests/confvar.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure configure_vars stuff works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(QBERT)
diff --git a/tests/confvar2.test b/tests/confvar2.test
index 13566a49b..907788fcb 100755
--- a/tests/confvar2.test
+++ b/tests/confvar2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(OTHER_SCRIPTS)
diff --git a/tests/copy.test b/tests/copy.test
index 6426df950..c24821860 100755
--- a/tests/copy.test
+++ b/tests/copy.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `-c' works. Report from Andris Pavenis.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
rm -f install-sh
diff --git a/tests/ctarget1.test b/tests/ctarget1.test
index 6d32c0ef0..f1ec4f6cc 100755
--- a/tests/ctarget1.test
+++ b/tests/ctarget1.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check basic use of conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/cxx.test b/tests/cxx.test
index 7e547202d..f534365ea 100755
--- a/tests/cxx.test
+++ b/tests/cxx.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that `.c++' extension works.
# From Ralf Corsepius.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/cxx2.test b/tests/cxx2.test
index b1b0241d9..5afaa0c2a 100755
--- a/tests/cxx2.test
+++ b/tests/cxx2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that Automake suggests using AC_PROG_CXX if C++ sources are used.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/cxxansi.test b/tests/cxxansi.test
index b31baa942..fee94d211 100755
--- a/tests/cxxansi.test
+++ b/tests/cxxansi.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure ansi2knr doesn't use `$U' for C++.
# Report from Robert Boehne.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/cxxcpp.test b/tests/cxxcpp.test
index e15fd1131..d8e4cc8ba 100755
--- a/tests/cxxcpp.test
+++ b/tests/cxxcpp.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure automake sees AC_PROG_CXXCPP. From Garth Corral.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXXCPP
diff --git a/tests/cxxlibobj.test b/tests/cxxlibobj.test
index 1bbd0a6da..76daa6010 100755
--- a/tests/cxxlibobj.test
+++ b/tests/cxxlibobj.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LIBOBJS and C++ sources work right.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/cxxlink.test b/tests/cxxlink.test
index 9a0f63d92..ee706203f 100755
--- a/tests/cxxlink.test
+++ b/tests/cxxlink.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure C++ linker is used when appropriate.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/cxxnoc.test b/tests/cxxnoc.test
index 56ca8c760..562cdc755 100755
--- a/tests/cxxnoc.test
+++ b/tests/cxxnoc.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure pure C++ sources don't include C-specific code.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/cxxo.test b/tests/cxxo.test
index 2f83621d1..427373034 100755
--- a/tests/cxxo.test
+++ b/tests/cxxo.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure C++ files are rewritten to ".o" and not just "o".
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/cygwin32.test b/tests/cygwin32.test
index a689b73bf..249bee709 100755
--- a/tests/cygwin32.test
+++ b/tests/cygwin32.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test basic Cygwin32 functionality.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/dash.test b/tests/dash.test
index a95112c7d..17480dbb7 100755
--- a/tests/dash.test
+++ b/tests/dash.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `-' can be used in path.
# Report from Matthew D. Langston.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
include Make-lang
diff --git a/tests/defs b/tests/defs.in
index 42ecd490b..e2c0997f8 100644
--- a/tests/defs
+++ b/tests/defs.in
@@ -1,10 +1,44 @@
# -*- shell-script -*-
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Defines for Automake testing environment.
# Tom Tromey <tromey@cygnus.com>
-# Ensure $srcdir set correctly.
-test -f $srcdir/defs || {
- echo "defs: installation error" 1>&2
+# Ensure we are running from the right directory.
+test -f ./defs || {
+ echo "defs: not found in current directory" 1>&2
+ exit 1
+}
+
+# If srcdir is not set, then we are not running from `make check', be verbose.
+if test -z "$srcdir"; then
+ test -z "$VERBOSE" && VERBOSE=x
+ # compute $srcdir.
+ srcdir=`echo "$0" | sed -e 's,/[^\\/]*$,,'`
+ test $srcdir = $0 && srcdir=.
+fi
+
+# Ensure $srcdir is set correctly.
+test -f $srcdir/defs.in || {
+ echo "$srcdir/defs.in not found, check \$srcdir" 1>&2
exit 1
}
@@ -17,10 +51,11 @@ test -z "$VERBOSE" && {
}
# User can override various tools used.
-test -z "$PERL" && PERL=perl
+#est -z "$SHELL" && SHELL=/bin/sh
+test -z "$PERL" && PERL='@PERL@'
test -z "$MAKE" && MAKE=make
-test -z "$AUTOCONF" && AUTOCONF=autoconf
-test -z "$AUTOHEADER" && AUTOHEADER=autoheader
+test -z "$AUTOCONF" && AUTOCONF="@AUTOCONF@"
+test -z "$AUTOHEADER" && AUTOHEADER="@AUTOHEADER@"
test -z "$AUTOUPDATE" && AUTOUPDATE=autoupdate
if test -n "$required"
@@ -192,20 +227,8 @@ export AUTOMAKE ACLOCAL
# POSIX no longer requires 'egrep' and 'fgrep',
# but some hosts lack 'grep -E' and 'grep -F'.
-if test -z "$EGREP"; then
- if echo a | (grep -E '(a|b)') >/dev/null 2>&1; then
- EGREP='grep -E'
- else
- EGREP='egrep'
- fi
-fi
-if test -z "$FGREP"; then
- if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1; then
- FGREP='grep -F'
- else
- FGREP='fgrep'
- fi
-fi
+EGREP='@EGREP@'
+FGREP='@FGREP@'
# The tests call `make -e' but we do not want $srcdir from the evironment
# to override the definition from the Makefile.
@@ -218,3 +241,4 @@ if test "x$VERBOSE" = xx; then
else
:
fi
+pwd
diff --git a/tests/defun.test b/tests/defun.test
index c11e06edb..543296e94 100755
--- a/tests/defun.test
+++ b/tests/defun.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure aclocal picks up on all macro definitions.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > acinclude.m4 << 'END'
AC_DEFUN([AM_FUNC_TWO],)
diff --git a/tests/defun2.test b/tests/defun2.test
index d51b301db..d3534bef6 100755
--- a/tests/defun2.test
+++ b/tests/defun2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure we don't mistake a macro definition for an invocation.
# From Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
dnl if buggy this will require getloadavg.c
diff --git a/tests/dejagnu.test b/tests/dejagnu.test
index f68dbf081..64dec9393 100755
--- a/tests/dejagnu.test
+++ b/tests/dejagnu.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dejagnu tests and automake-style tests can coexist.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = dejagnu
diff --git a/tests/dejagnu2.test b/tests/dejagnu2.test
index 23d54d833..388fe3eba 100755
--- a/tests/dejagnu2.test
+++ b/tests/dejagnu2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure we don't override the user's site.exp rule.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = dejagnu
diff --git a/tests/depacl.test b/tests/depacl.test
index c8b226818..ae06b8fba 100755
--- a/tests/depacl.test
+++ b/tests/depacl.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependency tracking works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AM_C_PROTOTYPES
diff --git a/tests/depacl2.test b/tests/depacl2.test
index bb7c66074..cd87664a9 100755
--- a/tests/depacl2.test
+++ b/tests/depacl2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependencies work when require'd macro is part of
# autoconf.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AM_C_PROTOTYPES
diff --git a/tests/depcomp.test b/tests/depcomp.test
index 1c28e5fee..4c5484127 100755
--- a/tests/depcomp.test
+++ b/tests/depcomp.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure depcomp is installed and found properly
# when required for multiple directories
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/depcomp2.test b/tests/depcomp2.test
index b4a784d1a..93b8c7405 100755
--- a/tests/depcomp2.test
+++ b/tests/depcomp2.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that depcomp is not used when it's not installed
# From Pavel Roskin.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(subdir/foo.c)
diff --git a/tests/depdist.test b/tests/depdist.test
index b658d8bf1..c79c304e6 100755
--- a/tests/depdist.test
+++ b/tests/depdist.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure depcomp is found for the distribution.
# From Eric Magnien.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f configure.in
diff --git a/tests/depend.test b/tests/depend.test
index 70234bbb6..00d7109ee 100755
--- a/tests/depend.test
+++ b/tests/depend.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# This tests for a bug reported by Henrik Frystyk Nielsen <frystyk@w3.org>
# In some cases the auto-dependency can get confused and try
# to `-include' a directory (if a backslash-newline appears in _SOURCES).
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/depend2.test b/tests/depend2.test
index 0393279f8..8f2ebe632 100755
--- a/tests/depend2.test
+++ b/tests/depend2.test
@@ -1,11 +1,30 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependency tracking works with
# --disable-dependency-tracking.
# Report from Robert Boehne
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
diff --git a/tests/depend3.test b/tests/depend3.test
index 27e31d142..c6ea3dfec 100755
--- a/tests/depend3.test
+++ b/tests/depend3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test _DEPENDENCIES variable. From Lee Iverson.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/depend4.test b/tests/depend4.test
index 55ff3bf8b..b83c447d9 100755
--- a/tests/depend4.test
+++ b/tests/depend4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# check that 'DEP_FILES' is defined when there are many header files
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/destdir.test b/tests/destdir.test
index cccbd8368..ee943731c 100755
--- a/tests/destdir.test
+++ b/tests/destdir.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that `make distcheck' can find some $(DESTDIR) omissions.
# PR/186.
@@ -7,7 +25,7 @@
# It will only work for non-root users.
required='non-root'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/dirforbid.test b/tests/dirforbid.test
index efb3646a1..f112a1c77 100755
--- a/tests/dirforbid.test
+++ b/tests/dirforbid.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# All primaries cannot be used with all directories.
# Automake should flag them as errors.
# For PR/294
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/dirlist.test b/tests/dirlist.test
index c3868e238..49b7535fd 100755
--- a/tests/dirlist.test
+++ b/tests/dirlist.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check dirlist support.
# This test relies on m4/dirlist
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/discover.test b/tests/discover.test
index ccb2114ee..8e1a8429b 100755
--- a/tests/discover.test
+++ b/tests/discover.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LIBOBJS file cannot be mentioned explicitly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
diff --git a/tests/distcommon.test b/tests/distcommon.test
index 4a3db7da8..cc5b73139 100755
--- a/tests/distcommon.test
+++ b/tests/distcommon.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# A test for failure to include files provided in AC_OUTPUT into
# DIST_COMMON
# From Derek R. Price.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << EOF
AC_INIT
diff --git a/tests/distcommon2.test b/tests/distcommon2.test
index 76a9b56ef..0c318cc19 100755
--- a/tests/distcommon2.test
+++ b/tests/distcommon2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that depcomp and compile are added to DIST_COMMON
# From Pavel Roskin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/distcommon3.test b/tests/distcommon3.test
index f093b1071..2c656252a 100755
--- a/tests/distcommon3.test
+++ b/tests/distcommon3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that non-existing common files are distributed
# if they are buildable.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
README:
diff --git a/tests/distdir.test b/tests/distdir.test
index c63200096..6d13ea8b5 100755
--- a/tests/distdir.test
+++ b/tests/distdir.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure subdirs in EXTRA_DIST work. Also tests to make
# sure "./" is ignored.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
EXTRA_DIST = foo/bar ./joe
diff --git a/tests/distname.test b/tests/distname.test
index 934506093..ed23cf195 100755
--- a/tests/distname.test
+++ b/tests/distname.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of names in tar file.
# From Rainer Orth
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(a.c)
diff --git a/tests/dollar.test b/tests/dollar.test
index af084a39e..390def156 100755
--- a/tests/dollar.test
+++ b/tests/dollar.test
@@ -1,4 +1,22 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# We should support files with `$' characters in their names.
# Java people need this.
@@ -7,7 +25,7 @@
# Require GNU make for this test. SunOS Make does not support
# `$$' in a target or a dependency (it outputs the empty string instead).
required=GNUmake
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/double.test b/tests/double.test
index 5e781e84a..054ec48cb 100755
--- a/tests/double.test
+++ b/tests/double.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure listing a program twice is ok.
# Report from Manu Rouat.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/dup2.test b/tests/dup2.test
index c012f160a..0df5f0b8c 100755
--- a/tests/dup2.test
+++ b/tests/dup2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure aclocal only warns about definitions overridden by acinclude.m4.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AM_FUNC_STRTOD
diff --git a/tests/dup3.test b/tests/dup3.test
index 8afd68596..91868f813 100755
--- a/tests/dup3.test
+++ b/tests/dup3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure aclocal searches includes in the right order.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_INIT
diff --git a/tests/else.test b/tests/else.test
index 3aad8de01..04bbdd531 100755
--- a/tests/else.test
+++ b/tests/else.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure line numbers are correct in some error reports.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AM_CONDITIONAL(FOO, true)' >> configure.in
diff --git a/tests/empty.test b/tests/empty.test
index e5cd32115..7254f6237 100755
--- a/tests/empty.test
+++ b/tests/empty.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where if the list of installables is empty, invalid sh
# code is generated.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
data_DATA =
diff --git a/tests/empty2.test b/tests/empty2.test
index fed0631ad..f35646797 100755
--- a/tests/empty2.test
+++ b/tests/empty2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure empty _SOURCES suppresses assumption about default
# name. Report from Pavel Roskin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/empty3.test b/tests/empty3.test
index 55a52be3f..98a084054 100755
--- a/tests/empty3.test
+++ b/tests/empty3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# A test for missing _SOURCES variable.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/empty4.test b/tests/empty4.test
index 054a17640..c2fb23ab6 100755
--- a/tests/empty4.test
+++ b/tests/empty4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure empty _SOURCES works.
# From Paul Berrevoets.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/error.test b/tests/error.test
index 8c91829ff..17fd3e9c3 100755
--- a/tests/error.test
+++ b/tests/error.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure error handling in add_file works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AM_ONE_MACRO
diff --git a/tests/exdir.test b/tests/exdir.test
index 1400b5f89..4f3dcebcd 100755
--- a/tests/exdir.test
+++ b/tests/exdir.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure new extended directory mechanism works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'EOF'
htmldir = $(prefix)/html
diff --git a/tests/exdir2.test b/tests/exdir2.test
index 02713878e..d5d0c7e4b 100755
--- a/tests/exdir2.test
+++ b/tests/exdir2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure undefined directories are invalid.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'EOF'
html_DATA = zot.html
diff --git a/tests/exeext.test b/tests/exeext.test
index a5226451b..df4b74ec4 100755
--- a/tests/exeext.test
+++ b/tests/exeext.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `.' in an exe name doesn't fool us.
# Report from Robert Collins.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/exeext2.test b/tests/exeext2.test
index b39d26017..c7bd71ccf 100755
--- a/tests/exeext2.test
+++ b/tests/exeext2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure no-exeext option works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/exsource.test b/tests/exsource.test
index 8b7749da4..e55fad4ef 100755
--- a/tests/exsource.test
+++ b/tests/exsource.test
@@ -1,10 +1,29 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure EXTRA_..._SOURCES actually works.
# Bug report from Henrik Frystyk Nielsen.
required=GNUmake
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/ext.test b/tests/ext.test
index 9ebaad0d2..fa8302617 100755
--- a/tests/ext.test
+++ b/tests/ext.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure extensions are set correctly for various languages.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/ext2.test b/tests/ext2.test
index 34c9ad4f9..2c6eb1f47 100755
--- a/tests/ext2.test
+++ b/tests/ext2.test
@@ -1,9 +1,28 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Regression test for a bug reported by Ladislav Strojil.
# Using different extensions for the same language should not
# output the build rules several times.
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/extra.test b/tests/extra.test
index 933a4b9ba..a6035fee3 100755
--- a/tests/extra.test
+++ b/tests/extra.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure EXTRA_ targets are generated. This test used to
# make sure the targets were *not* generated. That is wrong; the
# targets should always be generated. However, they should not be
# built by default.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/extra2.test b/tests/extra2.test
index 38da2382e..13bdc4fa0 100755
--- a/tests/extra2.test
+++ b/tests/extra2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure EXTRA_foo_SOURCES not defined unnecessarily.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/extra3.test b/tests/extra3.test
index 44091885f..7fb231d28 100755
--- a/tests/extra3.test
+++ b/tests/extra3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure EXTRA_DATA not required.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(CODICIL)' >> configure.in
diff --git a/tests/extra4.test b/tests/extra4.test
index 934bafc9e..d8ceee3f5 100755
--- a/tests/extra4.test
+++ b/tests/extra4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure EXTRA_DATA can be specified.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(CODICIL)' >> configure.in
diff --git a/tests/extra5.test b/tests/extra5.test
index 0b994b8c2..8c35622f6 100755
--- a/tests/extra5.test
+++ b/tests/extra5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure EXTRA_DIST can contain a directory from $buildir.
# From Dean Povey.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_OUTPUT >> configure.in
diff --git a/tests/extra6.test b/tests/extra6.test
index 0380dec4c..ec1fc57a8 100755
--- a/tests/extra6.test
+++ b/tests/extra6.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure EXTRA_DIST can contain a directory or
# a subdirectory, in $(builddir) or $(srcdir).
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/extra7.test b/tests/extra7.test
index f1dfdeb16..1cc8863a3 100755
--- a/tests/extra7.test
+++ b/tests/extra7.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure that when distdir is invoked in a VPATH
# configuration and has to distribute directory X, it actually merge
# $(srcdir)/X and ./X, with the files from the later overriding the
# files from the former.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/flibs.test b/tests/flibs.test
index f8c69fbdd..b9ec7f58a 100755
--- a/tests/flibs.test
+++ b/tests/flibs.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure `AC_F77_LIBRARY_LDFLAGS' works properly.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/fnoc.test b/tests/fnoc.test
index 445931c6e..556ad57cb 100755
--- a/tests/fnoc.test
+++ b/tests/fnoc.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that pure Fortran 77 sources don't include
# C-specific code.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/fo.test b/tests/fo.test
index f9429a387..5ad363749 100755
--- a/tests/fo.test
+++ b/tests/fo.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Fortran 77 files are rewritten to ".o" and not just "o".
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/fonly.test b/tests/fonly.test
index e418447d6..ebe859fbb 100755
--- a/tests/fonly.test
+++ b/tests/fonly.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure programs with only Fortran 77 source are handled properly.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/fortdep.test b/tests/fortdep.test
index d751c8013..8af5dd3f6 100755
--- a/tests/fortdep.test
+++ b/tests/fortdep.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependency tracking doesn't interfere with Fortran.
# For PR 75.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 1.0, martin@tropos.de)
diff --git a/tests/fpinst2.test b/tests/fpinst2.test
index 600ed37e3..a6166cc95 100755
--- a/tests/fpinst2.test
+++ b/tests/fpinst2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure "reversed" order of AC_PROG_INSTALL and
# AC_PROG_INSTALL is not buggy.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/fpinstall.test b/tests/fpinstall.test
index fba18f48a..47d8accbf 100755
--- a/tests/fpinstall.test
+++ b/tests/fpinstall.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Thomas Morgan. If both AC_PROG_INSTALL and
# AC_PROG_INSTALL appear in configure.in, bad error results.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/gcj.test b/tests/gcj.test
index 6d035e75c..080f98533 100755
--- a/tests/gcj.test
+++ b/tests/gcj.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of compiled java.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
_AM_DEPENDENCIES(GCJ)
diff --git a/tests/gcj2.test b/tests/gcj2.test
index 11c808b2f..1a8eb1a16 100755
--- a/tests/gcj2.test
+++ b/tests/gcj2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure `..' invalid in subdir .o's.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
_AM_DEPENDENCIES(GCJ)
diff --git a/tests/gcj3.test b/tests/gcj3.test
index 17828735f..de17dc6f2 100755
--- a/tests/gcj3.test
+++ b/tests/gcj3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure dependency tracking works for java.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
_AM_DEPENDENCIES(GCJ)
diff --git a/tests/gcj4.test b/tests/gcj4.test
index a25337cb2..650fd540b 100755
--- a/tests/gcj4.test
+++ b/tests/gcj4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure dependency tracking works for Java.
required=gcj
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_PROG_GCJ
diff --git a/tests/gcj5.test b/tests/gcj5.test
index bf1a7ad92..a84db785b 100755
--- a/tests/gcj5.test
+++ b/tests/gcj5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake suggests AM_PROG_GCJ when GCJ is needed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/getopt.test b/tests/getopt.test
index 384fe9c3c..2e96d9389 100755
--- a/tests/getopt.test
+++ b/tests/getopt.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Automake --help, and --version should have priority over any other option
# so that their `exit 0' is coherent.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/gettext.test b/tests/gettext.test
index 099aeba5e..186c62edd 100755
--- a/tests/gettext.test
+++ b/tests/gettext.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check gettext support.
required='gettext'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/gettext2.test b/tests/gettext2.test
index 0aec6bfef..67fcabca2 100755
--- a/tests/gettext2.test
+++ b/tests/gettext2.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check gettext `external' support.
# PR/338, reported by Charles Wilson.
required='gettext'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/gnits.test b/tests/gnits.test
index f7895ed65..c48f4e1b4 100755
--- a/tests/gnits.test
+++ b/tests/gnits.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure --gnits version checking is correct.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
PACKAGE=nonesuch
diff --git a/tests/gnits2.test b/tests/gnits2.test
index b81cd17fa..6ab6dbf35 100755
--- a/tests/gnits2.test
+++ b/tests/gnits2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure std-options checking is correct.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/gnits3.test b/tests/gnits3.test
index 70c3ba942..b492686d6 100755
--- a/tests/gnits3.test
+++ b/tests/gnits3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/gnuwarn.test b/tests/gnuwarn.test
index bacf774ff..9aff88b5a 100755
--- a/tests/gnuwarn.test
+++ b/tests/gnuwarn.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that Automake warns about user variables being overriden.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/header.test b/tests/header.test
index be4e57591..c3de2cb49 100755
--- a/tests/header.test
+++ b/tests/header.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 68.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(MY_HEADERS)
diff --git a/tests/implicit.test b/tests/implicit.test
index d421f1316..ddbce8afa 100755
--- a/tests/implicit.test
+++ b/tests/implicit.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure implicit .o's are listed as appropriate. Report
# from Henrik Frystyk Nielsen.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/include.test b/tests/include.test
index decdc94a2..2b8145d90 100755
--- a/tests/include.test
+++ b/tests/include.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure header vars defined only once when including.
# Report from Marcus G. Daniels.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
include foo
diff --git a/tests/include2.test b/tests/include2.test
index 3d3112786..4f61f75a0 100755
--- a/tests/include2.test
+++ b/tests/include2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure included files in parent directory are distributed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/info.test b/tests/info.test
index 77d3e9836..60e8fe4f6 100755
--- a/tests/info.test
+++ b/tests/info.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure info files are distributed correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = foo.texi
diff --git a/tests/insh.test b/tests/insh.test
index 2ebf918e5..b4c0e7f00 100755
--- a/tests/insh.test
+++ b/tests/insh.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where missing mkinstalldirs give bogus error about
# missing install-sh.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f mkinstalldirs
diff --git a/tests/insh2.test b/tests/insh2.test
index 0d1c9e4e6..6c867914c 100755
--- a/tests/insh2.test
+++ b/tests/insh2.test
@@ -1,8 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where install-sh not included in distribution.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
pkgdata_DATA =
diff --git a/tests/install.test b/tests/install.test
index 591686317..0f6674554 100755
--- a/tests/install.test
+++ b/tests/install.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for `; installing' message when not wanted.
# From François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
: > INSTALL
diff --git a/tests/install2.test b/tests/install2.test
index a99bd15ba..0036c179f 100755
--- a/tests/install2.test
+++ b/tests/install2.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in `make dist'
# From Pavel Roskin.
required=gzip
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/installdir.test b/tests/installdir.test
index 3f549d7d2..68265210b 100755
--- a/tests/installdir.test
+++ b/tests/installdir.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 203.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
installdirs-local:
diff --git a/tests/installsh.test b/tests/installsh.test
index 7f7c7f1e6..b97989d76 100755
--- a/tests/installsh.test
+++ b/tests/installsh.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for this bug:
# automake: Makefile.am: required file "../../install-sh" not found; installing
# This also makes sure that install-sh is created in the correct directory.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
rm -f install-sh
diff --git a/tests/instdata.test b/tests/instdata.test
index 6362b3870..35926231f 100755
--- a/tests/instdata.test
+++ b/tests/instdata.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to see if defining INSTALL_DATA causes problems. From EGCS
# list.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(INSTALL_DATA)' >> configure.in
diff --git a/tests/instdata2.test b/tests/instdata2.test
index 73dbd2ad1..ca0920517 100755
--- a/tests/instdata2.test
+++ b/tests/instdata2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that installing under $exec_prefix is handled by install-exec.
# Testing with headers for instance.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >Makefile.am << 'EOF'
# User directories.
diff --git a/tests/instexec.test b/tests/instexec.test
index 3361d26f4..1cc9b0618 100755
--- a/tests/instexec.test
+++ b/tests/instexec.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for this bug: when a Makefile.am builds nothing, no
# install-exec target is generated.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
diff --git a/tests/insthook.test b/tests/insthook.test
index e52675b1f..e65b8b6f6 100755
--- a/tests/insthook.test
+++ b/tests/insthook.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure install-exec-hook works.
# Report from Tim Goodwin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
install-exec-hook:
diff --git a/tests/instman.test b/tests/instman.test
index f225f5988..9aacfaf77 100755
--- a/tests/instman.test
+++ b/tests/instman.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure mkinstalldirs invocation correct in install-man
# target. Bug reported by Gordon Irlam <gordoni@cygnus.com>.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'EOF'
man_MANS = frob.8
diff --git a/tests/instman2.test b/tests/instman2.test
index 5e8f7b256..21a3a464c 100755
--- a/tests/instman2.test
+++ b/tests/instman2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure mkinstalldirs invocation correct in install-man
# target. Bug reported by Gordon Irlam <gordoni@cygnus.com>.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'EOF'
man8_MANS = frob.8
diff --git a/tests/interp.test b/tests/interp.test
index b3ec58b63..347af34fe 100755
--- a/tests/interp.test
+++ b/tests/interp.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure variable interpolation works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/interp2.test b/tests/interp2.test
index efaae4e3d..0117abf62 100755
--- a/tests/interp2.test
+++ b/tests/interp2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure variable interpolation doesn't break other
# features. Report from Joel N. Weber, II.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/java.test b/tests/java.test
index d2e1944b9..ab9a42bca 100755
--- a/tests/java.test
+++ b/tests/java.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Minimal test of Java functionality.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
javadir = $(datadir)/java
diff --git a/tests/java2.test b/tests/java2.test
index 86d014590..5ccf31b8c 100755
--- a/tests/java2.test
+++ b/tests/java2.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that Java rules doesn't attempt to run javac when there is
# no classes to compile.
# Report from Braden McDaniel.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/javaprim.test b/tests/javaprim.test
index d6b54a930..dc6ede361 100755
--- a/tests/javaprim.test
+++ b/tests/javaprim.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure JAVA variable can be defined.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(JAVA)' >> configure.in
diff --git a/tests/javasubst.test b/tests/javasubst.test
index 8880bbacc..f7ff691ef 100755
--- a/tests/javasubst.test
+++ b/tests/javasubst.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure redefining JAVAC works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(JAVAC)' >> configure.in
diff --git a/tests/ldadd.test b/tests/ldadd.test
index 4784f74bc..cab29ef2c 100755
--- a/tests/ldadd.test
+++ b/tests/ldadd.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure incorrect LDADD usage is diagnosed.
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/ldflags.test b/tests/ldflags.test
index 56c746f2b..5483eab94 100755
--- a/tests/ldflags.test
+++ b/tests/ldflags.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check for LDFLAGS in conditional.
# PR 77.
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/lex.test b/tests/lex.test
index 177982bed..78a1824b0 100755
--- a/tests/lex.test
+++ b/tests/lex.test
@@ -1,6 +1,24 @@
#! /bin/sh
-
-. $srcdir/defs || exit 1
+# Copyright (C) 1996, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/lex2.test b/tests/lex2.test
index a1c172dbc..01e9c061b 100755
--- a/tests/lex2.test
+++ b/tests/lex2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that Automake suggest using AM_PROG_LEX when a lexer is used.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/lex3.test b/tests/lex3.test
index 633044c60..19daf8fb0 100755
--- a/tests/lex3.test
+++ b/tests/lex3.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test associated with PR 19.
# From Matthew D. Langston.
required='gcc gzip'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
# Ignore user CFLAGS.
CFLAGS=
diff --git a/tests/lex4.test b/tests/lex4.test
index 10c187545..3fca1412b 100755
--- a/tests/lex4.test
+++ b/tests/lex4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependencies work with .ll files.
# Test synthesized from PR automake/6.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/lex5.test b/tests/lex5.test
index 8b17e0084..7f59e45e4 100755
--- a/tests/lex5.test
+++ b/tests/lex5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for subdir lexers.
required='gcc make gzip'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/libobj10.test b/tests/libobj10.test
index 724464597..8dd3ca7b4 100755
--- a/tests/libobj10.test
+++ b/tests/libobj10.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Do not complain about the inexistence of a source for LIBOBJS if
# it's in BUILT_SOURCES. Reported by Erez Zadok
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/libobj11.test b/tests/libobj11.test
index 3f33b414e..9cf4e6c89 100755
--- a/tests/libobj11.test
+++ b/tests/libobj11.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# AC_LIBOBJ must allow [] around its argument.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/libobj2.test b/tests/libobj2.test
index 972cc0d95..1f127bc7d 100755
--- a/tests/libobj2.test
+++ b/tests/libobj2.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LIBOBJS works in subdirs.
# Bug from Josh MacDonald.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/libobj3.test b/tests/libobj3.test
index f078e0e9c..22e8c37cf 100755
--- a/tests/libobj3.test
+++ b/tests/libobj3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LIBOBJS actually set in configure.in if seen.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
diff --git a/tests/libobj4.test b/tests/libobj4.test
index c11ddd0ec..b36077711 100755
--- a/tests/libobj4.test
+++ b/tests/libobj4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LIBOBJS error only occurs if LIBOBJS seen. Report
# from Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = foo
diff --git a/tests/libobj5.test b/tests/libobj5.test
index 5bd028be9..fe1da2931 100755
--- a/tests/libobj5.test
+++ b/tests/libobj5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure AC_REPLACE_FUNCS works across lines. Report from
# Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = joe
diff --git a/tests/libobj7.test b/tests/libobj7.test
index 11de68f9d..a1a0acdea 100755
--- a/tests/libobj7.test
+++ b/tests/libobj7.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for multiple replacement functions.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/libobj8.test b/tests/libobj8.test
index 4c31af9bc..cc81bc3f5 100755
--- a/tests/libobj8.test
+++ b/tests/libobj8.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `_.c' dependencies are generated for LIBOBJS
# objects.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/library.test b/tests/library.test
index e631da5b1..ceef72938 100755
--- a/tests/library.test
+++ b/tests/library.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for _DEPENDENCIES with libraries.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_RANLIB
diff --git a/tests/library2.test b/tests/library2.test
index 6915c31a5..03fb0171d 100755
--- a/tests/library2.test
+++ b/tests/library2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake suggest using AC_PROG_RANLIB when *_LIBRARIES is used.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/libtool.test b/tests/libtool.test
index 4a731bf19..4b95c8a4b 100755
--- a/tests/libtool.test
+++ b/tests/libtool.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure libtool is removed.
# Report from Kevin Dalley
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_LIBTOOL_DLOPEN
diff --git a/tests/libtool2.test b/tests/libtool2.test
index 8f4d28435..301dc9266 100755
--- a/tests/libtool2.test
+++ b/tests/libtool2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure libtool clean targets exist.
# Report from Eric Magnien.
required=libtoolize
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/libtool3.test b/tests/libtool3.test
index 8f0a07cf4..66f50e69a 100755
--- a/tests/libtool3.test
+++ b/tests/libtool3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Try to build and package a program linked to a Libtool library.
required='libtoolize gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/libtool4.test b/tests/libtool4.test
index 71534ec44..37354b316 100755
--- a/tests/libtool4.test
+++ b/tests/libtool4.test
@@ -1,8 +1,26 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake suggests AC_PROG_LIBTOOL when *_LTLIBRARIES is used.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/link_c_cxx.test b/tests/link_c_cxx.test
index 28ad8a5b5..b1a256fc7 100755
--- a/tests/link_c_cxx.test
+++ b/tests/link_c_cxx.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/link_dist.test b/tests/link_dist.test
index f085c9a52..9851de06e 100755
--- a/tests/link_dist.test
+++ b/tests/link_dist.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the linker for a dist_*_SOURCES can override that for
# *_SOURCES
# Richard Boulton <richard@tartarus.org>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/link_f_c.test b/tests/link_f_c.test
index 194dc5b45..3a8d45013 100755
--- a/tests/link_f_c.test
+++ b/tests/link_f_c.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the Fortran 77 linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/link_f_c_cxx.test b/tests/link_f_c_cxx.test
index 743c8e392..0abf84b8b 100755
--- a/tests/link_f_c_cxx.test
+++ b/tests/link_f_c_cxx.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/link_f_cxx.test b/tests/link_f_cxx.test
index 11e21c5db..253cf57f3 100755
--- a/tests/link_f_cxx.test
+++ b/tests/link_f_cxx.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the C++ linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/link_f_only.test b/tests/link_f_only.test
index 5dfcdcdc0..59fd4aac9 100755
--- a/tests/link_f_only.test
+++ b/tests/link_f_only.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure the Fortran 77 linker is used when appropriate.
# Matthew D. Langston <langston@SLAC.Stanford.EDU>
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/lisp.test b/tests/lisp.test
index ae8a6c686..511db5272 100755
--- a/tests/lisp.test
+++ b/tests/lisp.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure lisp handling works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_PATH_LISPDIR
diff --git a/tests/lisp2.test b/tests/lisp2.test
index 841de1896..2bcf9aa6f 100755
--- a/tests/lisp2.test
+++ b/tests/lisp2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that Automake suggest using AM_PATH_LISPDIR to define lispdir.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/listval.test b/tests/listval.test
index ce9b074a2..ef402f56b 100755
--- a/tests/listval.test
+++ b/tests/listval.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure variable is expanded properly.
# From Adam J. Richter.
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(LTLIBOBJS)
diff --git a/tests/ltdeps.test b/tests/ltdeps.test
index 1c71bf046..7e052520a 100755
--- a/tests/ltdeps.test
+++ b/tests/ltdeps.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure libtool library dependencies are correct.
# Report from Lars J. Aas.
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
diff --git a/tests/ltlibobjs.test b/tests/ltlibobjs.test
index ba83a94d9..51dba9c43 100755
--- a/tests/ltlibobjs.test
+++ b/tests/ltlibobjs.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure LTLIBOBJS alone works ok.
# Report from Vadim Zeitlin.
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST(LTLIBOBJS)
diff --git a/tests/maintclean.test b/tests/maintclean.test
index f4cd7a302..51493bc9b 100755
--- a/tests/maintclean.test
+++ b/tests/maintclean.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure distclean and maintainer-clean erase the right files.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/make.test b/tests/make.test
index ca7ea4e3a..02d0d0438 100755
--- a/tests/make.test
+++ b/tests/make.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `make' check works.
# From Ralf Corsepius.
required=GNUmake
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/makevars.test b/tests/makevars.test
index f1c0d8bff..a1b1dbbff 100755
--- a/tests/makevars.test
+++ b/tests/makevars.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that automake includes the needed variables,
# but not too many.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
# Find the macros wanted by Automake.
$ACLOCAL || exit 1
diff --git a/tests/man.test b/tests/man.test
index 4e6de6931..47232012c 100755
--- a/tests/man.test
+++ b/tests/man.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `dist' prefix works with man pages.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
dist_man_MANS = foo.1
diff --git a/tests/man2.test b/tests/man2.test
index d3ff8d1ba..0db5a34cf 100755
--- a/tests/man2.test
+++ b/tests/man2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that man pages listed in man_MANS are installed and
# renamed as documented.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/mclean.test b/tests/mclean.test
index 2c59ca258..bce812bb4 100755
--- a/tests/mclean.test
+++ b/tests/mclean.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure MAINTAINERCLEANFILES works.
# Report from Paul D. Smith.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
MAINTAINERCLEANFILES = foo
diff --git a/tests/mdate.test b/tests/mdate.test
index fe5ca02b0..0e98d1987 100755
--- a/tests/mdate.test
+++ b/tests/mdate.test
@@ -1,8 +1,26 @@
#!/bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that mdate-sh is required when Texinfo used and version.texi needed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/mdate2.test b/tests/mdate2.test
index d9e5b0900..5bb324947 100755
--- a/tests/mdate2.test
+++ b/tests/mdate2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure mdate-sh is included in distribution.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/mdate3.test b/tests/mdate3.test
index 693fee0b9..6ea96c3f4 100755
--- a/tests/mdate3.test
+++ b/tests/mdate3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure mdate-sh run correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_CONFIG_AUX_DIR(foo)
diff --git a/tests/mdate4.test b/tests/mdate4.test
index 9cbb1100d..79a5bb94c 100755
--- a/tests/mdate4.test
+++ b/tests/mdate4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that mdate-sh is added to the right directory.
# Report from Kevin Dalley
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/mkinst2.test b/tests/mkinst2.test
index 73b0e76b8..d255ca853 100755
--- a/tests/mkinst2.test
+++ b/tests/mkinst2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure no-installman suppresses man dir creation.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = no-installman
diff --git a/tests/mkinstall.test b/tests/mkinstall.test
index 90a1403c8..bac91b417 100755
--- a/tests/mkinstall.test
+++ b/tests/mkinstall.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where mkinstalldirs variable can be set incorrectly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
pkgdata_DATA =
diff --git a/tests/nobase.test b/tests/nobase.test
index 97655b3e3..d8bf8c04a 100755
--- a/tests/nobase.test
+++ b/tests/nobase.test
@@ -1,8 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Make sure nobase_* works.
required='libtoolize gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/nodefine.test b/tests/nodefine.test
index 75ecbe457..61bbd9c06 100755
--- a/tests/nodefine.test
+++ b/tests/nodefine.test
@@ -1,7 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/nodefine2.test b/tests/nodefine2.test
index e4bfcd45a..78ada8cd6 100755
--- a/tests/nodefine2.test
+++ b/tests/nodefine2.test
@@ -1,7 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Make sure that PACKAGE and VERSION are AC_DEFINEd when requested.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/nodep.test b/tests/nodep.test
index 11c7fd7c3..1f6a8f218 100755
--- a/tests/nodep.test
+++ b/tests/nodep.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure no-dependencies option does the right thing.
# Bug report from Greg A. Woods.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = no-dependencies
diff --git a/tests/nodepcomp.test b/tests/nodepcomp.test
index 88f3882bc..aba6832ea 100755
--- a/tests/nodepcomp.test
+++ b/tests/nodepcomp.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure depcomp isn't always required.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f depcomp
diff --git a/tests/nodist.test b/tests/nodist.test
index 08b808827..be8346b33 100755
--- a/tests/nodist.test
+++ b/tests/nodist.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dist_*_SOURCES and nodist_*_SOURCES work.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/nodist2.test b/tests/nodist2.test
index 5c940eab9..4d6246f29 100755
--- a/tests/nodist2.test
+++ b/tests/nodist2.test
@@ -1,8 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# Test to make sure nodist_noinst_HEADERS work.
# For PR 249.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in <<'EOF'
AC_OUTPUT
diff --git a/tests/noinst.test b/tests/noinst.test
index 1910434e1..bdf6268e9 100755
--- a/tests/noinst.test
+++ b/tests/noinst.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure "make install" will build all in directory with
# nothing to install.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
all-local:
diff --git a/tests/noinstdir.test b/tests/noinstdir.test
index 6c04edfda..49c27a0d1 100755
--- a/tests/noinstdir.test
+++ b/tests/noinstdir.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that noinst_* and check_* are not installed.
# From Pavel Roskin.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
noinst_SCRIPTS = foo.sh
diff --git a/tests/nolink.test b/tests/nolink.test
index 0a276b722..e23f831e2 100755
--- a/tests/nolink.test
+++ b/tests/nolink.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake does not emit a link rule for unknown languages.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = no-exeext
diff --git a/tests/nostdinc.test b/tests/nostdinc.test
index d769ca7b3..dbbfe17fc 100755
--- a/tests/nostdinc.test
+++ b/tests/nostdinc.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure nostdinc option works correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/number.test b/tests/number.test
index 3ab95dbb1..23ccb5b81 100755
--- a/tests/number.test
+++ b/tests/number.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure _OBJECTS only generated once. Bug reported by
# Joerg-Martin Schwarz.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/obsolete.test b/tests/obsolete.test
index 0505f99a3..86d848cc2 100755
--- a/tests/obsolete.test
+++ b/tests/obsolete.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure obsolete macros can be autoupdated.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/order.test b/tests/order.test
index ed965bdb5..2f69c7d91 100755
--- a/tests/order.test
+++ b/tests/order.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure AC_DEFUN is handled correctly. This test isn't named very
# well. Report from Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
jm_TEST
diff --git a/tests/outdir.test b/tests/outdir.test
index aebf0d3ec..fbf911e63 100755
--- a/tests/outdir.test
+++ b/tests/outdir.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure that --output-dir works. Bug report from Joshua
# Cowan.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am <<'END'
pkgdata_DATA =
diff --git a/tests/output.test b/tests/output.test
index 675f16913..d7cfdf760 100755
--- a/tests/output.test
+++ b/tests/output.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure files listed in AC_OUTPUT are found.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/output2.test b/tests/output2.test
index b2c22a1f5..37eb00ef5 100755
--- a/tests/output2.test
+++ b/tests/output2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another AC_OUTPUT test. From report by Ulrich Drepper.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/output3.test b/tests/output3.test
index a913ad604..ce64d7cee 100755
--- a/tests/output3.test
+++ b/tests/output3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Yet another AC_OUTPUT test.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/output4.test b/tests/output4.test
index f17493ffb..7a5a17728 100755
--- a/tests/output4.test
+++ b/tests/output4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# It's hard to believe there are so many AC_OUTPUT-related bugs.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/output5.test b/tests/output5.test
index a17b6c934..5e11f0c4a 100755
--- a/tests/output5.test
+++ b/tests/output5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake complains when there is no Makefile specified.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/package.test b/tests/package.test
index 9eb4e17d8..a375c1a72 100755
--- a/tests/package.test
+++ b/tests/package.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure PACKAGE required.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_OUTPUT(Makefile)
diff --git a/tests/parse.test b/tests/parse.test
index 5b65b72ac..bdaefbf2b 100755
--- a/tests/parse.test
+++ b/tests/parse.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure backslash-newline is treated as whitespace.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/percent.test b/tests/percent.test
index 25b4b8bf8..e476ccbd1 100755
--- a/tests/percent.test
+++ b/tests/percent.test
@@ -1,9 +1,27 @@
#!/bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that -Wportability understands %-style pattern
# rules.
-. $srcdir/defs
+. ./defs
set -e
diff --git a/tests/pluseq.test b/tests/pluseq.test
index 08189429a..9ea1b70e2 100755
--- a/tests/pluseq.test
+++ b/tests/pluseq.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test `+=' functionality.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
data_DATA = zar
diff --git a/tests/pluseq2.test b/tests/pluseq2.test
index 90626f8d7..91ebad69d 100755
--- a/tests/pluseq2.test
+++ b/tests/pluseq2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test `+=' with conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
diff --git a/tests/pluseq3.test b/tests/pluseq3.test
index 71778011b..3c0506266 100755
--- a/tests/pluseq3.test
+++ b/tests/pluseq3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another `+=' test with conditionals.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
diff --git a/tests/pluseq4.test b/tests/pluseq4.test
index ac8226808..161160780 100755
--- a/tests/pluseq4.test
+++ b/tests/pluseq4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Yet another `+=' test.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/pluseq5.test b/tests/pluseq5.test
index ab73a6839..cad608689 100755
--- a/tests/pluseq5.test
+++ b/tests/pluseq5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for another `+=' problem. Report from Brian Jones.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AM_CONDITIONAL(CHECK, true)' >> configure.in
diff --git a/tests/pluseq6.test b/tests/pluseq6.test
index 54b015f50..89cffffe0 100755
--- a/tests/pluseq6.test
+++ b/tests/pluseq6.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that `+=' works with standard header-vars.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo 'AC_SUBST(ZZZ)' >> configure.in
diff --git a/tests/pluseq7.test b/tests/pluseq7.test
index 95d4b68bb..3b426a472 100755
--- a/tests/pluseq7.test
+++ b/tests/pluseq7.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that `+=' fails when required.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/pluseq8.test b/tests/pluseq8.test
index 6cc60d5d0..65feb078e 100755
--- a/tests/pluseq8.test
+++ b/tests/pluseq8.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another `+=' test. From Paul Berrevoets.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
VAR = \
diff --git a/tests/pluseq9.test b/tests/pluseq9.test
index 01ad9b871..91327d969 100755
--- a/tests/pluseq9.test
+++ b/tests/pluseq9.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test the += diagnostics.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >>configure.in <<EOF
AM_CONDITIONAL(COND1, true)
diff --git a/tests/postproc.test b/tests/postproc.test
index aa84026ce..5b3c2c0c9 100755
--- a/tests/postproc.test
+++ b/tests/postproc.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check to make sure we recognize a Makefile.in, even if post-processed
# and renamed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >configure.in <<'END'
AC_INIT([mumble], [0.1])
diff --git a/tests/ppf77.test b/tests/ppf77.test
index 68466a757..eb1dbff2b 100755
--- a/tests/ppf77.test
+++ b/tests/ppf77.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure preprocessed F77 works.
# Report from Jochen Kuepper.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_F77
diff --git a/tests/pr2.test b/tests/pr2.test
index 32c394980..911877599 100755
--- a/tests/pr2.test
+++ b/tests/pr2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported in PR 2.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/pr204.test b/tests/pr204.test
index 5f44025fc..4c553173a 100755
--- a/tests/pr204.test
+++ b/tests/pr204.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
# For PR 204.
# Sources derived from nodist_ sources should not be distributed.
required='bison gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/pr211.test b/tests/pr211.test
index 761eb76a6..ba79ae38c 100755
--- a/tests/pr211.test
+++ b/tests/pr211.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 211.
required=libtoolize
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/pr220.test b/tests/pr220.test
index 2626186f4..5873c1b4d 100755
--- a/tests/pr220.test
+++ b/tests/pr220.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR automake/220.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >main.c <<EOF
int main() { return 0; }
diff --git a/tests/pr224.test b/tests/pr224.test
index 2f965bc0b..9ef6470db 100755
--- a/tests/pr224.test
+++ b/tests/pr224.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for $(top_srcdir) with dependencies.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
mkdir foo
diff --git a/tests/pr229.test b/tests/pr229.test
index fc0bd85aa..df35268b8 100755
--- a/tests/pr229.test
+++ b/tests/pr229.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure AC_CYGWIN requires config.{sub,guess}.
# Reported by James Youngman.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/pr243.test b/tests/pr243.test
index 3ff655021..ba7661631 100755
--- a/tests/pr243.test
+++ b/tests/pr243.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 243.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/pr266.test b/tests/pr266.test
index 221b1a9ac..b5486b735 100755
--- a/tests/pr266.test
+++ b/tests/pr266.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 266.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/pr279-2.test b/tests/pr279-2.test
index cad73da6a..9f4669f3a 100755
--- a/tests/pr279-2.test
+++ b/tests/pr279-2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another test related to PR 279.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/pr279.test b/tests/pr279.test
index 7e4b7fd50..5a7935ddb 100755
--- a/tests/pr279.test
+++ b/tests/pr279.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 279.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/pr287.test b/tests/pr287.test
index 19006305d..704f5c5c5 100755
--- a/tests/pr287.test
+++ b/tests/pr287.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 287: empty SUBDIRS.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/pr300-lib.test b/tests/pr300-lib.test
index 0201b8072..69c32bdbd 100755
--- a/tests/pr300-lib.test
+++ b/tests/pr300-lib.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that installing subdirectory libraries works.
# PR/300
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/pr300-ltlib.test b/tests/pr300-ltlib.test
index 605f1a83b..b517b7079 100755
--- a/tests/pr300-ltlib.test
+++ b/tests/pr300-ltlib.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that installing subdirectory libtool libraries works.
# PR/300
required='libtoolize gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/pr300-prog.test b/tests/pr300-prog.test
index 8dc856b21..29e2eea30 100755
--- a/tests/pr300-prog.test
+++ b/tests/pr300-prog.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that installing subdirectory programs works.
# PR/300
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/pr307.test b/tests/pr307.test
index cab6dd3b6..42f3caa12 100755
--- a/tests/pr307.test
+++ b/tests/pr307.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 307: depcomp with depmode=dashmstdout libtool race condition
# Report from Laurent Morichetti.
# (Also exercises check_LTLIBRARIES.)
required='libtoolize gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/pr72.test b/tests/pr72.test
index 44ecbc396..afc39c52c 100755
--- a/tests/pr72.test
+++ b/tests/pr72.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 72
required=libtool
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/pr87.test b/tests/pr87.test
index 9beffb01f..336826ab6 100755
--- a/tests/pr87.test
+++ b/tests/pr87.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR automake/87.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
subdirs="foo bar"
diff --git a/tests/pr9.test b/tests/pr9.test
index e2c100ef5..c5dcec4e1 100755
--- a/tests/pr9.test
+++ b/tests/pr9.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in PR 9.
required=gzip
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/prefix.test b/tests/prefix.test
index 3761d2c09..0b4f74997 100755
--- a/tests/prefix.test
+++ b/tests/prefix.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure range of prefixes can be extended
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/primary.test b/tests/primary.test
index 4cbe94340..fce700cf2 100755
--- a/tests/primary.test
+++ b/tests/primary.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure errors in am_install_var work.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = @programs@
diff --git a/tests/primary2.test b/tests/primary2.test
index 305d514e3..0a036bf99 100755
--- a/tests/primary2.test
+++ b/tests/primary2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure errors in am_install_var work.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/proginst.test b/tests/proginst.test
index 5de275f32..d567b23dd 100755
--- a/tests/proginst.test
+++ b/tests/proginst.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug where when multiple scripts are installed,
# the check for AC_PROG_INSTALL fails.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_SCRIPTS = zardoz qbert brownie
diff --git a/tests/python.test b/tests/python.test
index fe88dbc23..d9b387e00 100755
--- a/tests/python.test
+++ b/tests/python.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure py_compile is defined.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/python2.test b/tests/python2.test
index 852ce0a10..fb74145ee 100755
--- a/tests/python2.test
+++ b/tests/python2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that Automake suggests using AM_PATH_PYTHON.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/ranlib.test b/tests/ranlib.test
index 2da817246..bd7ca9d9a 100755
--- a/tests/ranlib.test
+++ b/tests/ranlib.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure AC_PROG_RANLIB can be overridden. Idea from Tatu
# Ylonen.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/recurs.test b/tests/recurs.test
index 88e1739f1..bea8f3576 100755
--- a/tests/recurs.test
+++ b/tests/recurs.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure recursive variable definitions die.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/recurs2.test b/tests/recurs2.test
index 937c959f1..308e45210 100755
--- a/tests/recurs2.test
+++ b/tests/recurs2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure recursive variable definitions die.
# From Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/remake.test b/tests/remake.test
index f340abe0b..b13fe646a 100755
--- a/tests/remake.test
+++ b/tests/remake.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure remaking rules in subdir are correctly generated.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/remake2.test b/tests/remake2.test
index bee0ff5c8..565a20c41 100755
--- a/tests/remake2.test
+++ b/tests/remake2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure remaking rules in subdir are correct.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/remake3.test b/tests/remake3.test
index 1bfa2dd3a..b46f48cb0 100755
--- a/tests/remake3.test
+++ b/tests/remake3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure remaking rules work when there is no subdir Makefile.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/req.test b/tests/req.test
index 04340e5f6..431d9cd8d 100755
--- a/tests/req.test
+++ b/tests/req.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure macro used in m4 file is included.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in <<EOF
AC_INIT
diff --git a/tests/required.test b/tests/required.test
index 3c65adb3a..6a872c9cc 100755
--- a/tests/required.test
+++ b/tests/required.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure Automake will install several copies of required files if needed.
# Reported by Marius Vollmer.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/required2.test b/tests/required2.test
index 6493681b1..b6e1286a8 100755
--- a/tests/required2.test
+++ b/tests/required2.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for a bug reported by Andrew Suffield.
# (Automake goes wild and try to rerun itself more than two time
# to fix the Makefiles.)
required='libtoolize'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/rulepat.test b/tests/rulepat.test
index 87cdbd59c..8986f51d3 100755
--- a/tests/rulepat.test
+++ b/tests/rulepat.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure RULE_PATTERN catches strange targets.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
$(srcdir)/Makefile.am:
diff --git a/tests/scripts.test b/tests/scripts.test
index f4c8c5482..36b5587a5 100755
--- a/tests/scripts.test
+++ b/tests/scripts.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Jim Meyering.
# AC_PROG_INSTALL was required when only noinst_SCRIPTS was defined.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/seenc.test b/tests/seenc.test
index d2cb3535a..3b2ecdbc6 100755
--- a/tests/seenc.test
+++ b/tests/seenc.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure C-but-not-CC error works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/sinclude.test b/tests/sinclude.test
index 1b6c619ae..9bf1d701f 100755
--- a/tests/sinclude.test
+++ b/tests/sinclude.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to see if `m4_sinclude' and `m4_include' works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/sourcesub.test b/tests/sourcesub.test
index 7e83886c1..8cd226bf2 100755
--- a/tests/sourcesub.test
+++ b/tests/sourcesub.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config sub in _SOURCES fails.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/sourcesub2.test b/tests/sourcesub2.test
index 3f11c5dd9..797dfb61a 100755
--- a/tests/sourcesub2.test
+++ b/tests/sourcesub2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config sub in _SOURCES fails.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/space.test b/tests/space.test
index def0654f6..936c2c1db 100755
--- a/tests/space.test
+++ b/tests/space.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test leading space on macro assignment.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/specflags.test b/tests/specflags.test
index 465280bc2..7670cdd31 100755
--- a/tests/specflags.test
+++ b/tests/specflags.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of flags specific to executable.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/specflags2.test b/tests/specflags2.test
index 2866404dc..514b95236 100755
--- a/tests/specflags2.test
+++ b/tests/specflags2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test library-specific flags.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/specflags3.test b/tests/specflags3.test
index a86026b4a..a96934fe9 100755
--- a/tests/specflags3.test
+++ b/tests/specflags3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test exe-specific flags with dependency tracking.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/specflags6.test b/tests/specflags6.test
index ebf4a582e..408e0b5e2 100755
--- a/tests/specflags6.test
+++ b/tests/specflags6.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Regression test for multiple rules being generated for each target when
# conditionals are present.
# From Richard Boulton
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/specflags7.test b/tests/specflags7.test
index 7092afecc..7cd85b2a1 100755
--- a/tests/specflags7.test
+++ b/tests/specflags7.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# The ctags/etags example from the manual, plus a check for _SHORTNAME.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/specflags8.test b/tests/specflags8.test
index 93e5420d4..d2b74bde9 100755
--- a/tests/specflags8.test
+++ b/tests/specflags8.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Like the ctags/etags example from the manual,
# with one extra indirection in the sources (PR/315), and
# use of _CPPFLAGS (PR/337).
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/specflags9.test b/tests/specflags9.test
index a1566a644..6488481e1 100755
--- a/tests/specflags9.test
+++ b/tests/specflags9.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Another check for per-target flag substitutions.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/spell.test b/tests/spell.test
index 1c4cc0490..dbcde0b36 100755
--- a/tests/spell.test
+++ b/tests/spell.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure misspellings in _SOURCES variables cause failure.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = zardoz foo
diff --git a/tests/spell2.test b/tests/spell2.test
index e07240ca8..2180f160f 100755
--- a/tests/spell2.test
+++ b/tests/spell2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure misspellings in _SOURCES variables cause failure.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/spell3.test b/tests/spell3.test
index 3dc3d1bf2..33a59002f 100755
--- a/tests/spell3.test
+++ b/tests/spell3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure some internal _DEPENDENCIES variables don't cause
# errors.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
TAGS_DEPENDENCIES = joe
diff --git a/tests/spelling.test b/tests/spelling.test
index 4e6c5a03b..8b653d9b4 100755
--- a/tests/spelling.test
+++ b/tests/spelling.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that misspelled prefixes actually cause error.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'EOF'
bni_PROGRAMS = zot
diff --git a/tests/stamph.test b/tests/stamph.test
index 919bdf90e..15e28a75a 100755
--- a/tests/stamph.test
+++ b/tests/stamph.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Error if stamp-h appears in AC_OUTPUT line.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_OUTPUT(Makefile stamp-h)
diff --git a/tests/stamph2.test b/tests/stamph2.test
index a7bf94823..6df3b5ea3 100755
--- a/tests/stamph2.test
+++ b/tests/stamph2.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure stamp-h* files are created where we expect
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << END
AM_CONFIG_HEADER(1.h
diff --git a/tests/stdlib.test b/tests/stdlib.test
index e284bd63a..3b47d5a40 100755
--- a/tests/stdlib.test
+++ b/tests/stdlib.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test "not a standard library" error.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/strip.test b/tests/strip.test
index 767aaa33b..ee330f234 100755
--- a/tests/strip.test
+++ b/tests/strip.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for install-strip.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo, 0.1, dev@null)
diff --git a/tests/subdir.test b/tests/subdir.test
index bbc9fbe5b..f59b2f1a1 100755
--- a/tests/subdir.test
+++ b/tests/subdir.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure install-sh and mkinstalldirs correctly found in
# subdirs.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
mkdir zot
diff --git a/tests/subdir2.test b/tests/subdir2.test
index d116d0eb4..d188fea0d 100755
--- a/tests/subdir2.test
+++ b/tests/subdir2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure sub-sub-dirs work correctly.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
mkdir one
mkdir one/two
diff --git a/tests/subdir3.test b/tests/subdir3.test
index c69cad831..f157a1077 100755
--- a/tests/subdir3.test
+++ b/tests/subdir3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure subdir source file generates explicit dependency.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = zardoz widdershins
diff --git a/tests/subdir4.test b/tests/subdir4.test
index 12b88b1bd..32bcf0c87 100755
--- a/tests/subdir4.test
+++ b/tests/subdir4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure a top-level depcomp file is found when
# AC_CONFIG_AUX_DIR is not specified.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
mkdir lib src
diff --git a/tests/subdir5.test b/tests/subdir5.test
index 1cfb0c01c..038b111fb 100755
--- a/tests/subdir5.test
+++ b/tests/subdir5.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that adding a new directory works.
# PR automake/46
@@ -6,7 +24,7 @@
# This test assumes that the `make' utility is able to start
# over and reload Makefiles which have been remade (a non-POSIX feature).
required='GNUmake gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(a.c)
diff --git a/tests/subdir6.test b/tests/subdir6.test
index 535c35872..ce89bcbbd 100755
--- a/tests/subdir6.test
+++ b/tests/subdir6.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure config headers in subdirectories are cleaned.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subdir7.test b/tests/subdir7.test
index 99c197f45..f76b1606f 100755
--- a/tests/subdir7.test
+++ b/tests/subdir7.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Naming a subdirectory `obj/' is a bad idea. Automake should say so.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subdirbuiltsources.test b/tests/subdirbuiltsources.test
index d86d5fc56..2e35432f7 100755
--- a/tests/subdirbuiltsources.test
+++ b/tests/subdirbuiltsources.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure when using SUBDIR that all BUILT_SOURCES are built.
# A bug occurred where subdirs do not have all-recursive or
# all-recursive-am which depended on BUILT_SOURCES.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subdircond.test b/tests/subdircond.test
index 332667d7c..9e5351632 100755
--- a/tests/subdircond.test
+++ b/tests/subdircond.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# It is ok to have a conditional SUBDIRS when using gettext.
required=gettext
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_GNU_GETTEXT
diff --git a/tests/subdircond2.test b/tests/subdircond2.test
index 28e6b5a43..2c25cb35e 100755
--- a/tests/subdircond2.test
+++ b/tests/subdircond2.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# The for conditional SUBDIRS.
# SUBDIRS + AM_CONDITIONAL setup from the manual.
# Lots of lines here are duplicated in subdircond3.test.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subdircond3.test b/tests/subdircond3.test
index d2dc4a7e4..4d9b39767 100755
--- a/tests/subdircond3.test
+++ b/tests/subdircond3.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# The for conditional SUBDIRS.
# SUBDIRS + AC_SUBST setup from the manual.
# Lots of lines here are duplicated in subdircond2.test.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subobj.test b/tests/subobj.test
index 92a763a74..54569b81f 100755
--- a/tests/subobj.test
+++ b/tests/subobj.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of subdir objects with C.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subobj2.test b/tests/subobj2.test
index 039bd432d..84719dbbe 100755
--- a/tests/subobj2.test
+++ b/tests/subobj2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of subdir objects with C++.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subobj3.test b/tests/subobj3.test
index 2b9c30153..3a60ec7c3 100755
--- a/tests/subobj3.test
+++ b/tests/subobj3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of subdir objects with C++.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(sub/hello.c)
diff --git a/tests/subobj4.test b/tests/subobj4.test
index 724563a06..24039e3ad 100755
--- a/tests/subobj4.test
+++ b/tests/subobj4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure `../foo/foo.cpp' generates a rule.
# Report from Dave Brolley.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_PROG_CC_C_O
diff --git a/tests/subobj5.test b/tests/subobj5.test
index 301c30335..8b349e953 100755
--- a/tests/subobj5.test
+++ b/tests/subobj5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of subdir make dist rules.
# From Robert Collins
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(generic/a.c)
diff --git a/tests/subobj6.test b/tests/subobj6.test
index 6521f9ae9..6a4f4c9c6 100755
--- a/tests/subobj6.test
+++ b/tests/subobj6.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of subdir make distclean rules.
# From Robert Collins
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(f)
diff --git a/tests/subobj7.test b/tests/subobj7.test
index c5388fbd2..51027aa76 100755
--- a/tests/subobj7.test
+++ b/tests/subobj7.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure AM_CFLAGS appears in subdir compilation rule.
# Report from Steve M. Robbins.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(f)
diff --git a/tests/subobj8.test b/tests/subobj8.test
index 9b9bfd17e..bee14e5bc 100755
--- a/tests/subobj8.test
+++ b/tests/subobj8.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure `compile' is included when subdir-objects is used in a subdir.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(Makefile.am)
diff --git a/tests/subobj9.test b/tests/subobj9.test
index 56db81328..1301562c5 100755
--- a/tests/subobj9.test
+++ b/tests/subobj9.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for PR 312.
required='libtoolize g++'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(x, 0, x)
diff --git a/tests/subobjname.test b/tests/subobjname.test
index 1f94a94a7..a236fad19 100755
--- a/tests/subobjname.test
+++ b/tests/subobjname.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure we reuse variables whenever possible, to limit
# combinational explosion. (This test is named after the &subobjname
# sub in Automake).
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subpkg.test b/tests/subpkg.test
index fd77e8a02..d2ed10200 100755
--- a/tests/subpkg.test
+++ b/tests/subpkg.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check subpackage handling.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/subst.test b/tests/subst.test
index e9b746bcf..5800d934e 100755
--- a/tests/subst.test
+++ b/tests/subst.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that AC_SUBST($1) does something sensible. From Ulrich
# Drepper.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_SUBST($1)
diff --git a/tests/substref.test b/tests/substref.test
index 7aa332281..37e54cbbe 100755
--- a/tests/substref.test
+++ b/tests/substref.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug in variable substitution references when left hand pattern is
# null.
# Report from Richard Boulton
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(hello.c)
diff --git a/tests/substtarg.test b/tests/substtarg.test
index ded02849a..591e77465 100755
--- a/tests/substtarg.test
+++ b/tests/substtarg.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test that substitutions in variables work.
# From Lars J. Aas.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(fakelib.c)
diff --git a/tests/suffix.test b/tests/suffix.test
index 74f0e2b5d..bbb5b83df 100755
--- a/tests/suffix.test
+++ b/tests/suffix.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure a suffix rule for C compilation is produced.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/suffix10.test b/tests/suffix10.test
index afdcf727e..b73fd0001 100755
--- a/tests/suffix10.test
+++ b/tests/suffix10.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that derivations work with .lo too.
# (related to PR/37)
required='libtoolize bison'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/suffix2.test b/tests/suffix2.test
index 0411c69bb..043d8e021 100755
--- a/tests/suffix2.test
+++ b/tests/suffix2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure .c.o rule is only included once.
required=libtoolize
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/suffix3.test b/tests/suffix3.test
index 277658a33..03530cc8a 100755
--- a/tests/suffix3.test
+++ b/tests/suffix3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that suffix rules chain.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/suffix4.test b/tests/suffix4.test
index d9155e0e5..5bc9c377f 100755
--- a/tests/suffix4.test
+++ b/tests/suffix4.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure Automake doesn't abort on user-defined extensions.
# Based on a report from Dmitry Mikhin <dmitrym@acres.com.au>.
@@ -6,7 +24,7 @@
# Also make sure that .SUFFIXES is automatically adjusted with
# extensions from implicit rules.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
.k.o:
diff --git a/tests/suffix5.test b/tests/suffix5.test
index b90f55325..e69a720d3 100755
--- a/tests/suffix5.test
+++ b/tests/suffix5.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
required=libtool
@@ -6,7 +24,7 @@ required=libtool
# from user-defined implicit rules.
# Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
diff --git a/tests/suffix6.test b/tests/suffix6.test
index 3ab398b16..f3849b370 100755
--- a/tests/suffix6.test
+++ b/tests/suffix6.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure Automake supports implicit rules with dot-less
# extensions. Also make sure that `.o' is handled like `.$(OBJEXT)'.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
SUFFIXES = a b .$(OBJEXT) c .o
diff --git a/tests/suffix7.test b/tests/suffix7.test
index 944f91f46..d5d82c824 100755
--- a/tests/suffix7.test
+++ b/tests/suffix7.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure Automake supports implicit rules "confusing"
# extensions. Inspired by a mail from Alex Hornby.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
SUFFIXES = .idl S.cpp C.h
diff --git a/tests/suffix8.test b/tests/suffix8.test
index 36257a6db..519a19a6f 100755
--- a/tests/suffix8.test
+++ b/tests/suffix8.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure Automake supports multiple derivations for the same suffix.
# PR/37
required='gcc libtoolize'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/suffix9.test b/tests/suffix9.test
index a62bcc480..582ae2480 100755
--- a/tests/suffix9.test
+++ b/tests/suffix9.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that Automake choose the shorter route between suffixes
# (related to PR/37)
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/symlink.test b/tests/symlink.test
index 9312fb310..6b505de28 100755
--- a/tests/symlink.test
+++ b/tests/symlink.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure we get an error if symlink creation fails.
# Reported by Joerg-Martin Schwarz
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f install-sh
rm -f mkinstalldirs
diff --git a/tests/symlink2.test b/tests/symlink2.test
index 960e4ca89..da65075f1 100755
--- a/tests/symlink2.test
+++ b/tests/symlink2.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that `automake -a' redirects dangling symlinks.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f install-sh
rm -f mkinstalldirs
diff --git a/tests/symlink3.test b/tests/symlink3.test
index 807b293a3..a61880556 100755
--- a/tests/symlink3.test
+++ b/tests/symlink3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that `automake --force-missing' works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
rm -f install-sh
rm -f mkinstalldirs
diff --git a/tests/syntax.test b/tests/syntax.test
index f06ad1da9..c04639d9d 100755
--- a/tests/syntax.test
+++ b/tests/syntax.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for error for bad syntax.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
foo = q \
diff --git a/tests/tags.test b/tests/tags.test
index 9d9c125f1..0e3fc1641 100755
--- a/tests/tags.test
+++ b/tests/tags.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Harlan Stenn: the tags target doesn't work
# when there are only headers in a directory.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
noinst_HEADERS = iguana.h
diff --git a/tests/tagsub.test b/tests/tagsub.test
index 1d05beb89..d5da79687 100755
--- a/tests/tagsub.test
+++ b/tests/tagsub.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure tags and subdirs work correctly. Bug report by
# François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
SUBDIRS = sub
diff --git a/tests/target-cflags.test b/tests/target-cflags.test
index 40f9f3046..ceefb69fb 100755
--- a/tests/target-cflags.test
+++ b/tests/target-cflags.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure target specific CFLAGS work
# Assar Westerlund <assar@sics.se>
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT(foo.c)
diff --git a/tests/target.test b/tests/target.test
index 55862398f..44f30d072 100755
--- a/tests/target.test
+++ b/tests/target.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for a bug where target names and variable names are treated alike.
# Bug from François Pinard.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
echo AC_PROG_CC >> configure.in
diff --git a/tests/texinfo.test b/tests/texinfo.test
index c05e90219..478ccf97b 100755
--- a/tests/texinfo.test
+++ b/tests/texinfo.test
@@ -1,9 +1,28 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure texinfo.tex included in distribution. Bug report by
# Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/texinfo10.test b/tests/texinfo10.test
index 50ff74281..bd120c43e 100755
--- a/tests/texinfo10.test
+++ b/tests/texinfo10.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure dvi target recurses into subdir.
# Reported by Pavel Roskin
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/texinfo13.test b/tests/texinfo13.test
index 9b8530b57..6ef2a264d 100755
--- a/tests/texinfo13.test
+++ b/tests/texinfo13.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check for subdir Texinfo.
# PR/343
required='makeinfo'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/texinfo16.test b/tests/texinfo16.test
index e519c0c74..3765eb00c 100755
--- a/tests/texinfo16.test
+++ b/tests/texinfo16.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that info files are built in $(srcdir).
required='makeinfo'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/texinfo2.test b/tests/texinfo2.test
index 8e0d95ab1..e1e1b4650 100755
--- a/tests/texinfo2.test
+++ b/tests/texinfo2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to ensure that a ".info~" file doesn't end up in the
# distribution. Bug report from Greg McGary.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/texinfo3.test b/tests/texinfo3.test
index d763aeddb..5fb263546 100755
--- a/tests/texinfo3.test
+++ b/tests/texinfo3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure .info-less @setfilename works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/texinfo4.test b/tests/texinfo4.test
index 0c2cf9027..31af8b8bf 100755
--- a/tests/texinfo4.test
+++ b/tests/texinfo4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure non-empty, non-info suffixes are diagnosed.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/texinfo5.test b/tests/texinfo5.test
index 7129fe68b..e75e31842 100755
--- a/tests/texinfo5.test
+++ b/tests/texinfo5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure that texinfo.tex is not required by --cygnus.
# Report from Ian Taylor.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AM_MAINTAINER_MODE
diff --git a/tests/texinfo6.test b/tests/texinfo6.test
index 1cf03f5d9..556d73534 100755
--- a/tests/texinfo6.test
+++ b/tests/texinfo6.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure `.txi' extension works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = foo.txi
diff --git a/tests/texinfo7.test b/tests/texinfo7.test
index c43520294..5f6a970ec 100755
--- a/tests/texinfo7.test
+++ b/tests/texinfo7.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure texinfo.tex correctly installed by -a. Bug report
# by Per Cederqvist.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/texinfo8.test b/tests/texinfo8.test
index 3d24e6459..cee156c44 100755
--- a/tests/texinfo8.test
+++ b/tests/texinfo8.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure texinfo.tex is correctly installed and disted by
# -a when we're using AC_CONFIG_AUX_DIR. Bug report by by Per
# Cederqvist.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/texinfo9.test b/tests/texinfo9.test
index 4f0666ce1..c761a4d07 100755
--- a/tests/texinfo9.test
+++ b/tests/texinfo9.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure we only create dist-info target once.
# This is just an example -- basically for many targets in texinfos.am
# we only want them to appear once.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = maude.texi liver.txi heart.texinfo
diff --git a/tests/transform.test b/tests/transform.test
index fbf99bdf9..66a54ba8c 100755
--- a/tests/transform.test
+++ b/tests/transform.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that --program-transform works.
required=gcc
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/unused.test b/tests/unused.test
index 18f02da49..4b8b45dd1 100755
--- a/tests/unused.test
+++ b/tests/unused.test
@@ -1,7 +1,25 @@
#! /bin/sh
+# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for failing check for unused macros. From Johan Danielsson.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
MACRO_1
diff --git a/tests/vars.test b/tests/vars.test
index 50c9f462a..00f638037 100755
--- a/tests/vars.test
+++ b/tests/vars.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test various variable definitions that include an '=' sign
# From Raja R Harinath
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
MY_FLAGS_1=-DABC=345
diff --git a/tests/vars2.test b/tests/vars2.test
index 6a542caec..35e1acdf0 100755
--- a/tests/vars2.test
+++ b/tests/vars2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that Automake warns about variables starting with `_'.
# PR/291
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/vars3.test b/tests/vars3.test
index b7463ceab..703471a56 100755
--- a/tests/vars3.test
+++ b/tests/vars3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Check that Automake warns about variables containing spaces
# and other non-POSIX characters.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/vartar.test b/tests/vartar.test
index 8a212066c..e6b7a3aa0 100755
--- a/tests/vartar.test
+++ b/tests/vartar.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Targets and macros are two different name spaces.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
install = install
diff --git a/tests/version.test b/tests/version.test
index a9265271e..4239cb4ea 100755
--- a/tests/version.test
+++ b/tests/version.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure [...] is ok in version number. Report from Jim
# Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/version2.test b/tests/version2.test
index 6acc27309..ccc76aef0 100755
--- a/tests/version2.test
+++ b/tests/version2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure 3rd arg to AM_INIT_AUTOMAKE not picked up in
# version. From Joel Weber.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/version3.test b/tests/version3.test
index c9461eba6..eca3ad938 100755
--- a/tests/version3.test
+++ b/tests/version3.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1998, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure version in AUTOMAKE_OPTIONS works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = 9.9x
diff --git a/tests/version4.test b/tests/version4.test
index 993bc5c0a..0579f7ba1 100755
--- a/tests/version4.test
+++ b/tests/version4.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure we are compatible with the 1.4-p1 series.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = 1.4-p3
diff --git a/tests/version5.test b/tests/version5.test
index e6331c546..2995dcc13 100755
--- a/tests/version5.test
+++ b/tests/version5.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Exercise &version_compare.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/version6.test b/tests/version6.test
index e391f60b2..19b6de9f2 100755
--- a/tests/version6.test
+++ b/tests/version6.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure the current version can be required.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/vpath.test b/tests/vpath.test
index 89e5004cb..f90bdafa8 100755
--- a/tests/vpath.test
+++ b/tests/vpath.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure VPATH can be overridden.
# Report from Anthony Green.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
VPATH = zardoz
diff --git a/tests/vtexi.test b/tests/vtexi.test
index cdda5cb9a..8cb909083 100755
--- a/tests/vtexi.test
+++ b/tests/vtexi.test
@@ -1,6 +1,24 @@
#!/bin/sh
+# Copyright (C) 1996, 1997, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = textutils.texi
diff --git a/tests/vtexi2.test b/tests/vtexi2.test
index 7587f31ee..a5a5cc364 100755
--- a/tests/vtexi2.test
+++ b/tests/vtexi2.test
@@ -1,11 +1,29 @@
#! /bin/sh
+# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for bug reported by Glenn Amerine:
# When automake sees version.texi is being included by a texi file,
# version.texi gets listed as a dependency for the .info file but
# not the .dvi file.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
info_TEXINFOS = zardoz.texi
diff --git a/tests/warnopts.test b/tests/warnopts.test
index 3857f8b64..6c4d3cdd2 100755
--- a/tests/warnopts.test
+++ b/tests/warnopts.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Make sure that we can enable or disable warnings on a per-file basis.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/werror.test b/tests/werror.test
index 6bfb1389e..2ece10a7e 100755
--- a/tests/werror.test
+++ b/tests/werror.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure --Werror and --add-missing work together.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
: > Makefile.am
diff --git a/tests/whoami.test b/tests/whoami.test
index 8c8dd1336..657ad8de6 100755
--- a/tests/whoami.test
+++ b/tests/whoami.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure aclocal doesn't barf on "WHO_AM_I=...". Report
# from Johan Danielsson (and a very nice bug report, too, I might
# add).
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
WHO_AM_I=17
diff --git a/tests/xsource.test b/tests/xsource.test
index 1ed5ca91d..2c923e483 100755
--- a/tests/xsource.test
+++ b/tests/xsource.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure multiple source files with the same object
# file causes error.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > Makefile.am << 'END'
bin_PROGRAMS = zardoz
diff --git a/tests/yacc.test b/tests/yacc.test
index 33f74eeb1..b89561e80 100755
--- a/tests/yacc.test
+++ b/tests/yacc.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1996, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure intermediate .c file is built from yacc source.
# Bug from Thomas Morgan.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/yacc2.test b/tests/yacc2.test
index bfb386da0..9bb304432 100755
--- a/tests/yacc2.test
+++ b/tests/yacc2.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure intermediate .h file is not generated nor removed
# if (AM_)?YFLAGS do not contain -d. Requested by Jim Meyering.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/yacc3.test b/tests/yacc3.test
index e51df9b2d..8c9276894 100755
--- a/tests/yacc3.test
+++ b/tests/yacc3.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Ensure that generated .h file is distributed iff we have -d in
# (AM_)?YFLAGS.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/yacc4.test b/tests/yacc4.test
index d2ab10722..27d31e934 100755
--- a/tests/yacc4.test
+++ b/tests/yacc4.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Some simple tests of ylwrap functionality.
required='bison gcc'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/yacc5.test b/tests/yacc5.test
index 0f19e19d7..19883f792 100755
--- a/tests/yacc5.test
+++ b/tests/yacc5.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test of yacc functionality, derived from GNU binutils
# by Tim Van Holder.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/yacc6.test b/tests/yacc6.test
index e17e01447..8c0e5b01f 100755
--- a/tests/yacc6.test
+++ b/tests/yacc6.test
@@ -1,9 +1,27 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure ylwrap put in right location.
# Report from Tim Van Holder.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/tests/yacc7.test b/tests/yacc7.test
index 771726d73..f57050d13 100755
--- a/tests/yacc7.test
+++ b/tests/yacc7.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure dependencies are generated correctly for .h files.
# Report from Richard Boulton.
@@ -6,7 +24,7 @@
# Also check that the sources of the generated parser are distributed.
# PR/47.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
diff --git a/tests/yacc8.test b/tests/yacc8.test
index 72ff5a851..e53c10ade 100755
--- a/tests/yacc8.test
+++ b/tests/yacc8.test
@@ -1,10 +1,28 @@
#! /bin/sh
+# Copyright (C) 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test for subdir parsers.
required="gcc bison"
-. $srcdir/defs || exit 1
+. ./defs || exit 1
set -e
diff --git a/tests/yaccpp.test b/tests/yaccpp.test
index 9ee5b2d8e..7d4672c43 100755
--- a/tests/yaccpp.test
+++ b/tests/yaccpp.test
@@ -1,8 +1,26 @@
#! /bin/sh
+# Copyright (C) 1997, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# Test to make sure yacc + c++ works.
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CXX
diff --git a/tests/yaccvpath.test b/tests/yaccvpath.test
index ef7ee6626..be96ac461 100755
--- a/tests/yaccvpath.test
+++ b/tests/yaccvpath.test
@@ -1,4 +1,22 @@
#! /bin/sh
+# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
# This test checks that dependent files are updated before including
# in the distribution. `parse.c' depends on `parce.y'. The later is
@@ -7,7 +25,7 @@
# to be distributed is up to date.
required='gcc bison'
-. $srcdir/defs || exit 1
+. ./defs || exit 1
cat > configure.in << 'END'
AC_INIT
diff --git a/version.texi b/version.texi
index 2a10e2039..78896f231 100644
--- a/version.texi
+++ b/version.texi
@@ -1,4 +1,4 @@
-@set UPDATED 23 August 2002
+@set UPDATED 24 August 2002
@set UPDATED-MONTH August 2002
@set EDITION 1.6c
@set VERSION 1.6c