stdbit: port to theoretical platforms
[gnulib.git] / modules / alloca-opt
blob0448b5da4d606f6c534354b1d58de546a68d28be
1 Description:
2 Memory allocation on the stack, as an optional optimization.
3 It allows using the alloca() macro if and only if the autoconf tests define
4 HAVE_ALLOCA.
6 Files:
7 lib/alloca.in.h
8 m4/alloca.m4
10 Depends-on:
11 gen-header
13 configure.ac:
14 gl_FUNC_ALLOCA
15 gl_CONDITIONAL_HEADER([alloca.h])
16 AC_PROG_MKDIR_P
18 Makefile.am:
19 BUILT_SOURCES += $(ALLOCA_H)
21 # We need the following in order to create <alloca.h> when the system
22 # doesn't have one that works with the given compiler.
23 if GL_GENERATE_ALLOCA_H
24 alloca.h: alloca.in.h $(top_builddir)/config.status
25 @NMD@   $(AM_V_GEN)$(MKDIR_P) '%reldir%'
26         $(gl_V_at)$(SED_HEADER_STDOUT) \
27           -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \
28           $(srcdir)/alloca.in.h > $@-t
29         $(AM_V_at)mv $@-t $@
30 else
31 alloca.h: $(top_builddir)/config.status
32         rm -f $@
33 endif
34 MOSTLYCLEANFILES += alloca.h alloca.h-t
36 Include:
37 <alloca.h>
39 License:
40 LGPLv2+
42 Maintainer:
43 bug-gnulib@gnu.org