Changeset 4048

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

Bring back largefile

Files:

Legend:

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

    r4042 r4048  
    7272/* Application version */ 
    7373#undef WD_VERSION 
     74 
     75/* Number of bits in a file offset, on hosts where this is settable. */ 
     76#undef _FILE_OFFSET_BITS 
     77 
     78/* Define for large files, on AIX-style hosts. */ 
     79#undef _LARGE_FILES 
  • wired/trunk/configure

    r4034 r4048  
    853853  --enable-maintainer-mode 
    854854                          enable maintainer mode 
     855  --disable-largefile     omit support for large files 
    855856 
    856857Optional Packages: 
     
    55405541 
    55415542done 
     5543 
     5544 
     5545 
     5546####################################################################### 
     5547# Checks for typedefs, structures, and compiler characteristics 
     5548 
     5549# Check whether --enable-largefile or --disable-largefile was given. 
     5550if test "${enable_largefile+set}" = set; then 
     5551  enableval="$enable_largefile" 
     5552 
     5553fi; 
     5554if test "$enable_largefile" != no; then 
     5555 
     5556  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 
     5557echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 
     5558if test "${ac_cv_sys_largefile_CC+set}" = set; then 
     5559  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5560else 
     5561  ac_cv_sys_largefile_CC=no 
     5562     if test "$GCC" != yes; then 
     5563       ac_save_CC=$CC 
     5564       while :; do 
     5565         # IRIX 6.2 and later do not support large files by default, 
     5566         # so use the C compiler's -n32 option if that helps. 
     5567         cat >conftest.$ac_ext <<_ACEOF 
     5568/* confdefs.h.  */ 
     5569_ACEOF 
     5570cat confdefs.h >>conftest.$ac_ext 
     5571cat >>conftest.$ac_ext <<_ACEOF 
     5572/* end confdefs.h.  */ 
     5573#include <sys/types.h> 
     5574 /* Check that off_t can represent 2**63 - 1 correctly. 
     5575    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5576    since some C++ compilers masquerading as C compilers 
     5577    incorrectly reject 9223372036854775807.  */ 
     5578#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5579  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5580                       && LARGE_OFF_T % 2147483647 == 1) 
     5581                      ? 1 : -1]; 
     5582int 
     5583main () 
     5584{ 
     5585 
     5586  ; 
     5587  return 0; 
     5588} 
     5589_ACEOF 
     5590         rm -f conftest.$ac_objext 
     5591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5592  (eval $ac_compile) 2>conftest.er1 
     5593  ac_status=$? 
     5594  grep -v '^ *+' conftest.er1 >conftest.err 
     5595  rm -f conftest.er1 
     5596  cat conftest.err >&5 
     5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5598  (exit $ac_status); } && 
     5599         { ac_try='test -z "$ac_c_werror_flag" 
     5600                         || test ! -s conftest.err' 
     5601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5602  (eval $ac_try) 2>&5 
     5603  ac_status=$? 
     5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5605  (exit $ac_status); }; } && 
     5606         { ac_try='test -s conftest.$ac_objext' 
     5607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5608  (eval $ac_try) 2>&5 
     5609  ac_status=$? 
     5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5611  (exit $ac_status); }; }; then 
     5612  break 
     5613else 
     5614  echo "$as_me: failed program was:" >&5 
     5615sed 's/^/| /' conftest.$ac_ext >&5 
     5616 
     5617fi 
     5618rm -f conftest.err conftest.$ac_objext 
     5619         CC="$CC -n32" 
     5620         rm -f conftest.$ac_objext 
     5621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5622  (eval $ac_compile) 2>conftest.er1 
     5623  ac_status=$? 
     5624  grep -v '^ *+' conftest.er1 >conftest.err 
     5625  rm -f conftest.er1 
     5626  cat conftest.err >&5 
     5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5628  (exit $ac_status); } && 
     5629         { ac_try='test -z "$ac_c_werror_flag" 
     5630                         || test ! -s conftest.err' 
     5631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5632  (eval $ac_try) 2>&5 
     5633  ac_status=$? 
     5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5635  (exit $ac_status); }; } && 
     5636         { ac_try='test -s conftest.$ac_objext' 
     5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5638  (eval $ac_try) 2>&5 
     5639  ac_status=$? 
     5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5641  (exit $ac_status); }; }; then 
     5642  ac_cv_sys_largefile_CC=' -n32'; break 
     5643else 
     5644  echo "$as_me: failed program was:" >&5 
     5645sed 's/^/| /' conftest.$ac_ext >&5 
     5646 
     5647fi 
     5648rm -f conftest.err conftest.$ac_objext 
     5649         break 
     5650       done 
     5651       CC=$ac_save_CC 
     5652       rm -f conftest.$ac_ext 
     5653    fi 
     5654fi 
     5655echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 
     5656echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 
     5657  if test "$ac_cv_sys_largefile_CC" != no; then 
     5658    CC=$CC$ac_cv_sys_largefile_CC 
     5659  fi 
     5660 
     5661  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 
     5662echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 
     5663if test "${ac_cv_sys_file_offset_bits+set}" = set; then 
     5664  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5665else 
     5666  while :; do 
     5667  ac_cv_sys_file_offset_bits=no 
     5668  cat >conftest.$ac_ext <<_ACEOF 
     5669/* confdefs.h.  */ 
     5670_ACEOF 
     5671cat confdefs.h >>conftest.$ac_ext 
     5672cat >>conftest.$ac_ext <<_ACEOF 
     5673/* end confdefs.h.  */ 
     5674#include <sys/types.h> 
     5675 /* Check that off_t can represent 2**63 - 1 correctly. 
     5676    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5677    since some C++ compilers masquerading as C compilers 
     5678    incorrectly reject 9223372036854775807.  */ 
     5679#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5680  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5681                       && LARGE_OFF_T % 2147483647 == 1) 
     5682                      ? 1 : -1]; 
     5683int 
     5684main () 
     5685{ 
     5686 
     5687  ; 
     5688  return 0; 
     5689} 
     5690_ACEOF 
     5691rm -f conftest.$ac_objext 
     5692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5693  (eval $ac_compile) 2>conftest.er1 
     5694  ac_status=$? 
     5695  grep -v '^ *+' conftest.er1 >conftest.err 
     5696  rm -f conftest.er1 
     5697  cat conftest.err >&5 
     5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5699  (exit $ac_status); } && 
     5700         { ac_try='test -z "$ac_c_werror_flag" 
     5701                         || test ! -s conftest.err' 
     5702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5703  (eval $ac_try) 2>&5 
     5704  ac_status=$? 
     5705  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5706  (exit $ac_status); }; } && 
     5707         { ac_try='test -s conftest.$ac_objext' 
     5708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5709  (eval $ac_try) 2>&5 
     5710  ac_status=$? 
     5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5712  (exit $ac_status); }; }; then 
     5713  break 
     5714else 
     5715  echo "$as_me: failed program was:" >&5 
     5716sed 's/^/| /' conftest.$ac_ext >&5 
     5717 
     5718fi 
     5719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5720  cat >conftest.$ac_ext <<_ACEOF 
     5721/* confdefs.h.  */ 
     5722_ACEOF 
     5723cat confdefs.h >>conftest.$ac_ext 
     5724cat >>conftest.$ac_ext <<_ACEOF 
     5725/* end confdefs.h.  */ 
     5726#define _FILE_OFFSET_BITS 64 
     5727#include <sys/types.h> 
     5728 /* Check that off_t can represent 2**63 - 1 correctly. 
     5729    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5730    since some C++ compilers masquerading as C compilers 
     5731    incorrectly reject 9223372036854775807.  */ 
     5732#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5733  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5734                       && LARGE_OFF_T % 2147483647 == 1) 
     5735                      ? 1 : -1]; 
     5736int 
     5737main () 
     5738{ 
     5739 
     5740  ; 
     5741  return 0; 
     5742} 
     5743_ACEOF 
     5744rm -f conftest.$ac_objext 
     5745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5746  (eval $ac_compile) 2>conftest.er1 
     5747  ac_status=$? 
     5748  grep -v '^ *+' conftest.er1 >conftest.err 
     5749  rm -f conftest.er1 
     5750  cat conftest.err >&5 
     5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5752  (exit $ac_status); } && 
     5753         { ac_try='test -z "$ac_c_werror_flag" 
     5754                         || test ! -s conftest.err' 
     5755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5756  (eval $ac_try) 2>&5 
     5757  ac_status=$? 
     5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5759  (exit $ac_status); }; } && 
     5760         { ac_try='test -s conftest.$ac_objext' 
     5761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5762  (eval $ac_try) 2>&5 
     5763  ac_status=$? 
     5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5765  (exit $ac_status); }; }; then 
     5766  ac_cv_sys_file_offset_bits=64; break 
     5767else 
     5768  echo "$as_me: failed program was:" >&5 
     5769sed 's/^/| /' conftest.$ac_ext >&5 
     5770 
     5771fi 
     5772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5773  break 
     5774done 
     5775fi 
     5776echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 
     5777echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 
     5778if test "$ac_cv_sys_file_offset_bits" != no; then 
     5779 
     5780cat >>confdefs.h <<_ACEOF 
     5781#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 
     5782_ACEOF 
     5783 
     5784fi 
     5785rm -f conftest* 
     5786  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 
     5787echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 
     5788if test "${ac_cv_sys_large_files+set}" = set; then 
     5789  echo $ECHO_N "(cached) $ECHO_C" >&6 
     5790else 
     5791  while :; do 
     5792  ac_cv_sys_large_files=no 
     5793  cat >conftest.$ac_ext <<_ACEOF 
     5794/* confdefs.h.  */ 
     5795_ACEOF 
     5796cat confdefs.h >>conftest.$ac_ext 
     5797cat >>conftest.$ac_ext <<_ACEOF 
     5798/* end confdefs.h.  */ 
     5799#include <sys/types.h> 
     5800 /* Check that off_t can represent 2**63 - 1 correctly. 
     5801    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5802    since some C++ compilers masquerading as C compilers 
     5803    incorrectly reject 9223372036854775807.  */ 
     5804#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5805  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5806                       && LARGE_OFF_T % 2147483647 == 1) 
     5807                      ? 1 : -1]; 
     5808int 
     5809main () 
     5810{ 
     5811 
     5812  ; 
     5813  return 0; 
     5814} 
     5815_ACEOF 
     5816rm -f conftest.$ac_objext 
     5817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5818  (eval $ac_compile) 2>conftest.er1 
     5819  ac_status=$? 
     5820  grep -v '^ *+' conftest.er1 >conftest.err 
     5821  rm -f conftest.er1 
     5822  cat conftest.err >&5 
     5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5824  (exit $ac_status); } && 
     5825         { ac_try='test -z "$ac_c_werror_flag" 
     5826                         || test ! -s conftest.err' 
     5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5828  (eval $ac_try) 2>&5 
     5829  ac_status=$? 
     5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5831  (exit $ac_status); }; } && 
     5832         { ac_try='test -s conftest.$ac_objext' 
     5833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5834  (eval $ac_try) 2>&5 
     5835  ac_status=$? 
     5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5837  (exit $ac_status); }; }; then 
     5838  break 
     5839else 
     5840  echo "$as_me: failed program was:" >&5 
     5841sed 's/^/| /' conftest.$ac_ext >&5 
     5842 
     5843fi 
     5844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5845  cat >conftest.$ac_ext <<_ACEOF 
     5846/* confdefs.h.  */ 
     5847_ACEOF 
     5848cat confdefs.h >>conftest.$ac_ext 
     5849cat >>conftest.$ac_ext <<_ACEOF 
     5850/* end confdefs.h.  */ 
     5851#define _LARGE_FILES 1 
     5852#include <sys/types.h> 
     5853 /* Check that off_t can represent 2**63 - 1 correctly. 
     5854    We can't simply define LARGE_OFF_T to be 9223372036854775807, 
     5855    since some C++ compilers masquerading as C compilers 
     5856    incorrectly reject 9223372036854775807.  */ 
     5857#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 
     5858  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 
     5859                       && LARGE_OFF_T % 2147483647 == 1) 
     5860                      ? 1 : -1]; 
     5861int 
     5862main () 
     5863{ 
     5864 
     5865  ; 
     5866  return 0; 
     5867} 
     5868_ACEOF 
     5869rm -f conftest.$ac_objext 
     5870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     5871  (eval $ac_compile) 2>conftest.er1 
     5872  ac_status=$? 
     5873  grep -v '^ *+' conftest.er1 >conftest.err 
     5874  rm -f conftest.er1 
     5875  cat conftest.err >&5 
     5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5877  (exit $ac_status); } && 
     5878         { ac_try='test -z "$ac_c_werror_flag" 
     5879                         || test ! -s conftest.err' 
     5880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5881  (eval $ac_try) 2>&5 
     5882  ac_status=$? 
     5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5884  (exit $ac_status); }; } && 
     5885         { ac_try='test -s conftest.$ac_objext' 
     5886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     5887  (eval $ac_try) 2>&5 
     5888  ac_status=$? 
     5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     5890  (exit $ac_status); }; }; then 
     5891  ac_cv_sys_large_files=1; break 
     5892else 
     5893  echo "$as_me: failed program was:" >&5 
     5894sed 's/^/| /' conftest.$ac_ext >&5 
     5895 
     5896fi 
     5897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     5898  break 
     5899done 
     5900fi 
     5901echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 
     5902echo "${ECHO_T}$ac_cv_sys_large_files" >&6 
     5903if test "$ac_cv_sys_large_files" != no; then 
     5904 
     5905cat >>confdefs.h <<_ACEOF 
     5906#define _LARGE_FILES $ac_cv_sys_large_files 
     5907_ACEOF 
     5908 
     5909fi 
     5910rm -f conftest* 
     5911fi 
    55425912 
    55435913 
  • wired/trunk/configure.in

    r4034 r4048  
    351351 
    352352####################################################################### 
     353# Checks for typedefs, structures, and compiler characteristics 
     354 
     355AC_SYS_LARGEFILE 
     356 
     357 
     358####################################################################### 
    353359# Output 
    354360