* automake.in (handle_tests): Test `dir=./' before `dir=', so that
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 3 Apr 1999 13:27:21 +0000 (13:27 +0000)
committerAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 3 Apr 1999 13:27:21 +0000 (13:27 +0000)
we do not depend on PATH starting with `.'.

ChangeLog
automake.in

index 27ed4a6..13d9be6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-03  Raja R Harinath  <harinath@cs.umn.edu>
+
+       * automake.in (handle_tests): Test `dir=./' before `dir=', so that 
+       we do not depend on PATH starting with `.'.
+
 1999-03-31  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (quote_cond_val): Quote \n.
index ffac781..d392491 100755 (executable)
@@ -3794,12 +3794,13 @@ sub handle_tests
        push (@phony, 'check-TESTS');
 
        # Note: Solaris 2.7 seems to expand TESTS using VPATH.  That's
-       # why we choose `dir=' and not `dir=.'
+       # why we also try `dir='
        $output_rules .= 'check-TESTS: $(TESTS)
        @failed=0; all=0; xfail=0; xpass=0; \\
        srcdir=$(srcdir); export srcdir; \\
        for tst in $(TESTS); do \\
-         if test -f $$tst; then dir=; \\
+         if test -f ./$$tst; then dir=./; \\
+         elif test -f $$tst; then dir=; \\
          else dir="$(srcdir)/"; fi; \\
          if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \\
            all=`expr $$all + 1`; \\