1*5e7646d2SAndroid Build Coastguard Workerdnl 2*5e7646d2SAndroid Build Coastguard Workerdnl Large file support stuff for CUPS. 3*5e7646d2SAndroid Build Coastguard Workerdnl 4*5e7646d2SAndroid Build Coastguard Workerdnl Copyright 2007-2011 by Apple Inc. 5*5e7646d2SAndroid Build Coastguard Workerdnl Copyright 1997-2005 by Easy Software Products, all rights reserved. 6*5e7646d2SAndroid Build Coastguard Workerdnl 7*5e7646d2SAndroid Build Coastguard Workerdnl Licensed under Apache License v2.0. See the file "LICENSE" for more information. 8*5e7646d2SAndroid Build Coastguard Workerdnl 9*5e7646d2SAndroid Build Coastguard Worker 10*5e7646d2SAndroid Build Coastguard Workerdnl Check for largefile support... 11*5e7646d2SAndroid Build Coastguard WorkerAC_SYS_LARGEFILE 12*5e7646d2SAndroid Build Coastguard Worker 13*5e7646d2SAndroid Build Coastguard Workerdnl Define largefile options as needed... 14*5e7646d2SAndroid Build Coastguard WorkerLARGEFILE="" 15*5e7646d2SAndroid Build Coastguard Workerif test x$enable_largefile != xno; then 16*5e7646d2SAndroid Build Coastguard Worker LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" 17*5e7646d2SAndroid Build Coastguard Worker 18*5e7646d2SAndroid Build Coastguard Worker if test x$ac_cv_sys_large_files = x1; then 19*5e7646d2SAndroid Build Coastguard Worker LARGEFILE="$LARGEFILE -D_LARGE_FILES" 20*5e7646d2SAndroid Build Coastguard Worker fi 21*5e7646d2SAndroid Build Coastguard Worker 22*5e7646d2SAndroid Build Coastguard Worker if test x$ac_cv_sys_file_offset_bits = x64; then 23*5e7646d2SAndroid Build Coastguard Worker LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" 24*5e7646d2SAndroid Build Coastguard Worker fi 25*5e7646d2SAndroid Build Coastguard Workerfi 26*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(LARGEFILE) 27*5e7646d2SAndroid Build Coastguard Worker 28*5e7646d2SAndroid Build Coastguard Workerdnl Check for "long long" support... 29*5e7646d2SAndroid Build Coastguard WorkerAC_CACHE_CHECK(for long long int, ac_cv_c_long_long, 30*5e7646d2SAndroid Build Coastguard Worker [if test "$GCC" = yes; then 31*5e7646d2SAndroid Build Coastguard Worker ac_cv_c_long_long=yes 32*5e7646d2SAndroid Build Coastguard Worker else 33*5e7646d2SAndroid Build Coastguard Worker AC_TRY_COMPILE(,[long long int i;], 34*5e7646d2SAndroid Build Coastguard Worker ac_cv_c_long_long=yes, 35*5e7646d2SAndroid Build Coastguard Worker ac_cv_c_long_long=no) 36*5e7646d2SAndroid Build Coastguard Worker fi]) 37*5e7646d2SAndroid Build Coastguard Worker 38*5e7646d2SAndroid Build Coastguard Workerif test $ac_cv_c_long_long = yes; then 39*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE(HAVE_LONG_LONG) 40*5e7646d2SAndroid Build Coastguard Workerfi 41*5e7646d2SAndroid Build Coastguard Worker 42*5e7646d2SAndroid Build Coastguard WorkerAC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL)) 43