# HG changeset patch # User Bruno Haible # Date 1238964133 -7200 # Node ID 9b74d1d0b26724337bba4211c1e0427f8e7201ca # Parent dac57159dd3a6ae93e1f2187b7be5fc9c8c09999 Make it easier to distribute gnulib-built libraries. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-05 Bruno Haible + + * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to + noinst_LTLIBRARIES if the Makefile.am in the same directory specifies + that it should be installed. + 2009-04-05 Bruno Haible * gnulib-tool: New option --copy-file. diff --git a/gnulib-tool b/gnulib-tool --- a/gnulib-tool +++ b/gnulib-tool @@ -2047,9 +2047,14 @@ echo "AM_CFLAGS =" fi echo - if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" allsnippets.tmp > /dev/null; then - # One of the snippets already specifies an installation location for the - # library. Don't confuse automake by saying it should not be installed. + if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" allsnippets.tmp > /dev/null \ + || { test -n "$makefile_name" \ + && test -f "$sourcebase/Makefile.am" \ + && LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" "$sourcebase/Makefile.am" > /dev/null; \ + }; then + # One of the snippets or the user's Makefile.am already specifies an + # installation location for the library. Don't confuse automake by saying + # it should not be installed. : else # By default, the generated library should not be installed.