Index: gnulib-tool =================================================================== RCS file: /cvsroot/gnulib/gnulib/gnulib-tool,v retrieving revision 1.196 diff -u -r1.196 gnulib-tool --- gnulib-tool 14 Nov 2006 09:37:20 -0000 1.196 +++ gnulib-tool 14 Nov 2006 12:01:11 -0000 @@ -2254,6 +2254,32 @@ testsbase=gltests macro_prefix=gl + # Check module license + for imported_module in $modules; do + license=`func_get_license $imported_module` + if test "$license" = "LGPL"; then + lgpl=true + else + lgpl= + fi + + # Get dependencies for the current module. + modules=$imported_module + func_modules_transitive_closure + + # Verify that the licenses of modules are compatible. + if test -n "$lgpl"; then + for module in $modules; do + license=`func_get_license $module` + case $license in + LGPL | 'GPLed build tool') ;; + 'public domain' | 'unlimited' | 'unmodifiable license text') ;; + *) func_fatal_error "warning: module $imported_module depend on another module with incompatible license: $module" ;; + esac + done + fi + done + # Determine final module list. func_modules_transitive_closure echo "Module list with included dependencies:"