From ab2312391abb678d26ab1957951c83ff715fb407 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 31 Mar 2009 12:12:35 +0000 Subject: 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. --- infrastructure/m4/ax_check_syscall_lseek.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'infrastructure/m4') diff --git a/infrastructure/m4/ax_check_syscall_lseek.m4 b/infrastructure/m4/ax_check_syscall_lseek.m4 index 7d22c4b0..6c26e025 100644 --- a/infrastructure/m4/ax_check_syscall_lseek.m4 +++ b/infrastructure/m4/ax_check_syscall_lseek.m4 @@ -16,7 +16,7 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ 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 @@ -50,7 +50,9 @@ AC_DEFUN([AX_CHECK_SYSCALL_LSEEK], [ 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, -- cgit v1.2.3