X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Falloca-opt;h=d4468de5cf52bc0d3ecacd1ab9b490454181f8b4;hb=e2de8c10bd15a92eff786f8f51d0a322fbc402ee;hp=4ae08b0dd8ef1ba4e6d9189351bbd94f15041cef;hpb=abac9b73490cd4d59a1e454c6ade5fd2073f2d2f;p=gnulib.git diff --git a/modules/alloca-opt b/modules/alloca-opt index 4ae08b0dd..d4468de5c 100644 --- a/modules/alloca-opt +++ b/modules/alloca-opt @@ -13,19 +13,21 @@ configure.ac: gl_FUNC_ALLOCA Makefile.am: -nodist_pkginclude_HEADERS += $(ALLOCA_H) -EXTRA_HEADERS += alloca.h - BUILT_SOURCES += $(ALLOCA_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -alloca.h: alloca.in.h +if GL_GENERATE_ALLOCA_H +alloca.h: alloca.in.h $(top_builddir)/config.status $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ cat $(srcdir)/alloca.in.h; \ } > $@-t && \ mv -f $@-t $@ +else +alloca.h: $(top_builddir)/config.status + rm -f $@ +endif MOSTLYCLEANFILES += alloca.h alloca.h-t Include: