9
9
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
11
12
AC_CACHE_CHECK([whether lseek detects pipes], [gl_cv_func_lseek_pipe],
12
13
[if test $cross_compiling = no; then
13
14
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
14
15
#include <sys/types.h> /* for off_t */
15
16
#include <stdio.h> /* for SEEK_CUR */
17
23
/* Exit with success only if stdin is seekable. */
18
24
return lseek (0, (off_t)0, SEEK_CUR) < 0;