mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-13 02:42:48 +03:00
fclose, fflush: Respect rules for use of AC_LIBOBJ.
* m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE. * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and gl_REPLACE_FCLOSE here. * modules/fflush (Depends-on): Remove fclose. * doc/posix-functions/fclose.texi: Mention module 'fflush' only in combination with module 'fclose'.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
|||||||
|
2011-05-05 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
fclose, fflush: Respect rules for use of AC_LIBOBJ.
|
||||||
|
* m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
|
||||||
|
* m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
|
||||||
|
gl_REPLACE_FCLOSE here.
|
||||||
|
* modules/fflush (Depends-on): Remove fclose.
|
||||||
|
* doc/posix-functions/fclose.texi: Mention module 'fflush' only in
|
||||||
|
combination with module 'fclose'.
|
||||||
|
|
||||||
2011-05-05 Bruno Haible <bruno@clisp.org>
|
2011-05-05 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
fflush, fseeko: Respect rules for use of AC_LIBOBJ.
|
fflush, fseeko: Respect rules for use of AC_LIBOBJ.
|
||||||
|
@@ -6,7 +6,7 @@ POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/funct
|
|||||||
|
|
||||||
Gnulib module: fclose, fflush
|
Gnulib module: fclose, fflush
|
||||||
|
|
||||||
Portability problems fixed by Gnulib module @code{fflush}:
|
Portability problems fixed by Gnulib module @code{fclose} together with module @code{fflush}:
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
On some platforms, this function fails to set the file position of a
|
On some platforms, this function fails to set the file position of a
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# fclose.m4 serial 2
|
# fclose.m4 serial 3
|
||||||
dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
|
dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
|
||||||
dnl This file is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -6,6 +6,12 @@ dnl with or without modifications, as long as this notice is preserved.
|
|||||||
|
|
||||||
AC_DEFUN([gl_FUNC_FCLOSE],
|
AC_DEFUN([gl_FUNC_FCLOSE],
|
||||||
[
|
[
|
||||||
|
m4_ifdef([gl_FUNC_FFLUSH_STDIN], [
|
||||||
|
gl_FUNC_FFLUSH_STDIN
|
||||||
|
if test $gl_cv_func_fflush_stdin = no; then
|
||||||
|
gl_REPLACE_FCLOSE
|
||||||
|
fi
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN([gl_REPLACE_FCLOSE],
|
AC_DEFUN([gl_REPLACE_FCLOSE],
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# fflush.m4 serial 10
|
# fflush.m4 serial 11
|
||||||
|
|
||||||
# Copyright (C) 2007-2011 Free Software Foundation, Inc.
|
# Copyright (C) 2007-2011 Free Software Foundation, Inc.
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
@@ -15,7 +15,6 @@ AC_DEFUN([gl_FUNC_FFLUSH],
|
|||||||
gl_FUNC_FFLUSH_STDIN
|
gl_FUNC_FFLUSH_STDIN
|
||||||
if test $gl_cv_func_fflush_stdin = no; then
|
if test $gl_cv_func_fflush_stdin = no; then
|
||||||
gl_REPLACE_FFLUSH
|
gl_REPLACE_FFLUSH
|
||||||
gl_REPLACE_FCLOSE
|
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@@ -8,7 +8,6 @@ m4/fflush.m4
|
|||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
stdio
|
stdio
|
||||||
fclose
|
|
||||||
fpurge [test $REPLACE_FFLUSH = 1]
|
fpurge [test $REPLACE_FFLUSH = 1]
|
||||||
ftello [test $REPLACE_FFLUSH = 1]
|
ftello [test $REPLACE_FFLUSH = 1]
|
||||||
freading [test $REPLACE_FFLUSH = 1]
|
freading [test $REPLACE_FFLUSH = 1]
|
||||||
|
Reference in New Issue
Block a user