brianp 2002/10/19 11:00:54 Modified: . configure.in include apr.h.in Log: Determine sizeof(void *) during configuration (we'll need this in order to help map an upcoming "atomic compare-and-swap for pointers" to the right inline assembly) Revision Changes Path 1.492 +10 -0 apr/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/apr/configure.in,v retrieving revision 1.491 retrieving revision 1.492 diff -u -r1.491 -r1.492 --- configure.in 18 Oct 2002 15:00:35 -0000 1.491 +++ configure.in 19 Oct 2002 18:00:53 -0000 1.492 @@ -1020,6 +1020,15 @@ APR_INADDR_NONE +dnl Checks for pointer size +AC_CHECK_SIZEOF(void*, 4) + +if test "x$ac_cv_sizeof_voidp" != "x"; then + voidp_size=$ac_cv_sizeof_voidp +else + AC_ERROR([Cannot determine size of void*]) +fi + dnl Checks for integer size AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(int, 4) @@ -1208,6 +1217,7 @@ ;; esac +AC_SUBST(voidp_size) AC_SUBST(short_value) AC_SUBST(int_value) AC_SUBST(long_value) 1.116 +2 -0 apr/include/apr.h.in Index: apr.h.in =================================================================== RCS file: /home/cvs/apr/include/apr.h.in,v retrieving revision 1.115 retrieving revision 1.116 diff -u -r1.115 -r1.116 --- apr.h.in 3 Aug 2002 20:29:54 -0000 1.115 +++ apr.h.in 19 Oct 2002 18:00:54 -0000 1.116 @@ -194,6 +194,8 @@ typedef @off_t_value@ apr_off_t; typedef @socklen_t_value@ apr_socklen_t; +#define APR_SIZEOF_VOIDP @voidp_size@ + /* Mechanisms to properly type numeric literals */ @int64_literal@