Special handling for the 'relocatable-prog-wrapper' module.
authorBruno Haible <bruno@clisp.org>
Tue, 6 Mar 2007 03:38:30 +0000 (03:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 6 Mar 2007 03:38:30 +0000 (03:38 +0000)
ChangeLog
gnulib-tool

index cdbc9e74eb52a3c612a70e00c07aed4e89254e4a..f11889f7015b3cdeff5d7d393efc640bf103aff7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-05  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_get_automake_snippet): Don't synthesize an
+       EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
+
 2007-03-05  Bruno Haible  <bruno@clisp.org>
 
        * lib/stdio_.h: Include <stddef.h>.
index 559a25ebfd65904a6018e888d191aa233a6fb4a5..eadd98dc90a3185f1566dd9715c11fc15e4bd32a 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-02-04 19:09:25 $'
+cvsdatestamp='$Date: 2007-03-06 03:38:30 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -1008,12 +1008,17 @@ func_get_automake_snippet ()
       # If some .c file exists and is not used with AC_LIBOBJ - for example,
       # a .c file is preprocessed into another .c file for BUILT_SOURCES -,
       # automake will generate a useless dependency; this is harmless.
-      sed_extract_c_files='/\.c$/p'
-      extra_files=`echo "$extra_files" | sed -n -e "$sed_extract_c_files"`
-      if test -n "$extra_files"; then
-        echo "EXTRA_lib_SOURCES +=" $extra_files
-        echo
-      fi
+      case "$1" in
+        relocatable-prog-wrapper) ;;
+        *)
+          sed_extract_c_files='/\.c$/p'
+          extra_files=`echo "$extra_files" | sed -n -e "$sed_extract_c_files"`
+          if test -n "$extra_files"; then
+            echo "EXTRA_lib_SOURCES +=" $extra_files
+            echo
+          fi
+          ;;
+      esac
       ;;
   esac
 }