Changeset 7098 for trunk/configure.ac


Ignore:
Timestamp:
Nov 12, 2008, 3:59:30 AM (14 years ago)
Author:
charles
Message:

(libT) better testing for fallocate() on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7097 r7098  
    5050AC_HEADER_STDC
    5151AC_HEADER_TIME
    52 AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename daemon strcasecmp localtime_r fallocate posix_fallocate])
     52
     53AC_MSG_CHECKING([for fallocate])
     54AC_TRY_LINK([#include <linux/falloc.h>],
     55            [return fallocate(-1,0,0,0);],
     56            [AC_DEFINE([HAVE_FALLOCATE],[1],[Defined if fallocate() exists])
     57             AC_MSG_RESULT([yes])],
     58            [AC_MSG_RESULT([no])])
     59AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename daemon strcasecmp localtime_r posix_fallocate])
    5360AC_PROG_INSTALL
    5461AC_PROG_MAKE_SET
Note: See TracChangeset for help on using the changeset viewer.