Merge from coreutils.
[gnulib.git] / modules / alloca
index a18f3f5..f93d5e3 100644 (file)
@@ -7,21 +7,24 @@ lib/alloca.c
 m4/alloca.m4
 
 Depends-on:
-xalloc
 
 configure.ac:
 gl_FUNC_ALLOCA
 
 Makefile.am:
+BUILT_SOURCES += $(ALLOCA_H)
 EXTRA_DIST += alloca_.h
 
-# The following is needed in order to create an <alloca.h> when the system
+# 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@
+all-local $(lib_OBJECTS): $(ALLOCA_H)
 alloca.h: alloca_.h
-       cp $(srcdir)/alloca_.h alloca.h
-MOSTLYCLEANFILES += alloca.h
+       cp $(srcdir)/alloca_.h $@-t
+       mv $@-t $@
+MOSTLYCLEANFILES += alloca.h alloca.h-t
 
 Include:
 #include <alloca.h>
 
+Maintainer:
+bug-gnulib@gnu.org