apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr configure.in
Date Mon, 12 Jan 2004 11:38:14 GMT
jorton      2004/01/12 03:38:14

  Modified:    .        configure.in
  Log:
  * configure.in: Fix detection of APR_OFF_T_FMT if built with
  -D_FILE_OFFSET_BITS=64 on 32-bit Linux/Solaris/AIX platforms.
  
  Revision  Changes    Path
  1.564     +12 -9     apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.563
  retrieving revision 1.564
  diff -b -d -u -r1.563 -r1.564
  --- configure.in	8 Jan 2004 22:47:08 -0000	1.563
  +++ configure.in	12 Jan 2004 11:38:14 -0000	1.564
  @@ -1187,26 +1187,19 @@
   # it right.  If you find that we don't get it right for your platform, 
   # you can override our decision below.
   case $host in
  -   *linux*)
  -       off_t_fmt='#define APR_OFF_T_FMT "ld"'
  -       case $host in
  -           s390*)
  +   s390*linux*)
                  size_t_fmt='#define APR_SIZE_T_FMT "ld"'
                  ;;
  -       esac
  -       ;;
      *os2_emx)
          off_t_fmt='#define APR_OFF_T_FMT "ld"'
          size_t_fmt='#define APR_SIZE_T_FMT "lu"'
          ;;
      *-solaris*)
  -       off_t_fmt='#define APR_OFF_T_FMT "ld"'
          pid_t_fmt='#define APR_PID_T_FMT "ld"'
          ;;
      *aix4*|*aix5*)
          ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
          size_t_fmt='#define APR_SIZE_T_FMT "ld"'
  -       off_t_fmt='#define APR_OFF_T_FMT "ld"'
          ;;
       *beos*)
           ssize_t_fmt='#define APR_SSIZE_T_FMT "ld"'
  @@ -1217,6 +1210,16 @@
           size_t_fmt='#define APR_SIZE_T_FMT "lu"'
           ;;
   esac
  +
  +# Override format string for off_t more carefully: only use hard-coded
  +# choice if using a 32-bit off_t on platforms which support LFS.
  +if test "$ac_cv_sizeof_off_t" = "4"; then
  +   case $host in 
  +   *linux*|*-solaris*|*aix[[45]]*)
  +        off_t_fmt='#define APR_OFF_T_FMT "ld"'
  +        ;;
  +   esac
  +fi
   
   AC_SUBST(voidp_size)
   AC_SUBST(short_value)
  
  
  

Mime
View raw message