]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
- better gcc error check
authorsparky <sparky@pld-linux.org>
Fri, 14 May 2010 15:18:56 +0000 (15:18 +0000)
committersparky <sparky@pld-linux.org>
Fri, 14 May 2010 15:18:56 +0000 (15:18 +0000)
- resolve automake problems

svn-id: @11464

findbr

diff --git a/findbr b/findbr
index f1fd11e843d00c75619e9ad77ee311a7ea566364..065f972f2cc4f9be928ad74b268e744c9cd7f530 100755 (executable)
--- a/findbr
+++ b/findbr
@@ -229,7 +229,8 @@ while ( $_ = shift @lines ) {
        }
                        
 
-       if ( /\S+\.[ch](?:pp|xx)?:\d+:\d+: error: (\S+): No such file or directory$/ ) {
+       if ( /\S+\.[ch](?:pp|xx|c)?:\d+:\d+: error: (\S+): No such file or directory$/ or
+               /\S+\.[ch](?:pp|xx|c)?:\d+:\d+: fatal error: (\S+): No such file or directory$/ ) {
                my $h = $1;
                warn "Looking for C(++) header $h\n";
                poldek_file( "/usr/include*/$h" );
@@ -330,6 +331,17 @@ while ( $_ = shift @lines ) {
                add_br( "perl-XML-Parser" );
        }
 
+       if ( m{ (\S+) does not appear in AM_CONDITIONAL$} ) {
+               my $macro = $1;
+               warn "Looking for autotools macro $macro\n";
+               if ( my $br = $ac2br{ $macro } ) {
+                       add_br( $br );
+                       next;
+               } else {
+                       $check_ac = 1;
+               }
+       }
+
        if ( m{configure\[\d+\]: syntax error: }
                        or m{\./configure\[\d+\]: \S+_\S+: not found}
                        or m{./configure\[\d+\]: .*unexpected}
This page took 0.0752 seconds and 4 git commands to generate.