tools/automake: move file requirements to higher strictness
[openwrt/openwrt.git] / tools / automake / patches / 101-do-not-require-files.patch
1 --- a/bin/automake.in
2 +++ b/bin/automake.in
3 @@ -4513,7 +4513,7 @@ sub handle_gettext ()
4 && grep ($_ eq 'intl', @subdirs));
5 }
6
7 - require_file ($ac_gettext_location, GNU, 'ABOUT-NLS');
8 + require_file ($ac_gettext_location, GNITS, 'ABOUT-NLS');
9 }
10
11 # Emit makefile footer.
12 @@ -5641,7 +5641,7 @@ sub check_gnu_standards ()
13 # otherwise require non-.md.
14 my $required
15 = (! -f $file && -f "$file.md") ? "$file.md" : $file;
16 - require_file ("$am_file.am", GNU, $required);
17 + require_file ("$am_file.am", GNITS, $required);
18 }
19
20 # Accept one of these three licenses; default to COPYING.
21 @@ -5655,7 +5655,7 @@ sub check_gnu_standards ()
22 last;
23 }
24 }
25 - require_file ("$am_file.am", GNU, 'COPYING')
26 + require_file ("$am_file.am", GNITS, 'COPYING')
27 unless $license;
28 }
29