Do not double-close python init file
[elliptics.git] / config / ac_check_largefile.m4
blob10a94da0ee1ba05d2077805fdf83ba934afa4605
1 AC_DEFUN([AC_CHECK_LARGEFILE],[
2 AC_MSG_CHECKING([whether O_LARGEFILE is supported])
3 AC_TRY_LINK([#include <fcntl.h>
4         #include <sys/stat.h>],
5         [int fd = open(".", O_RDONLY | O_LARGEFILE);],
6         [ac_largefile_supported=yes],
7         [ac_largefile_supported=no])
9 AC_MSG_RESULT([$ac_largefile_supported])
11 if test x$ac_largefile_supported = xyes; then
12         AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1, [Define this if O_LARGEFILE is supported])