(atexit): Define using a prototype.
[gnulib.git] / modules / alloca
index b7a2381..5719b4b 100644 (file)
@@ -13,18 +13,19 @@ 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
-