diff options
author | Bruno Haible <bruno@clisp.org> | 2007-04-25 09:14:49 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-04-25 09:14:49 +0000 |
commit | 16332895663c60d815322830a027ec5f660e2639 (patch) | |
tree | 92e485da0c372891c0d6c6271e890f36bded2a6a /m4/fseeko.m4 | |
parent | 055a92f2c30ec10745e1aaf61a746461917695ab (diff) | |
download | gnulib-16332895663c60d815322830a027ec5f660e2639.tar.gz |
Make the combination of fflush and fseek/fseeko POSIX compliant.
Diffstat (limited to 'm4/fseeko.m4')
-rw-r--r-- | m4/fseeko.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index 86d42f40cc..fd3f019f7f 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -7,13 +7,18 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_FSEEKO], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + gl_CHECK_FSEEKO + if test $gl_cv_func_fseeko = no; then + HAVE_FSEEKO=0 + fi +]) + +AC_DEFUN([gl_CHECK_FSEEKO], +[ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko], [ AC_TRY_LINK([#include <stdio.h>], [fseeko (stdin, 0, 0);], [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no]) ]) - if test $gl_cv_func_fseeko = no; then - HAVE_FSEEKO=0 - fi ]) |