From f2782f0a68bf9883160a96300cca9edeb5bb0687 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 29 Sep 2004 22:10:44 +0000 Subject: [PATCH] New modules 'alloca-opt'. --- ChangeLog | 8 ++++++++ MODULES.html.sh | 1 + modules/alloca-opt | 34 ++++++++++++++++++++++++++++++++++ modules/allocsa | 2 +- modules/setenv | 2 +- modules/vasnprintf | 2 +- 6 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 modules/alloca-opt diff --git a/ChangeLog b/ChangeLog index cce3fc0ea1..afaca23a6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-09-29 Bruno Haible + + * modules/alloca-opt: New file, derived from modules/alloca. + * modules/allocsa: Depend on alloca-opt instead of alloca. + * modules/setenv: Likewise. + * modules/vasnprintf: Likewise. + * MODULES.html.sh: Add alloca-opt. + 2004-09-28 Paul Eggert * modules/dummy: Change license to LGPL. diff --git a/MODULES.html.sh b/MODULES.html.sh index f3d763adf5..d03092a597 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -1464,6 +1464,7 @@ func_all_modules () func_module xalloc func_module xalloc-die func_module alloca + func_module alloca-opt func_module allocsa func_module xallocsa func_end_table diff --git a/modules/alloca-opt b/modules/alloca-opt new file mode 100644 index 0000000000..efef0a6f0a --- /dev/null +++ b/modules/alloca-opt @@ -0,0 +1,34 @@ +Description: +Memory allocation on the stack, as an optional optimization. +It allows using the alloca() macro if and only if the autoconf tests define +HAVE_ALLOCA. + +Files: +lib/alloca_.h +m4/alloca.m4 + +Depends-on: + +configure.ac: +gl_FUNC_ALLOCA + +Makefile.am: +BUILT_SOURCES += $(ALLOCA_H) +EXTRA_DIST += alloca_.h + +# We need the following in order to create an when the system +# doesn't have one that works with the given compiler. +all-local $(lib_OBJECTS): $(ALLOCA_H) +alloca.h: alloca_.h + cp $(srcdir)/alloca_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t + +Include: +#include + +License: +LGPL + +Maintainer: +bug-gnulib@gnu.org diff --git a/modules/allocsa b/modules/allocsa index db4920dc1f..55fdbb7ed7 100644 --- a/modules/allocsa +++ b/modules/allocsa @@ -10,7 +10,7 @@ m4/longlong.m4 m4/longdouble.m4 Depends-on: -alloca +alloca-opt configure.ac: gl_ALLOCSA diff --git a/modules/setenv b/modules/setenv index bcb2edf869..22db8d4efb 100644 --- a/modules/setenv +++ b/modules/setenv @@ -10,7 +10,7 @@ m4/setenv.m4 Depends-on: allocsa -alloca +alloca-opt configure.ac: gt_FUNC_SETENV diff --git a/modules/vasnprintf b/modules/vasnprintf index 003626407f..6d21bed39f 100644 --- a/modules/vasnprintf +++ b/modules/vasnprintf @@ -21,7 +21,7 @@ m4/eoverflow.m4 m4/vasnprintf.m4 Depends-on: -alloca +alloca-opt xsize configure.ac: -- 2.30.2