Index: automake.in =================================================================== --- automake.in.orig 2012-04-21 16:38:05.000000000 +0200 +++ automake.in 2012-04-26 16:31:55.925021393 +0200 @@ -7709,12 +7709,14 @@ sub required_file_check_or_copy ($$$) 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; }