Mercurial > hg > octave-kai > gnulib-hg
changeset 15026:a5ed10e5034d
lseek: Move AC_LIBOBJ invocations to module description.
* m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
(gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
* modules/lseek (configure.ac): ... to here.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 21 May 2011 13:48:24 +0200 |
parents | 5cec5df6b606 |
children | 475b62531f9b |
files | ChangeLog m4/lseek.m4 modules/lseek |
diffstat | 3 files changed, 14 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible <bruno@clisp.org> + + lseek: Move AC_LIBOBJ invocations to module description. + * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro. + (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here... + * modules/lseek (configure.ac): ... to here. + 2011-05-21 Bruno Haible <bruno@clisp.org> linkat: Move AC_LIBOBJ invocations to module description.
--- a/m4/lseek.m4 +++ b/m4/lseek.m4 @@ -1,4 +1,4 @@ -# lseek.m4 serial 6 +# lseek.m4 serial 7 dnl Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -35,15 +35,8 @@ [gl_cv_func_lseek_pipe=yes], [gl_cv_func_lseek_pipe=no]) fi]) if test $gl_cv_func_lseek_pipe = no; then - gl_REPLACE_LSEEK + REPLACE_LSEEK=1 + AC_DEFINE([LSEEK_PIPE_BROKEN], [1], + [Define to 1 if lseek does not detect pipes.]) fi ]) - -AC_DEFUN([gl_REPLACE_LSEEK], -[ - AC_LIBOBJ([lseek]) - AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) - REPLACE_LSEEK=1 - AC_DEFINE([LSEEK_PIPE_BROKEN], [1], - [Define to 1 if lseek does not detect pipes.]) -])