Changeset 4054

Show
Ignore:
Timestamp:
04/06/06 19:19:16 (3 years ago)
Author:
morris
Message:

Bring back largefile option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/config.h.in

    r4052 r4054  
    8080/* Application version */ 
    8181#undef WR_VERSION 
     82 
     83/* Number of bits in a file offset, on hosts where this is settable. */ 
     84#undef _FILE_OFFSET_BITS 
     85 
     86/* Define for large files, on AIX-style hosts. */ 
     87#undef _LARGE_FILES 
  • wire/trunk/configure

    r4053 r4054  
    853853  --enable-maintainer-mode 
    854854                          enable maintainer mode 
     855  --disable-largefile     omit support for large files 
    855856 
    856857Some influential environment variables: 
     
    61366137 
    61376138done 
     6139 
     6140 
     6141 
     6142####################################################################### 
     6143# Checks for typedefs, structures, and compiler characteristics 
     6144 
     6145# Check whether --enable-largefile or --disable-largefile was given. 
     6146if test "${enable_largefile+set}" = set; then 
     6147  enableval="$enable_largefile" 
     6148 
     6149fi; 
     6150if test "$enable_largefile" != no; then 
     6151 
     6152  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 
     6153echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 
     6154if test "${ac_cv_sys_largefile_CC+set}" = set; then 
     6155  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6156else 
     6157  ac_cv_sys_largefile_CC=no 
     6158     if test "$GCC" != yes; then 
     6159       ac_save_CC=$CC 
     6160       while :; do 
     6161         # IRIX 6.2 and later do not support large files by default, 
     6162         # so use the C compiler's -n32 option if that helps. 
     6163         cat >conftest.$ac_ext <<_ACEOF 
     6164/* confdefs.h.  */ 
     6165_ACEOF 
     6166cat confdefs.h >>conftest.$ac_ext 
     6167cat >>conftest.$ac_ext <<_ACEOF 
     6168/* end confdefs.h.  */ 
     6169#include <sys/types.h> 
     6170 /* Check that off_t can represent 2**63 - 1 correctly. 
     6171    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     6172    since some C++ compilers masquerading as C compilers 
     6173    incorrectly reject 9223372036854775807.  */ 
     6174#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     6175  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     6176                       && LARGE_OFF_T % 2147483647 == 1) 
     6177                      ? 1 : -1]; 
     6178int 
     6179main () 
     6180{ 
     6181 
     6182  ; 
     6183  return 0; 
     6184} 
     6185_ACEOF 
     6186         rm -f conftest.$ac_objext 
     6187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6188  (eval $ac_compile) 2>conftest.er1 
     6189  ac_status=$? 
     6190  grep -v '^ *+' conftest.er1 >conftest.err 
     6191  rm -f conftest.er1 
     6192  cat conftest.err >&5 
     6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6194  (exit $ac_status); } && 
     6195         { ac_try='test -z "$ac_c_werror_flag" 
     6196                         || test ! -s conftest.err' 
     6197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6198  (eval $ac_try) 2>&5 
     6199  ac_status=$? 
     6200  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6201  (exit $ac_status); }; } && 
     6202         { ac_try='test -s conftest.$ac_objext' 
     6203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6204  (eval $ac_try) 2>&5 
     6205  ac_status=$? 
     6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6207  (exit $ac_status); }; }; then 
     6208  break 
     6209else 
     6210  echo "$as_me: failed program was:" >&5 
     6211sed 's/^/| /' conftest.$ac_ext >&5 
     6212 
     6213fi 
     6214rm -f conftest.err conftest.$ac_objext 
     6215         CC="$CC -n32" 
     6216         rm -f conftest.$ac_objext 
     6217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6218  (eval $ac_compile) 2>conftest.er1 
     6219  ac_status=$? 
     6220  grep -v '^ *+' conftest.er1 >conftest.err 
     6221  rm -f conftest.er1 
     6222  cat conftest.err >&5 
     6223  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6224  (exit $ac_status); } && 
     6225         { ac_try='test -z "$ac_c_werror_flag" 
     6226                         || test ! -s conftest.err' 
     6227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6228  (eval $ac_try) 2>&5 
     6229  ac_status=$? 
     6230  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6231  (exit $ac_status); }; } && 
     6232         { ac_try='test -s conftest.$ac_objext' 
     6233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6234  (eval $ac_try) 2>&5 
     6235  ac_status=$? 
     6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6237  (exit $ac_status); }; }; then 
     6238  ac_cv_sys_largefile_CC=' -n32'; break 
     6239else 
     6240  echo "$as_me: failed program was:" >&5 
     6241sed 's/^/| /' conftest.$ac_ext >&5 
     6242 
     6243fi 
     6244rm -f conftest.err conftest.$ac_objext 
     6245         break 
     6246       done 
     6247       CC=$ac_save_CC 
     6248       rm -f conftest.$ac_ext 
     6249    fi 
     6250fi 
     6251echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 
     6252echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 
     6253  if test "$ac_cv_sys_largefile_CC" != no; then 
     6254    CC=$CC$ac_cv_sys_largefile_CC 
     6255  fi 
     6256 
     6257  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 
     6258echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 
     6259if test "${ac_cv_sys_file_offset_bits+set}" = set; then 
     6260  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6261else 
     6262  while :; do 
     6263  ac_cv_sys_file_offset_bits=no 
     6264  cat >conftest.$ac_ext <<_ACEOF 
     6265/* confdefs.h.  */ 
     6266_ACEOF 
     6267cat confdefs.h >>conftest.$ac_ext 
     6268cat >>conftest.$ac_ext <<_ACEOF 
     6269/* end confdefs.h.  */ 
     6270#include <sys/types.h> 
     6271 /* Check that off_t can represent 2**63 - 1 correctly. 
     6272    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     6273    since some C++ compilers masquerading as C compilers 
     6274    incorrectly reject 9223372036854775807.  */ 
     6275#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     6276  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     6277                       && LARGE_OFF_T % 2147483647 == 1) 
     6278                      ? 1 : -1]; 
     6279int 
     6280main () 
     6281{ 
     6282 
     6283  ; 
     6284  return 0; 
     6285} 
     6286_ACEOF 
     6287rm -f conftest.$ac_objext 
     6288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6289  (eval $ac_compile) 2>conftest.er1 
     6290  ac_status=$? 
     6291  grep -v '^ *+' conftest.er1 >conftest.err 
     6292  rm -f conftest.er1 
     6293  cat conftest.err >&5 
     6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6295  (exit $ac_status); } && 
     6296         { ac_try='test -z "$ac_c_werror_flag" 
     6297                         || test ! -s conftest.err' 
     6298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6299  (eval $ac_try) 2>&5 
     6300  ac_status=$? 
     6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6302  (exit $ac_status); }; } && 
     6303         { ac_try='test -s conftest.$ac_objext' 
     6304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6305  (eval $ac_try) 2>&5 
     6306  ac_status=$? 
     6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6308  (exit $ac_status); }; }; then 
     6309  break 
     6310else 
     6311  echo "$as_me: failed program was:" >&5 
     6312sed 's/^/| /' conftest.$ac_ext >&5 
     6313 
     6314fi 
     6315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     6316  cat >conftest.$ac_ext <<_ACEOF 
     6317/* confdefs.h.  */ 
     6318_ACEOF 
     6319cat confdefs.h >>conftest.$ac_ext 
     6320cat >>conftest.$ac_ext <<_ACEOF 
     6321/* end confdefs.h.  */ 
     6322#define _FILE_OFFSET_BITS 64 
     6323#include <sys/types.h> 
     6324 /* Check that off_t can represent 2**63 - 1 correctly. 
     6325    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     6326    since some C++ compilers masquerading as C compilers 
     6327    incorrectly reject 9223372036854775807.  */ 
     6328#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     6329  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     6330                       && LARGE_OFF_T % 2147483647 == 1) 
     6331                      ? 1 : -1]; 
     6332int 
     6333main () 
     6334{ 
     6335 
     6336  ; 
     6337  return 0; 
     6338} 
     6339_ACEOF 
     6340rm -f conftest.$ac_objext 
     6341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6342  (eval $ac_compile) 2>conftest.er1 
     6343  ac_status=$? 
     6344  grep -v '^ *+' conftest.er1 >conftest.err 
     6345  rm -f conftest.er1 
     6346  cat conftest.err >&5 
     6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6348  (exit $ac_status); } && 
     6349         { ac_try='test -z "$ac_c_werror_flag" 
     6350                         || test ! -s conftest.err' 
     6351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6352  (eval $ac_try) 2>&5 
     6353  ac_status=$? 
     6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6355  (exit $ac_status); }; } && 
     6356         { ac_try='test -s conftest.$ac_objext' 
     6357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6358  (eval $ac_try) 2>&5 
     6359  ac_status=$? 
     6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6361  (exit $ac_status); }; }; then 
     6362  ac_cv_sys_file_offset_bits=64; break 
     6363else 
     6364  echo "$as_me: failed program was:" >&5 
     6365sed 's/^/| /' conftest.$ac_ext >&5 
     6366 
     6367fi 
     6368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     6369  break 
     6370done 
     6371fi 
     6372echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 
     6373echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 
     6374if test "$ac_cv_sys_file_offset_bits" != no; then 
     6375 
     6376cat >>confdefs.h <<_ACEOF 
     6377#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 
     6378_ACEOF 
     6379 
     6380fi 
     6381rm -f conftest* 
     6382  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 
     6383echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 
     6384if test "${ac_cv_sys_large_files+set}" = set; then 
     6385  echo $ECHO_N "(cached) $ECHO_C" >&6 
     6386else 
     6387  while :; do 
     6388  ac_cv_sys_large_files=no 
     6389  cat >conftest.$ac_ext <<_ACEOF 
     6390/* confdefs.h.  */ 
     6391_ACEOF 
     6392cat confdefs.h >>conftest.$ac_ext 
     6393cat >>conftest.$ac_ext <<_ACEOF 
     6394/* end confdefs.h.  */ 
     6395#include <sys/types.h> 
     6396 /* Check that off_t can represent 2**63 - 1 correctly. 
     6397    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     6398    since some C++ compilers masquerading as C compilers 
     6399    incorrectly reject 9223372036854775807.  */ 
     6400#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     6401  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     6402                       && LARGE_OFF_T % 2147483647 == 1) 
     6403                      ? 1 : -1]; 
     6404int 
     6405main () 
     6406{ 
     6407 
     6408  ; 
     6409  return 0; 
     6410} 
     6411_ACEOF 
     6412rm -f conftest.$ac_objext 
     6413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6414  (eval $ac_compile) 2>conftest.er1 
     6415  ac_status=$? 
     6416  grep -v '^ *+' conftest.er1 >conftest.err 
     6417  rm -f conftest.er1 
     6418  cat conftest.err >&5 
     6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6420  (exit $ac_status); } && 
     6421         { ac_try='test -z "$ac_c_werror_flag" 
     6422                         || test ! -s conftest.err' 
     6423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6424  (eval $ac_try) 2>&5 
     6425  ac_status=$? 
     6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6427  (exit $ac_status); }; } && 
     6428         { ac_try='test -s conftest.$ac_objext' 
     6429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6430  (eval $ac_try) 2>&5 
     6431  ac_status=$? 
     6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6433  (exit $ac_status); }; }; then 
     6434  break 
     6435else 
     6436  echo "$as_me: failed program was:" >&5 
     6437sed 's/^/| /' conftest.$ac_ext >&5 
     6438 
     6439fi 
     6440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     6441  cat >conftest.$ac_ext <<_ACEOF 
     6442/* confdefs.h.  */ 
     6443_ACEOF 
     6444cat confdefs.h >>conftest.$ac_ext 
     6445cat >>conftest.$ac_ext <<_ACEOF 
     6446/* end confdefs.h.  */ 
     6447#define _LARGE_FILES 1 
     6448#include <sys/types.h> 
     6449 /* Check that off_t can represent 2**63 - 1 correctly. 
     6450    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     6451    since some C++ compilers masquerading as C compilers 
     6452    incorrectly reject 9223372036854775807.  */ 
     6453#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     6454  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     6455                       && LARGE_OFF_T % 2147483647 == 1) 
     6456                      ? 1 : -1]; 
     6457int 
     6458main () 
     6459{ 
     6460 
     6461  ; 
     6462  return 0; 
     6463} 
     6464_ACEOF 
     6465rm -f conftest.$ac_objext 
     6466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     6467  (eval $ac_compile) 2>conftest.er1 
     6468  ac_status=$? 
     6469  grep -v '^ *+' conftest.er1 >conftest.err 
     6470  rm -f conftest.er1 
     6471  cat conftest.err >&5 
     6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6473  (exit $ac_status); } && 
     6474         { ac_try='test -z "$ac_c_werror_flag" 
     6475                         || test ! -s conftest.err' 
     6476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6477  (eval $ac_try) 2>&5 
     6478  ac_status=$? 
     6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6480  (exit $ac_status); }; } && 
     6481         { ac_try='test -s conftest.$ac_objext' 
     6482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     6483  (eval $ac_try) 2>&5 
     6484  ac_status=$? 
     6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     6486  (exit $ac_status); }; }; then 
     6487  ac_cv_sys_large_files=1; break 
     6488else 
     6489  echo "$as_me: failed program was:" >&5 
     6490sed 's/^/| /' conftest.$ac_ext >&5 
     6491 
     6492fi 
     6493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     6494  break 
     6495done 
     6496fi 
     6497echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 
     6498echo "${ECHO_T}$ac_cv_sys_large_files" >&6 
     6499if test "$ac_cv_sys_large_files" != no; then 
     6500 
     6501cat >>confdefs.h <<_ACEOF 
     6502#define _LARGE_FILES $ac_cv_sys_large_files 
     6503_ACEOF 
     6504 
     6505fi 
     6506rm -f conftest* 
     6507fi 
    61386508 
    61396509 
  • wire/trunk/configure.in

    r4052 r4054  
    279279 
    280280####################################################################### 
     281# Checks for typedefs, structures, and compiler characteristics 
     282 
     283AC_SYS_LARGEFILE 
     284 
     285 
     286####################################################################### 
    281287# Output 
    282288