changeset 5273:0e6f016e3192

New modules 'alloca-opt'.
author Bruno Haible <bruno@clisp.org>
date Wed, 29 Sep 2004 22:10:44 +0000
parents 533332af517b
children d58d2dac4032
files ChangeLog MODULES.html.sh modules/alloca-opt modules/allocsa modules/setenv modules/vasnprintf
diffstat 6 files changed, 46 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Sep 29 20:14:02 2004 +0000
+++ b/ChangeLog	Wed Sep 29 22:10:44 2004 +0000
@@ -1,3 +1,11 @@
+2004-09-29  Bruno Haible  <bruno@clisp.org>
+
+	* 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  <eggert@cs.ucla.edu>
 
 	* modules/dummy: Change license to LGPL.
--- a/MODULES.html.sh	Wed Sep 29 20:14:02 2004 +0000
+++ b/MODULES.html.sh	Wed Sep 29 22:10:44 2004 +0000
@@ -1464,6 +1464,7 @@
   func_module xalloc
   func_module xalloc-die
   func_module alloca
+  func_module alloca-opt
   func_module allocsa
   func_module xallocsa
   func_end_table
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/alloca-opt	Wed Sep 29 22:10:44 2004 +0000
@@ -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 <alloca.h> 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 <alloca.h>
+
+License:
+LGPL
+
+Maintainer:
+bug-gnulib@gnu.org
--- a/modules/allocsa	Wed Sep 29 20:14:02 2004 +0000
+++ b/modules/allocsa	Wed Sep 29 22:10:44 2004 +0000
@@ -10,7 +10,7 @@
 m4/longdouble.m4
 
 Depends-on:
-alloca
+alloca-opt
 
 configure.ac:
 gl_ALLOCSA
--- a/modules/setenv	Wed Sep 29 20:14:02 2004 +0000
+++ b/modules/setenv	Wed Sep 29 22:10:44 2004 +0000
@@ -10,7 +10,7 @@
 
 Depends-on:
 allocsa
-alloca
+alloca-opt
 
 configure.ac:
 gt_FUNC_SETENV
--- a/modules/vasnprintf	Wed Sep 29 20:14:02 2004 +0000
+++ b/modules/vasnprintf	Wed Sep 29 22:10:44 2004 +0000
@@ -21,7 +21,7 @@
 m4/vasnprintf.m4
 
 Depends-on:
-alloca
+alloca-opt
 xsize
 
 configure.ac: