summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-02 14:56:15 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-10-02 14:56:15 (GMT)
commitda70fd15992ec2833f02ac4e5a31d4675f3ee5f8 (patch)
treec4e18e3557d746e1eca3f44a6c12ac6fc70f7058 /configure.in
parent0988904df8da8fc484d050127b8e77eb47bd1ab8 (diff)
downloadcpython-da70fd15992ec2833f02ac4e5a31d4675f3ee5f8.zip
cpython-da70fd15992ec2833f02ac4e5a31d4675f3ee5f8.tar.gz
cpython-da70fd15992ec2833f02ac4e5a31d4675f3ee5f8.tar.bz2
Fix test for uintptr_t. Fixes #1568842.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 4 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index 711e19e..c5d69f9 100644
--- a/configure.in
+++ b/configure.in
@@ -1197,16 +1197,10 @@ if test "$have_long_long" = yes ; then
AC_CHECK_SIZEOF(long long, 8)
fi
-AC_MSG_CHECKING(for uintptr_t support)
-have_uintptr_t=no
-AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], [
- AC_DEFINE(HAVE_UINTPTR_T, 1, [Define this if you have the type uintptr_t.])
- have_uintptr_t=yes
-])
-AC_MSG_RESULT($have_uintptr_t)
-if test "$have_uintptr_t" = yes ; then
-AC_CHECK_SIZEOF(uintptr_t, 4)
-fi
+AC_CHECK_TYPES(uintptr_t,
+ [AC_CHECK_SIZEOF(uintptr_t, 4)],
+ [], [#include <stdint.h>])
+
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
AC_MSG_CHECKING(size of off_t)