2 # Check if we have a type for the pointer's size integer (__psint_t)
4 AC_DEFUN([AC_TYPE_PSINT],
5 [ AC_MSG_CHECKING([for __psint_t ])
12 ], AC_DEFINE(HAVE___PSINT_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
16 # Check if we have a type for the pointer's size unsigned (__psunsigned_t)
18 AC_DEFUN([AC_TYPE_PSUNSIGNED],
19 [ AC_MSG_CHECKING([for __psunsigned_t ])
21 #include <sys/types.h>
25 __psunsigned_t psuint;
26 ], AC_DEFINE(HAVE___PSUNSIGNED_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
32 AC_DEFUN([AC_SIZEOF_POINTERS_AND_LONG],
33 [ if test "$cross_compiling" = yes -a -z "$ac_cv_sizeof_long"; then
34 AC_MSG_WARN([Cross compiling; assuming 32bit long and 32bit pointers])
36 AC_CHECK_SIZEOF(long, 4)
37 AC_CHECK_SIZEOF(char *, 4)
38 if test $ac_cv_sizeof_long -eq 4 -o $ac_cv_sizeof_long -eq 0; then
39 AC_DEFINE(HAVE_32BIT_LONG)
41 if test $ac_cv_sizeof_long -eq 8; then
42 AC_DEFINE(HAVE_64BIT_LONG)
44 if test $ac_cv_sizeof_char_p -eq 4 -o $ac_cv_sizeof_char_p -eq 0; then
45 AC_DEFINE(HAVE_32BIT_PTR)
47 if test $ac_cv_sizeof_char_p -eq 8; then
48 AC_DEFINE(HAVE_64BIT_PTR)