included file, when $(top_srcdir) is not used.
* tests/include2.test: Augment.
+2002-08-23 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (read_am_file): File computation of path to
+ included file, when $(top_srcdir) is not used.
+ * tests/include2.test: Augment.
+
2002-08-22 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (set_strictness): Never enable 'portability'
{
$path =~ s/\$\(srcdir\)\///;
push (@include_stack, "\$\(srcdir\)/$path");
- push_dist_common (($relative_dir eq '.')
- ? $path : ($relative_dir . '/' . $path));
+ push_dist_common ($path);
$path = $relative_dir . "/" . $path;
}
&read_am_file ($path);
#! /bin/sh
-# Make sure header in parent directory is included.
+# Make sure included files in parent directory are distributed.
. $srcdir/defs || exit 1
+set -e
+
cat >> configure.in << 'END'
AC_CONFIG_FILES([sub/Makefile])
+AC_OUTPUT
END
cat > Makefile.am << 'END'
SUBDIRS = sub
+test: distdir
+ test -f $(distdir)/foo
+ test -f $(distdir)/bar
END
: > foo
+: > bar
mkdir sub
cat > sub/Makefile.am << 'END'
include $(top_srcdir)/foo
+include ../bar
END
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
-
-# Also make sure include file is distributed.
-(sed -n -e '/^DIST_COMMON =.*\\$/ {
- :loop
- p
- n
- /\\$/ b loop
- p
- n
- }' -e '/^DIST_COMMON =/ p' sub/Makefile.in | fgrep ../foo)
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure
+$MAKE test