[Box Backup-commit] COMMIT r2484 - box/trunk/infrastructure/m4
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Tue, 31 Mar 2009 13:12:35 +0100 (BST)
Author: chris
Date: 2009-03-31 13:12:35 +0100 (Tue, 31 Mar 2009)
New Revision: 2484
Modified:
box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4
Log:
Assume that lseek does not take a "dummy parameter" when cross-compiling,
as this is only relevent for intercept tests anyway, and was probably
fixed by casting the offset parameter to off_t anyway.
Modified: box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4
===================================================================
--- box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4 2009-03-31 12:11:24 UTC (rev 2483)
+++ box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4 2009-03-31 12:12:35 UTC (rev 2484)
@@ -16,7 +16,7 @@
AC_REQUIRE([AX_FUNC_SYSCALL])dnl
if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param],
- [AC_RUN_IFELSE(
+ [AC_TRY_RUN(
[AC_LANG_PROGRAM([[
$ac_includes_default
#include <fcntl.h>
@@ -50,7 +50,9 @@
unlink("lseektest");
return res!=-1;
]])],
- [box_cv_have_lseek_dummy_param=yes], [box_cv_have_lseek_dummy_param=no]
+ [box_cv_have_lseek_dummy_param=yes],
+ [box_cv_have_lseek_dummy_param=no],
+ [box_cv_have_lseek_dummy_param=no # assume not for cross-compiling]
)])
if test "x$box_cv_have_lseek_dummy_param" = "xyes"; then
AC_DEFINE([HAVE_LSEEK_DUMMY_PARAM], 1,