[tools] automake: skip over not existing m4 macro directories, don't fail
[openwrt.git] / tools / automake / patches / 100-aclocal-skip-not-existing-directories.patch
1 --- a/aclocal.in
2 +++ b/aclocal.in
3 @@ -311,7 +311,8 @@ sub scan_m4_dirs ($@)
4      {
5        if (! opendir (DIR, $m4dir))
6         {
7 -         fatal "couldn't open directory `$m4dir': $!";
8 +         msg ('override', "warning: skipping not existing directory `$m4dir'");
9 +         next;
10         }
11  
12        # We reverse the directory contents so that foo2.m4 gets