summaryrefslogtreecommitdiff
path: root/m4/fclose.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-05-07 13:05:51 +0200
committerBruno Haible <bruno@clisp.org>2011-05-07 13:05:51 +0200
commitc1a8825410ad58e8344bdb202b2559935179e513 (patch)
tree57d4e134d5a93328cae7bdb67a57a05678b8e0fa /m4/fclose.m4
parent8f3cd38b6c08109ec9edea0e7712e9a7a920a2d8 (diff)
downloadgnulib-c1a8825410ad58e8344bdb202b2559935179e513.tar.gz
fclose: Simplify autoconf macro.
* m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is defined.
Diffstat (limited to 'm4/fclose.m4')
-rw-r--r--m4/fclose.m412
1 files changed, 5 insertions, 7 deletions
diff --git a/m4/fclose.m4 b/m4/fclose.m4
index 17acf1547a..349b5f14c4 100644
--- a/m4/fclose.m4
+++ b/m4/fclose.m4
@@ -1,4 +1,4 @@
-# fclose.m4 serial 3
+# fclose.m4 serial 4
dnl Copyright (C) 2008-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,
@@ -6,12 +6,10 @@ dnl with or without modifications, as long as this notice is preserved.
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
- ])
+ gl_FUNC_FFLUSH_STDIN
+ if test $gl_cv_func_fflush_stdin = no; then
+ gl_REPLACE_FCLOSE
+ fi
])
AC_DEFUN([gl_REPLACE_FCLOSE],