Recognize 'foo_LIBRARIES += libgnu.a'.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 3 Jul 2008 18:17:33 +0000 (20:17 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 3 Jul 2008 18:17:33 +0000 (20:17 +0200)
* gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
makefile snippet has already specified an installation location,
also using '+='.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
gnulib-tool

index b5d4f05..15ef524 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Recognize 'foo_LIBRARIES += libgnu.a'.
+       * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
+       makefile snippet has already specified an installation location,
+       also using '+='.
+
 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
 
        getdate.y: factor out common actions
index 9798eaa..1c45002 100755 (executable)
@@ -1737,7 +1737,7 @@ func_emit_lib_Makefile_am ()
     echo "AM_CPPFLAGS ="
   fi
   echo
-  if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *= *$libname\\.$libext\$" allsnippets.tmp > /dev/null; then
+  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.
     :