diff options
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 ]) |