diff gnulib-tool @ 7182:f03a51e31a89

Make it possible to use lib_LTLIBRARIES in a snippet.
author Bruno Haible <bruno@clisp.org>
date Tue, 22 Aug 2006 18:57:52 +0000
parents bc1c94eecdb1
children 89a978aa0b12
line wrap: on
line diff
--- a/gnulib-tool	Tue Aug 22 17:34:55 2006 +0000
+++ b/gnulib-tool	Tue Aug 22 18:57:52 2006 +0000
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-08-21 18:49:51 $'
+cvsdatestamp='$Date: 2006-08-22 18:57:52 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -904,7 +904,11 @@
       if test -n "$module"; then
         {
           func_get_automake_snippet "$module" |
-            sed -e 's,lib_\([A-Z][A-Z]*\),'"${libname}_${libext}"'_\1,g'
+            sed -e 's,lib_LIBRARIES,lib%_LIBRARIES,g' \
+                -e 's,lib_LTLIBRARIES,lib%_LTLIBRARIES,g' |
+            sed -e 's,lib_\([A-Z][A-Z]*\),'"${libname}_${libext}"'_\1,g' |
+            sed -e 's,lib%_LIBRARIES,lib_LIBRARIES,g' \
+                -e 's,lib%_LTLIBRARIES,lib_LTLIBRARIES,g'
           if test "$module" = 'alloca'; then
             echo "${libname}_${libext}_LIBADD += @${perhapsLT}ALLOCA@"
           fi