Ensure alloca.h and stdbool.h are created before compiling the library.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Jan 2003 16:03:12 +0000 (16:03 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Jan 2003 16:03:12 +0000 (16:03 +0000)
ChangeLog
gnulib-tool
modules/alloca
modules/stdbool

index dad9ffc..e8292c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-11  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
+       * modules/alloca (Makefile.am): All object files depend on alloca.h.
+       * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
+
 2003-01-12  Paul Eggert  <eggert@twinsun.com>
 
        Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
index 803a203..1030891 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2003-01-09 13:22:53 $'
+cvsdatestamp='$Date: 2003-01-13 16:03:12 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -348,7 +348,7 @@ func_create_testdir ()
    for module in $modules; do
      func_verify_module
      if test -n "$module"; then
-       func_get_automake_snippet "$module" | sed -e "s,lib_SOURCES,$libname"'_a_SOURCES,g'
+       func_get_automake_snippet "$module" | sed -e "s,lib_SOURCES,$libname"'_a_SOURCES,g' -e "s,lib_OBJECTS,$libname"'_a_OBJECTS,g'
        if test "$module" = 'alloca'; then
          echo "$libname"'_a_LIBADD += @ALLOCA@'
          echo '#'"$libname"'_la_LIBADD += @LTALLOCA@'
index 42a0583..a18f3f5 100644 (file)
@@ -17,7 +17,7 @@ EXTRA_DIST += alloca_.h
 
 # The following is needed in order to create an <alloca.h> when the system
 # doesn't have one that works with the given compiler.
-all-local: @ALLOCA_H@
+all-local $(lib_OBJECTS): @ALLOCA_H@
 alloca.h: alloca_.h
        cp $(srcdir)/alloca_.h alloca.h
 MOSTLYCLEANFILES += alloca.h
index bda2d93..c3f1d30 100644 (file)
@@ -14,7 +14,7 @@ EXTRA_DIST += stdbool.h.in
 
 # The following is needed in order to create an <stdbool.h> when the system
 # doesn't have one that works.
-all-local: @STDBOOL_H@
+all-local $(lib_OBJECTS): @STDBOOL_H@
 stdbool.h: stdbool.h.in
        sed -e 's/@''HAVE__BOOL''@/@HAVE__BOOL@/g' < $(srcdir)/stdbool.h.in > stdbool.h
 MOSTLYCLEANFILES += stdbool.h