~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to m4/fallocate.m4

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN([ARIA2_CHECK_FALLOCATE],
 
2
[
 
3
AC_MSG_CHECKING([for fallocate])
 
4
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
5
#include <fcntl.h>
 
6
]],
 
7
[[
 
8
fallocate(2, 0, 0, 4096);
 
9
]])],
 
10
[have_fallocate=yes],
 
11
[have_fallocate=no])
 
12
AC_MSG_RESULT([$have_fallocate])
 
13
if test "x$have_fallocate" = "xyes"; then
 
14
  AC_DEFINE([HAVE_FALLOCATE], [1],
 
15
            [Define to 1 if you have the `fallocate' function.])
 
16
fi
 
17
])