As requested here is our patch to make require_file_internal able to deal
with file names containing path names along with a tarball containing the
test case. Simply unpack the tarball and call 'autoreconf -fi' in the
created automake_test directory. Without the attached patch, automake will
fail with

Makefile.am:5: required file `./src/getopt.c' not found
Makefile.am:5: required file `./src/getopt1.c' not found

Philipp
--- automake.in
+++ automake.in
@@ -7146,12 +7146,14 @@
       my $fullfile = "$dir/$file";
       my $found_it = 0;
       my $dangling_sym = 0;
+      my $thisdir = dirname ($fullfile);
+      my $thisfile = basename ($fullfile);
 
       if (-l $fullfile && ! -f $fullfile)
 	{
 	  $dangling_sym = 1;
 	}
-      elsif (dir_has_case_matching_file ($dir, $file))
+      elsif (dir_has_case_matching_file ($thisdir, $thisfile))
 	{
 	  $found_it = 1;
 	  maybe_push_required_file ($dir, $file, $fullfile);

Attachment: required_file_testcase.tar.bz2
Description: application/bzip-compressed-tar

Reply via email to