diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:05:14 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-04-04 14:05:14 +0000 |
commit | 03816c44be7eeb2878b13fe6f16336b76fbedb30 (patch) | |
tree | 638d6b45e0393ddcb8329b0645a9a17de491c9a5 | |
parent | 118077bd7b0758db852e6e4c5f973255e817668f (diff) |
Hopefully fix another autoconf problem caused by attempt to support
cross-compiling.
-rw-r--r-- | configure.ac | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index a6e8c812..e171d4ad 100644 --- a/configure.ac +++ b/configure.ac @@ -241,14 +241,20 @@ AC_CHECK_DECLS([XATTR_NOFOLLOW],,, [[#include <sys/xattr.h>]]) ## 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_TRY_RUN([AC_LANG_PROGRAM([[$ac_includes_default]], [[ +AC_CACHE_CHECK([if we have large file support enabled], + [box_cv_have_large_file_support], + [AC_TRY_RUN([ + $ac_includes_default + int main() + { 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=no # safe for cross-compile] - )]) + ) + ]) if test "x$box_cv_have_large_file_support" = "xyes"; then AC_DEFINE([HAVE_LARGE_FILE_SUPPORT], [1], |