2 Memory allocation, optimized for stack-like allocation patterns.
11 alignof [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
12 gettext-h [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
13 exitfail [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
14 stdint [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
15 stdlib [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1]
19 gl_CONDITIONAL_HEADER([obstack.h])
20 gl_CONDITIONAL([GL_COND_OBJ_OBSTACK],
21 [test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1])
25 BUILT_SOURCES += $(OBSTACK_H)
27 # We need the following in order to create <obstack.h> when the system
28 # doesn't have one that works with any size object.
29 if GL_GENERATE_OBSTACK_H
30 obstack.h: obstack.in.h $(top_builddir)/config.status
31 @NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
32 $(gl_V_at)$(SED_HEADER_STDOUT) \
33 -e 's|@''REPLACE_OBSTACK''@|$(REPLACE_OBSTACK)|g' \
34 -e 's|@''SMALL_PTRDIFF_T''@|$(SMALL_PTRDIFF_T)|g' \
35 $(srcdir)/obstack.in.h > $@-t
38 obstack.h: $(top_builddir)/config.status
41 MOSTLYCLEANFILES += obstack.h obstack.h-t
43 if GL_COND_OBJ_OBSTACK
44 lib_SOURCES += obstack.c