1 AC_DEFUN([AC_TYPE_INTPTR_T],
3 AC_CHECK_TYPE([intptr_t],
4 [AC_DEFINE([HAVE_INTPTR_T], 1,
5 [Define to 1 if the system has the type `intptr_t'.])],
7 if test "$ac_cv_type_intptr_t" != yes; then
8 AC_MSG_CHECKING(for type equivalent to intptr_t)
9 case $ac_cv_sizeof_void_p in
10 2) openafs_cv_type_intptr_t=afs_int16 ;;
11 4) openafs_cv_type_intptr_t=afs_int32 ;;
12 8) openafs_cv_type_intptr_t=afs_int64 ;;
13 *) AC_MSG_ERROR(no equivalent for intptr_t);;
15 AC_DEFINE_UNQUOTED([intptr_t], [$openafs_cv_type_intptr_t],
16 [Define to the type of a signed integer type wide enough to
17 hold a pointer, if such a type exists, and if the system
19 AC_MSG_RESULT($openafs_cv_type_intptr_t)
24 AC_DEFUN([AC_TYPE_UINTPTR_T],
26 AC_CHECK_TYPE([uintptr_t],
27 [AC_DEFINE([HAVE_UINTPTR_T], 1,
28 [Define to 1 if the system has the type `uintptr_t'.])],
30 if test "$ac_cv_type_uintptr_t" != yes; then
31 AC_MSG_CHECKING(for type equivalent to uintptr_t)
32 case $ac_cv_sizeof_void_p in
33 2) openafs_cv_type_uintptr_t=afs_uint16 ;;
34 4) openafs_cv_type_uintptr_t=afs_uint32 ;;
35 8) openafs_cv_type_uintptr_t=afs_uint64 ;;
36 *) AC_MSG_ERROR(no equivalent for uintptr_t);;
38 AC_DEFINE_UNQUOTED([uintptr_t], [$openafs_cv_type_uintptr_t],
39 [Define to the type of a signed integer type wide enough to
40 hold a pointer, if such a type exists, and if the system
42 AC_MSG_RESULT($openafs_cv_type_uintptr_t)