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