summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 286b1d8..7c31e2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,4 +59,31 @@ if test "$no_debug_code" = true; then
59 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code]) 59 AC_DEFINE(STRIP_DEBUG_CODE,1,[Strip debug reporting code])
60fi 60fi
61 61
62# check for large file support
63AC_SYS_LARGEFILE
64LFS_CFLAGS=''
65if test "$enable_largefile" != no; then
66 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
67 LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
68 else
69 AC_MSG_CHECKING(for native large file support)
70 AC_RUN_IFELSE([#include <unistd.h>
71 int main (int argc, char **argv)
72 {
73 exit(!(sizeof(off_t) == 8));
74 }],
75 [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
76 AC_MSG_RESULT(yes)],
77 [AC_MSG_RESULT(no)])
78 fi
79 if test "$ac_cv_sys_large_files" != 'no'; then
80 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1"
81 fi
82 AC_FUNC_FSEEKO
83 if test "$ac_cv_sys_largefile_source" != 'no'; then
84 LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1"
85 fi
86fi
87AC_SUBST(LFS_CFLAGS)
88
62AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile libiphone-1.0.pc) 89AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile libiphone-1.0.pc)