Mercurial > hg > octave-jordi > gnulib-hg
changeset 15097:93a1703f75df
stat: Move AC_LIBOBJ invocations to module description.
* m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
(gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
here...
* modules/stat (configure.ac): ... to here.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 22 May 2011 00:34:48 +0200 |
parents | a81da81ea7f2 |
children | 55bafac365c8 |
files | ChangeLog m4/stat.m4 modules/stat |
diffstat | 3 files changed, 20 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-05-21 Bruno Haible <bruno@clisp.org> + stat: Move AC_LIBOBJ invocations to module description. + * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT. + (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from + here... + * modules/stat (configure.ac): ... to here. + +2011-05-21 Bruno Haible <bruno@clisp.org> + sleep: Move AC_LIBOBJ invocations to module description. * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here... * modules/sleep (configure.ac): ... to here.
--- a/m4/stat.m4 +++ b/m4/stat.m4 @@ -1,4 +1,4 @@ -# serial 7 +# serial 8 # Copyright (C) 2009-2011 Free Software Foundation, Inc. # @@ -58,9 +58,11 @@ AC_DEFINE([REPLACE_FUNC_STAT_FILE], [1], [Define to 1 if stat needs help when passed a file name with a trailing slash]);; esac - if test $REPLACE_STAT = 1; then - AC_LIBOBJ([stat]) - dnl Prerequisites of lib/stat.c. - AC_REQUIRE([AC_C_INLINE]) - fi ]) + +# Prerequisites of lib/stat.c. +AC_DEFUN([gl_PREREQ_STAT], +[ + AC_REQUIRE([AC_C_INLINE]) + : +])