]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-largefile.m4
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / config-scripts / cups-largefile.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Large file support stuff for CUPS.
ef416fc2 3dnl
503b54c9
MS
4dnl Copyright 2007-2011 by Apple Inc.
5dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
503b54c9
MS
7dnl These coded instructions, statements, and computer programs are the
8dnl property of Apple Inc. and are protected by Federal copyright
9dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
10dnl which should have been included with this file. If this file is
11dnl file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12dnl
13
14dnl Check for largefile support...
15AC_SYS_LARGEFILE
16
17dnl Define largefile options as needed...
18LARGEFILE=""
19if test x$enable_largefile != xno; then
20 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
21
f7deaa1a 22 if test x$ac_cv_sys_large_files = x1; then
ef416fc2 23 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
24 fi
25
f7deaa1a 26 if test x$ac_cv_sys_file_offset_bits = x64; then
ef416fc2 27 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
28 fi
29fi
30AC_SUBST(LARGEFILE)
31
32dnl Check for "long long" support...
33AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
34 [if test "$GCC" = yes; then
35 ac_cv_c_long_long=yes
36 else
37 AC_TRY_COMPILE(,[long long int i;],
38 ac_cv_c_long_long=yes,
39 ac_cv_c_long_long=no)
40 fi])
41
42if test $ac_cv_c_long_long = yes; then
43 AC_DEFINE(HAVE_LONG_LONG)
44fi
45
46AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))