[Box Backup-commit] COMMIT r2483 - box/trunk
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Tue, 31 Mar 2009 13:11:25 +0100 (BST)
Author: chris
Date: 2009-03-31 13:11:24 +0100 (Tue, 31 Mar 2009)
New Revision: 2483
Modified:
box/trunk/configure.ac
Log:
Remove unused check for unaligned accesses, fails on cross-compiling.
Disable large file support when cross-compiling, as the check cannot
run in this environment.
Modified: box/trunk/configure.ac
===================================================================
--- box/trunk/configure.ac 2009-03-29 14:08:12 UTC (rev 2482)
+++ box/trunk/configure.ac 2009-03-31 12:11:24 UTC (rev 2483)
@@ -160,7 +160,6 @@
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_BIGENDIAN
-AX_CHECK_NONALIGNED_ACCESS
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
@@ -243,10 +242,12 @@
## Check for large file support active. AC_SYS_LARGEFILE has already worked
## out how to enable it if necessary, we just use this to report to the user
AC_CACHE_CHECK([if we have large file support enabled], [box_cv_have_large_file_support],
- [AC_RUN_IFELSE([AC_LANG_PROGRAM([[$ac_includes_default]], [[
+ [AC_TRY_RUN([AC_LANG_PROGRAM([[$ac_includes_default]], [[
return sizeof(off_t)==4;
]])],
- [box_cv_have_large_file_support=yes], [box_cv_have_large_file_support=no]
+ [box_cv_have_large_file_support=yes],
+ [box_cv_have_large_file_support=no],
+ [box_cv_have_large_file_support=no # safe for cross-compile]
)])
if test "x$box_cv_have_large_file_support" = "xyes"; then