X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Ffclose.m4;h=17acf1547a341c3cf3cdb8387cd3fe7cc0cd26ea;hb=864eeee51daf303bb48df9fcd64b59ea96b51c0e;hp=278859c6c29ecaaa45eb3dba12f82294b0a9fdda;hpb=5d9f4218b61b9c279b32a6572f21f260b38a05e8;p=pspp diff --git a/m4/fclose.m4 b/m4/fclose.m4 index 278859c6c2..17acf1547a 100644 --- a/m4/fclose.m4 +++ b/m4/fclose.m4 @@ -1,4 +1,4 @@ -# fclose.m4 serial 2 +# fclose.m4 serial 3 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,6 +6,12 @@ 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 + ]) ]) AC_DEFUN([gl_REPLACE_FCLOSE],