New modules 'alloca-opt'.
authorBruno Haible <bruno@clisp.org>
Wed, 29 Sep 2004 22:10:44 +0000 (22:10 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 29 Sep 2004 22:10:44 +0000 (22:10 +0000)
ChangeLog
MODULES.html.sh
modules/alloca-opt [new file with mode: 0644]
modules/allocsa
modules/setenv
modules/vasnprintf

index cce3fc0ea108664de5dbea0c041babb73f9f3aec..afaca23a6fbd85c61d63fc184437ee964f5cd582 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index f3d763adf58ae7d6a3ab554c7b5f6e14697018b2..d03092a59799a29f9aef9edd677763b089158d91 100755 (executable)
@@ -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 (file)
index 0000000..efef0a6
--- /dev/null
@@ -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
index db4920dc1fd5cb1605c8f336f8fe022dc5d587d2..55fdbb7ed7aa4e356d41742477e5ec0d54c0d152 100644 (file)
@@ -10,7 +10,7 @@ m4/longlong.m4
 m4/longdouble.m4
 
 Depends-on:
-alloca
+alloca-opt
 
 configure.ac:
 gl_ALLOCSA
index bcb2edf869b0a452841c3c5c5dba141e6b336827..22db8d4efb313b52795ee8342cfc59e82c49e318 100644 (file)
@@ -10,7 +10,7 @@ m4/setenv.m4
 
 Depends-on:
 allocsa
-alloca
+alloca-opt
 
 configure.ac:
 gt_FUNC_SETENV
index 003626407ff735d9c163c63edd25e6d209d4a608..6d21bed39f154c24fb68e6d75db115eb0c044673 100644 (file)
@@ -21,7 +21,7 @@ m4/eoverflow.m4
 m4/vasnprintf.m4
 
 Depends-on:
-alloca
+alloca-opt
 xsize
 
 configure.ac: