17 BUILT_SOURCES += stdlib.h
19 # We need the following in order to create <stdlib.h> when the system
20 # doesn't have one that works with the given compiler.
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
24 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \
25 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
26 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
27 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
28 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
29 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
30 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
31 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
32 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
33 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
34 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
35 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
36 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
37 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
38 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
39 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
40 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
41 < $(srcdir)/stdlib.in.h; \
44 MOSTLYCLEANFILES += stdlib.h stdlib.h-t