* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
[gnulib.git] / modules / stdlib
1 Description:
2 A GNU-like <stdlib.h>.
3
4 Files:
5 lib/stdlib_.h
6 m4/stdlib_h.m4
7
8 Depends-on:
9 absolute-header
10 link-warning
11 unistd
12
13 configure.ac:
14 gl_STDLIB_H
15
16 Makefile.am:
17 BUILT_SOURCES += stdlib.h
18
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.
21 stdlib.h: stdlib_.h
22         rm -f $@-t $@
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_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
27               -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
28               -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
29               -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
30               -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
31               -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
32               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
33               < $(srcdir)/stdlib_.h; \
34         } > $@-t
35         mv $@-t $@
36 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
37
38 Include:
39 #include <stdlib.h>
40
41 License:
42 LGPL
43
44 Maintainer:
45 all