Mercurial > gnulib
annotate modules/stdlib @ 9263:bb62a6456893
Rename stdlib_.h to stdlib.in.h.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 02 Oct 2007 00:31:18 +0200 |
parents | 1050562322a4 |
children | be88e4511678 |
rev | line source |
---|---|
8190 | 1 Description: |
2 A GNU-like <stdlib.h>. | |
3 | |
4 Files: | |
9263
bb62a6456893
Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9192
diff
changeset
|
5 lib/stdlib.in.h |
8190 | 6 m4/stdlib_h.m4 |
7 | |
8 Depends-on: | |
9 absolute-header | |
10 link-warning | |
8459
530f0ba2b795
Ensure we get the mkstemp() declaration. On MacOS X, it comes from <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents:
8198
diff
changeset
|
11 unistd |
8190 | 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. | |
9263
bb62a6456893
Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9192
diff
changeset
|
21 stdlib.h: stdlib.in.h |
8190 | 22 rm -f $@-t $@ |
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ | |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8819
diff
changeset
|
24 sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ |
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8819
diff
changeset
|
25 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \ |
9192 | 26 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \ |
9191
c7875dab3c3e
New module 'realloc-posix'.
Bruno Haible <bruno@clisp.org>
parents:
9190
diff
changeset
|
27 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \ |
9190 | 28 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \ |
8198
d84ab7c183f4
getsubopt.h is replaced with <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
8190
diff
changeset
|
29 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \ |
8190 | 30 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \ |
31 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \ | |
9190 | 32 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \ |
8198
d84ab7c183f4
getsubopt.h is replaced with <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents:
8190
diff
changeset
|
33 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ |
9192 | 34 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ |
8190 | 35 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ |
9191
c7875dab3c3e
New module 'realloc-posix'.
Bruno Haible <bruno@clisp.org>
parents:
9190
diff
changeset
|
36 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ |
8190 | 37 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ |
38 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ | |
9263
bb62a6456893
Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9192
diff
changeset
|
39 < $(srcdir)/stdlib.in.h; \ |
8190 | 40 } > $@-t |
41 mv $@-t $@ | |
42 MOSTLYCLEANFILES += stdlib.h stdlib.h-t | |
43 | |
44 Include: | |
45 #include <stdlib.h> | |
46 | |
47 License: | |
48 LGPL | |
49 | |
50 Maintainer: | |
51 all |