Mercurial > gnulib
annotate modules/stdlib @ 9434:b839560eec9f
Define the putenv substitute in <stdlib.h> rather than in <config.h>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 01 Nov 2007 13:23:33 +0100 |
parents | be88e4511678 |
children | c596ca4e89b4 |
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' \ | |
9434
b839560eec9f
Define the putenv substitute in <stdlib.h> rather than in <config.h>.
Bruno Haible <bruno@clisp.org>
parents:
9315
diff
changeset
|
32 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \ |
9190 | 33 -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
|
34 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \ |
9192 | 35 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \ |
8190 | 36 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \ |
9191
c7875dab3c3e
New module 'realloc-posix'.
Bruno Haible <bruno@clisp.org>
parents:
9190
diff
changeset
|
37 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \ |
8190 | 38 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \ |
9434
b839560eec9f
Define the putenv substitute in <stdlib.h> rather than in <config.h>.
Bruno Haible <bruno@clisp.org>
parents:
9315
diff
changeset
|
39 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \ |
8190 | 40 -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
|
41 < $(srcdir)/stdlib.in.h; \ |
8190 | 42 } > $@-t |
43 mv $@-t $@ | |
44 MOSTLYCLEANFILES += stdlib.h stdlib.h-t | |
45 | |
46 Include: | |
47 #include <stdlib.h> | |
48 | |
49 License: | |
9315
be88e4511678
Change license to LGPLv2+ on dummy, float, realloc, stdlib.
Simon Josefsson <simon@josefsson.org>
parents:
9263
diff
changeset
|
50 LGPLv2+ |
8190 | 51 |
52 Maintainer: | |
53 all |