forked from aria2/aria2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2010-07-27 Tatsuhiro Tsujikawa <[email protected]>
Rewritten check for fallocate using AC_COMPILE_IFELSE. * configure.ac * m4/fallocate.m4
- Loading branch information
1 parent
253c0ba
commit 27e9687
Showing
10 changed files
with
79 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2010-07-27 Tatsuhiro Tsujikawa <[email protected]> | ||
|
||
Rewritten check for fallocate using AC_COMPILE_IFELSE. | ||
* configure.ac | ||
* m4/fallocate.m4 | ||
|
||
2010-07-26 Tatsuhiro Tsujikawa <[email protected]> | ||
|
||
Fixed the bug that HAVE_SOME_FALLOCATE gets undefined if fallocate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
AC_DEFUN([ARIA2_CHECK_FALLOCATE], | ||
[ | ||
AC_MSG_CHECKING([for fallocate]) | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
#include <fcntl.h> | ||
]], | ||
[[ | ||
fallocate(2, 0, 0, 4096); | ||
]])], | ||
[have_fallocate=yes], | ||
[have_fallocate=no]) | ||
AC_MSG_RESULT([$have_fallocate]) | ||
if test "x$have_fallocate" = "xyes"; then | ||
AC_DEFINE([HAVE_FALLOCATE], [1], | ||
[Define to 1 if you have the `fallocate' function.]) | ||
fi | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters