]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-largefile.m4
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / config-scripts / cups-largefile.m4
CommitLineData
ef416fc2 1dnl
c07d5b2d 2dnl "$Id: cups-largefile.m4 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3dnl
4dnl Large file support stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Check for largefile support...
26AC_SYS_LARGEFILE
27
28dnl Define largefile options as needed...
29LARGEFILE=""
30if test x$enable_largefile != xno; then
31 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
32
33 if test $ac_cv_sys_large_files = 1; then
34 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
35 fi
36
37 if test $ac_cv_sys_file_offset_bits = 64; then
38 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
39 fi
40fi
41AC_SUBST(LARGEFILE)
42
43dnl Check for "long long" support...
44AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
45 [if test "$GCC" = yes; then
46 ac_cv_c_long_long=yes
47 else
48 AC_TRY_COMPILE(,[long long int i;],
49 ac_cv_c_long_long=yes,
50 ac_cv_c_long_long=no)
51 fi])
52
53if test $ac_cv_c_long_long = yes; then
54 AC_DEFINE(HAVE_LONG_LONG)
55fi
56
57AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
58
59dnl
c07d5b2d 60dnl End of "$Id: cups-largefile.m4 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 61dnl