summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Messier <mmessier@grapetv.org>2007-05-10 14:18:52 -0400
committerMatt Messier <mmessier@grapetv.org>2007-05-10 14:18:52 -0400
commit3d1f377ffb8343dea5311ff5f5cf9cd7908fb0df (patch)
treeb2c9729b30e9f5efbd867461778404ce3cce12a4
parent68a59d5714f4cf1ac536d347c879995fb4685475 (diff)
downloadxine-lib-3d1f377ffb8343dea5311ff5f5cf9cd7908fb0df.tar.gz
xine-lib-3d1f377ffb8343dea5311ff5f5cf9cd7908fb0df.tar.bz2
Add large file macros to CPPFLAGS as required
If AC_SYS_LARGEFILES defines _FILE_OFFSET_BITS=64 or _LARGEFILE_SOURCE, they'll only be in config.h. Add them to CPPFLAGS as well. If AC_FUNC_FSEEKO defines _LARGE_FILES, add it to CPPFLAGS as well. Do all of this for the benefit of those things that do not #include config.h
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5283b8e85..db8ab01d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -846,8 +846,19 @@ dnl --------------------------
XINE_X11_SUPPORT
+dnl _FILE_OFFSET_BITS (AC_SYS_LARGEFILE; ac_cv_sys_file_offset_bits)
+dnl _LARGE_FILES (AC_SYS_LARGEFILE; ac_cv_sys_large_files)
+dnl _LARGEFILE_SOURCE (AC_FUNC_SEEKO; ac_cv_sys_largfile_source)
+dnl _LARGEFILE64_SOURCE (glibc transitional; not tested or used anywhere)
AC_SYS_LARGEFILE
+dnl Add macros to the compiler command line that are also in config.h for things
+dnl that do not #include config.h.
+dnl known: src/input/libreal, src/input/librtsp
+test x"$ac_cv_sys_file_offset_bits" != x"no" && CPPFLAGS="-D_FILE_OFFSET_BITS=64 $CPPFLAGS"
+test x"$ac_cv_sys_largefile_source" != x"no" && CPPFLAGS="-D_LARGEFILE_SOURCE $CPPFLAGS"
+test x"$ac_cv_sys_large_files" != x"" && CPPFLAGS="-D_LARGE_FILES $CPPFLAGS"
+
dnl -------
dnl Plugins