summaryrefslogtreecommitdiff
path: root/modules/unsetenv
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-22 00:06:38 +0200
committerBruno Haible <bruno@clisp.org>2011-06-16 00:06:45 +0200
commit5e0f867779fe6edb178f401fcf4175cab2a26cea (patch)
tree8de65e2642fb27006f3237953870347b8b9a55cf /modules/unsetenv
parentc03434c92e62b43c4101d098ab33d54e89c8b39a (diff)
downloadgnulib-5e0f867779fe6edb178f401fcf4175cab2a26cea.tar.gz
unsetenv: Move AC_LIBOBJ invocations to module description.
* m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ and gl_PREREQ_UNSETENV invocations from here... * modules/unsetenv (configure.ac): ... to here. (Depends-on): Update.
Diffstat (limited to 'modules/unsetenv')
-rw-r--r--modules/unsetenv8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/unsetenv b/modules/unsetenv
index 26662b349b..2be6e46d73 100644
--- a/modules/unsetenv
+++ b/modules/unsetenv
@@ -7,11 +7,15 @@ m4/setenv.m4
Depends-on:
stdlib
-unistd [test $ac_cv_func_unsetenv = no || test $REPLACE_UNSETENV = 1]
-environ [test $ac_cv_func_unsetenv = no || test $REPLACE_UNSETENV = 1]
+unistd [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
+environ [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1]
configure.ac:
gl_FUNC_UNSETENV
+if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
+ AC_LIBOBJ([unsetenv])
+ gl_PREREQ_UNSETENV
+fi
gl_STDLIB_MODULE_INDICATOR([unsetenv])
Makefile.am: