diff options
author | Bruno Haible <bruno@clisp.org> | 2011-05-08 11:25:18 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-06-16 00:06:03 +0200 |
commit | 342c3921744f00e8139322ed90fe826275b0739d (patch) | |
tree | a7537218e3dba5f71d99413cd330667556c6f341 | |
parent | 95a8ef959ffec07e349bc9da437d5333d7b00455 (diff) | |
download | gnulib-342c3921744f00e8139322ed90fe826275b0739d.tar.gz |
getcwd: Move AC_LIBOBJ invocations to module description.
* m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
invocations from here...
* modules/getcwd (configure.ac): ... to here.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | m4/getcwd.m4 | 6 | ||||
-rw-r--r-- | modules/getcwd | 4 |
3 files changed, 13 insertions, 4 deletions
@@ -1,5 +1,12 @@ 2011-05-08 Bruno Haible <bruno@clisp.org> + getcwd: Move AC_LIBOBJ invocations to module description. + * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD + invocations from here... + * modules/getcwd (configure.ac): ... to here. + +2011-05-08 Bruno Haible <bruno@clisp.org> + getcwd-lgpl: Move AC_LIBOBJ invocations to module description. * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from here... diff --git a/m4/getcwd.m4 b/m4/getcwd.m4 index 91a2e7e869..269fdd7c65 100644 --- a/m4/getcwd.m4 +++ b/m4/getcwd.m4 @@ -97,10 +97,8 @@ AC_DEFUN([gl_FUNC_GETCWD], case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in *yes,yes,no) ;; *) - dnl Full replacement, overrides LGPL replacement. - REPLACE_GETCWD=1 - AC_LIBOBJ([getcwd]) - gl_PREREQ_GETCWD;; + dnl Full replacement lib/getcwd.c, overrides LGPL replacement. + REPLACE_GETCWD=1;; esac ]) diff --git a/modules/getcwd b/modules/getcwd index cc80bfe882..6b764d21c8 100644 --- a/modules/getcwd +++ b/modules/getcwd @@ -20,6 +20,10 @@ strdup-posix [test $REPLACE_GETCWD = 1] configure.ac: gl_FUNC_GETCWD +if test $REPLACE_GETCWD = 1; then + AC_LIBOBJ([getcwd]) + gl_PREREQ_GETCWD +fi gl_MODULE_INDICATOR([getcwd]) gl_UNISTD_MODULE_INDICATOR([getcwd]) |