Modernize the cups-largefile autoconf source file.
@@ -10115,16 +10115,25 @@ fi
LARGEFILE=""
-if test x$enable_largefile != xno; then
+if test x$enable_largefile != xno
+then :
+
LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
- if test x$ac_cv_sys_large_files = x1; then
+ if test x$ac_cv_sys_large_files = x1
+then :
+
LARGEFILE="$LARGEFILE -D_LARGE_FILES"
+
fi
- if test x$ac_cv_sys_file_offset_bits = x64; then
+ if test x$ac_cv_sys_file_offset_bits = x64
+then :
+
LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
+
fi
+
fi
@@ -10134,12 +10143,18 @@ if test ${ac_cv_c_long_long+y}
then :
printf %s "(cached) " >&6
else $as_nop
- if test "$GCC" = yes; then
- ac_cv_c_long_long=yes
- else
+
+ if test "$GCC" = yes
+then :
+
+ ac_cv_c_long_long="yes"
+
+else $as_nop
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+
int
main (void)
{
@@ -10147,29 +10162,43 @@ long long int i;
;
return 0;
}
+
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
- ac_cv_c_long_long=yes
+
+ ac_cv_c_long_long="yes"
+
else $as_nop
- ac_cv_c_long_long=no
+
+ ac_cv_c_long_long="no"
+
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
fi
+
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
printf "%s\n" "$ac_cv_c_long_long" >&6; }
-if test $ac_cv_c_long_long = yes; then
+if test $ac_cv_c_long_long = yes
+then :
+
+
printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
+
fi
ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
if test "x$ac_cv_func_strtoll" = xyes
then :
+
+
printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
+
fi
