From: Bruno Haible Date: Mon, 13 Jan 2003 16:03:12 +0000 (+0000) Subject: Ensure alloca.h and stdbool.h are created before compiling the library. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1febe996b02fceaf0cab2ec89607a713cd09caf8;p=pspp Ensure alloca.h and stdbool.h are created before compiling the library. --- diff --git a/ChangeLog b/ChangeLog index dad9ffc196..e8292c5996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-11 Bruno Haible + + * 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 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer, diff --git a/gnulib-tool b/gnulib-tool index 803a2038a1..10308918b3 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -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@' diff --git a/modules/alloca b/modules/alloca index 42a0583fa9..a18f3f5dd6 100644 --- a/modules/alloca +++ b/modules/alloca @@ -17,7 +17,7 @@ EXTRA_DIST += alloca_.h # The following is needed in order to create an 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 diff --git a/modules/stdbool b/modules/stdbool index bda2d93692..c3f1d30fc7 100644 --- a/modules/stdbool +++ b/modules/stdbool @@ -14,7 +14,7 @@ EXTRA_DIST += stdbool.h.in # The following is needed in order to create an 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