3 # See if we need to emulate a missing ftruncate function using fcntl or chsize.
5 AC_DEFUN(jm_FUNC_FTRUNCATE,
7 AC_CHECK_FUNCS(ftruncate, , [ftruncate_missing=yes])
9 if test "$ftruncate_missing" = yes; then
10 AC_CHECK_HEADERS([unistd.h])
11 AC_CHECK_FUNCS([chsize])