Mercurial > hg > octave-shane > gnulib-hg
annotate modules/setenv @ 17582:630472a8cafd
gettimeofday: port recent C++ fix to Emacs
Without this further patch, Emacs won't build due to
the portcheck failing. Also, this simplifies the patch a bit.
* lib/time.in.h (localtime, gmtime): Don't replace unless
GNULIB_GETTIMEOFDAY. Treat them more like mktime.
* lib/time.in.h (localtime, gmtime):
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
* modules/time (time.h):
Don't worry about about the possibility of localtime and gmtime
being absent; they're present in all C libraries we know about.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
Don't assume sys_time is present and has been initialized.
Instead, use a hack that should work even if it hasn't been.
Don't use a portcheck for gmtime or localtime; this supports
the hack.
* modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 17 Dec 2013 12:38:54 -0800 |
parents | 9a04eac49081 |
children |
rev | line source |
---|---|
4110 | 1 Description: |
4172 | 2 setenv() function: set an environment variable. |
4110 | 3 |
4 Files: | |
5 lib/setenv.c | |
6 m4/setenv.m4 | |
7 | |
8 Depends-on: | |
9545
c596ca4e89b4
Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents:
8948
diff
changeset
|
9 stdlib |
14683
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
13725
diff
changeset
|
10 malloca [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
13725
diff
changeset
|
11 alloca-opt [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
13725
diff
changeset
|
12 unistd [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
13725
diff
changeset
|
13 environ [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1] |
4110 | 14 |
15 configure.ac: | |
8306
e3b1cbd15bc4
Split gt_FUNC_SETENV into gl_FUNC_SETENV and gl_FUNC_UNSETENV.
Bruno Haible <bruno@clisp.org>
parents:
7497
diff
changeset
|
16 gl_FUNC_SETENV |
15089
9a04eac49081
setenv: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
17 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then |
9a04eac49081
setenv: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
18 AC_LIBOBJ([setenv]) |
9a04eac49081
setenv: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
19 fi |
9545
c596ca4e89b4
Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents:
8948
diff
changeset
|
20 gl_STDLIB_MODULE_INDICATOR([setenv]) |
4110 | 21 |
22 Makefile.am: | |
23 | |
24 Include: | |
9545
c596ca4e89b4
Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents:
8948
diff
changeset
|
25 <stdlib.h> |
4110 | 26 |
5251
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
5063
diff
changeset
|
27 License: |
13725 | 28 LGPLv2+ |
5251
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
5063
diff
changeset
|
29 |
4197 | 30 Maintainer: |
31 Bruno Haible | |
32 |