1178825Sdfrdnl $Id: largefile.m4 13768 2004-04-24 21:51:32Z joda $
2178825Sdfrdnl
3178825Sdfrdnl Figure out what flags we need for 64-bit file access, and also set
4178825Sdfrdnl them on the command line.
5178825Sdfrdnl
6178825SdfrAC_DEFUN([rk_SYS_LARGEFILE],[
7178825SdfrAC_REQUIRE([AC_SYS_LARGEFILE])dnl
8178825Sdfrdnl need to set this on the command line, since it might otherwise break
9178825Sdfrdnl with generated code, such as lex
10178825Sdfrif test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
11178825Sdfr	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
12178825Sdfrfi
13178825Sdfrif test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then
14178825Sdfr	CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
15178825Sdfrfi
16178825Sdfr])
17