Hello!

The attached patch fixes the testsuite. Currently some tests use some
files (depcomp, install-sh, mkinstalldirs and missing) from the toplevel
Automake directory if and only if srcdir=="."

This behaviour is inconsistent and it actually causes some failures in the
testsuite for srcdir=="." (currently it is pr19.test)

I don't see a better solution than adding AC_CONFIG_AUX_DIR(.) to
configure.in to prevent automake from looking into other directories. Some
existent tests (pr9.test) use AC_CONFIG_AUX_DIR(support), which is just a
bit more complicated because it requires "mkdir support".

After my patch "make check" passes for srcdir=="."

I remember me sending a similar patch a while back. I hope this time the
patch will find its way into the sources.

Regards,
Pavel Roskin

========================
Index: tests/ChangeLog
===================================================================
RCS file: /cvs/automake/automake/tests/ChangeLog,v
retrieving revision 1.294
diff -u -r1.294 ChangeLog
--- ChangeLog   2000/03/19 23:38:10     1.294
+++ ChangeLog   2000/05/01 04:35:21
@@ -1,3 +1,10 @@
+2000-05-01  Pavel Roskin  <[EMAIL PROTECTED]>
+
+       * install2.test: Prevent automake from looking into .. and ../..
+       by using AC_CONFIG_AUX_DIR(.) in configure.in
+       * pr19.test: Likewise
+       * subobj3.test: Likewise
+
 2000-03-19  Tom Tromey  <[EMAIL PROTECTED]>
 
        * libobj2.test: Put depcomp into subdir.
Index: tests/install2.test
===================================================================
RCS file: /cvs/automake/automake/tests/install2.test,v
retrieving revision 1.3
diff -u -r1.3 install2.test
--- install2.test       2000/03/19 20:35:46     1.3
+++ install2.test       2000/05/01 04:35:22
@@ -7,6 +7,8 @@
 
 cat > configure.in << 'END'
 AC_INIT
+dnl Prevent automake from looking in .. and ../..
+AC_CONFIG_AUX_DIR(.)
 AM_INIT_AUTOMAKE(foo, 0.1)
 AC_OUTPUT(Makefile)
 END
Index: tests/pr19.test
===================================================================
RCS file: /cvs/automake/automake/tests/pr19.test,v
retrieving revision 1.3
diff -u -r1.3 pr19.test
--- pr19.test   1999/12/27 07:40:32     1.3
+++ pr19.test   2000/05/01 04:35:22
@@ -7,6 +7,8 @@
 
 cat > configure.in << 'END'
 AC_INIT(foo.l)
+dnl Prevent automake from looking in .. and ../..
+AC_CONFIG_AUX_DIR(.)
 AM_INIT_AUTOMAKE(am_lex_bug, 0.1.1)
 
 dnl Checks for programs.
Index: tests/subobj3.test
===================================================================
RCS file: /cvs/automake/automake/tests/subobj3.test,v
retrieving revision 1.3
diff -u -r1.3 subobj3.test
--- subobj3.test        1999/12/27 07:40:32     1.3
+++ subobj3.test        2000/05/01 04:35:22
@@ -7,6 +7,8 @@
 cat > configure.in << 'END'
 AC_INIT(sub/hello.c)
 AM_INIT_AUTOMAKE(hello,0.23)
+dnl Prevent automake from looking in .. and ../..
+AC_CONFIG_AUX_DIR(.)
 AC_PROG_CC
 AM_PROG_CC_C_O
 AM_C_PROTOTYPES
========================

Reply via email to