1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

Ensure alloca.h and stdbool.h are created before compiling the library.

This commit is contained in:
Bruno Haible
2003-01-13 16:03:12 +00:00
parent 096169d9b9
commit 1febe996b0
4 changed files with 10 additions and 4 deletions

View File

@@ -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,

View File

@@ -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@'

View 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

View 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