]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(EXTRA_DIST): Add alloca_.h.
authorJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 19:58:26 +0000 (19:58 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 6 Jun 2003 19:58:26 +0000 (19:58 +0000)
(all-local $(lib_OBJECTS)): Depend on $(ALLOCA_H).
(alloca.h): New rule.

lib/Makefile.am

index ffee8cf03a36541d064320d21a4e3ac447abe0cf..fb1fc28d5e18dce028f0e63c0a94de05cdd21fa5 100644 (file)
@@ -184,11 +184,19 @@ charset.alias: config.charset
 # Create stdbool.h on systems that lack a working one.
 all-local $(lib_OBJECTS): $(STDBOOL_H)
 stdbool.h: stdbool.hin
-       sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool.hin > t-$@
-       mv t-$@ $@
+       sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool.hin > $@t
+       mv $@t $@
 MOSTLYCLEANFILES += stdbool.h
 EXTRA_DIST += stdbool.hin
 
+EXTRA_DIST += alloca_.h
+# 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 $@
+
 SUFFIXES = .sed .sin
 .sin.sed:
        sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@