summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ec7e11a..a91d9f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,4 +68,32 @@ fi
68AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter") 68AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter")
69AC_SUBST(GLOBAL_CFLAGS) 69AC_SUBST(GLOBAL_CFLAGS)
70 70
71# check for large file support
72AC_SYS_LARGEFILE
73LFS_CFLAGS=''
74if test "$enable_largefile" != no; then
75 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
76 LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
77 else
78 AC_MSG_CHECKING(for native large file support)
79 AC_RUN_IFELSE([#include <unistd.h>
80 int main (int argc, char **argv)
81 {
82 exit(!(sizeof(off_t) == 8));
83 }],
84 [ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
85 AC_MSG_RESULT(yes)],
86 [AC_MSG_RESULT(no)])
87 fi
88 if test "$ac_cv_sys_large_files" != 'no'; then
89 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=1"
90 fi
91 AC_FUNC_FSEEKO
92 if test "$ac_cv_sys_largefile_source" != 'no'; then
93 LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=1"
94 fi
95fi
96AC_SUBST(LFS_CFLAGS)
97
71AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile swig/Makefile libiphone-1.0.pc) 98AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile dev/Makefile swig/Makefile libiphone-1.0.pc)
99