]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
- "Unable to find a javac compiler" -> BR: jdk
authorsparky <sparky@pld-linux.org>
Wed, 19 May 2010 17:24:23 +0000 (17:24 +0000)
committersparky <sparky@pld-linux.org>
Wed, 19 May 2010 17:24:23 +0000 (17:24 +0000)
- better missing ac macro detection

svn-id: @11479

findbr

diff --git a/findbr b/findbr
index 065f972f2cc4f9be928ad74b268e744c9cd7f530..fb56d59df503c3019c207cad7d00ad7224a60b0b 100755 (executable)
--- a/findbr
+++ b/findbr
@@ -245,7 +245,8 @@ while ( $_ = shift @lines ) {
                                "/usr/lib*/python2*/_$mod.so" );
        }
        if ( /configure(?:\.in|\.ac)?:\d+: error: possibly undefined macro: (\S+)/ 
-                       or m{configure(?:\.in|\.ac)?:\d+: error: m4 macro `(\S+)' is not defined} ) {
+                       or m{configure(?:\.in|\.ac)?:\d+: error: m4 macro `(\S+)' is not defined}
+                       or m{warning: macro `(\S+)' not found in library} ) {
                my $macro = $1;
                warn "Looking for autotools macro $macro\n";
                if ( my $br = $ac2br{ $macro } ) {
@@ -419,6 +420,11 @@ while ( $_ = shift @lines ) {
                }
        }
 
+       if ( m{Unable to find a javac compiler;$} ) {
+               add_br( "jdk" );
+       }
+
+
        if ( m{^-- The following OPTIONAL packages could NOT be located on your system} ) {
                $cmake_pkg_list = 1;
        }
This page took 0.045457 seconds and 4 git commands to generate.