*** pgsql/configure.in 2008/02/24 05:21:54 1.552 --- pgsql/configure.in 2008/03/10 20:06:27 1.553 *************** *** 1,5 **** dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.551 2008/02/19 01:05:28 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl --- 1,5 ---- dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.552 2008/02/24 05:21:54 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl *************** AC_SUBST(DTRACEFLAGS)]) *** 218,223 **** --- 218,229 ---- AC_SUBST(enable_dtrace) # + # Data file segmentation + # + PGAC_ARG_BOOL(enable, segmented-files, yes, + [ --disable-segmented-files disable data file segmentation (requires largefile support)]) + + # # C compiler # *************** if test $ac_cv_func_fseeko = yes; then *** 1411,1416 **** --- 1417,1429 ---- AC_SYS_LARGEFILE fi + # Check for largefile support (must be after AC_SYS_LARGEFILE) + AC_CHECK_SIZEOF([off_t]) + + if test "$ac_cv_sizeof_off_t" -lt 8 -o "$enable_segmented_files" = "yes"; then + AC_DEFINE([USE_SEGMENTED_FILES], 1, [Define to split data files into 1GB segments.]) + fi + # SunOS doesn't handle negative byte comparisons properly with +/- return AC_FUNC_MEMCMP