[Python-checkins] r52091 - in python/branches/release24-maint: Include/pyport.h configure configure.in

martin.v.loewis python-checkins at python.org
Mon Oct 2 17:24:16 CEST 2006


Author: martin.v.loewis
Date: Mon Oct  2 17:24:15 2006
New Revision: 52091

Modified:
   python/branches/release24-maint/Include/pyport.h
   python/branches/release24-maint/configure
   python/branches/release24-maint/configure.in
Log:
Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.


Modified: python/branches/release24-maint/Include/pyport.h
==============================================================================
--- python/branches/release24-maint/Include/pyport.h	(original)
+++ python/branches/release24-maint/Include/pyport.h	Mon Oct  2 17:24:15 2006
@@ -3,6 +3,10 @@
 
 #include "pyconfig.h" /* include for defines */
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 /**************************************************************************
 Symbols and macros to supply platform-independent interfaces to basic
 C language & library operations whose spellings vary across platforms.

Modified: python/branches/release24-maint/configure
==============================================================================
--- python/branches/release24-maint/configure	(original)
+++ python/branches/release24-maint/configure	Mon Oct  2 17:24:15 2006
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 52044 .
+# From configure.in Revision: 52088 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.4.
 #
@@ -4565,9 +4565,10 @@
 
 
 
+
 for ac_header in curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
-stropts.h termios.h thread.h \
+stdint.h stropts.h termios.h thread.h \
 unistd.h utime.h \
 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
 sys/modem.h \
@@ -9468,7 +9469,9 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <stdint.h>
+#ifdef HAVE_STDINT_H
+        #include <stdint.h>
+        #endif
 
 int
 main ()

Modified: python/branches/release24-maint/configure.in
==============================================================================
--- python/branches/release24-maint/configure.in	(original)
+++ python/branches/release24-maint/configure.in	Mon Oct  2 17:24:15 2006
@@ -986,7 +986,7 @@
 AC_HEADER_STDC
 AC_CHECK_HEADERS(curses.h dlfcn.h fcntl.h grp.h langinfo.h \
 libintl.h ncurses.h poll.h pthread.h \
-stropts.h termios.h thread.h \
+stdint.h stropts.h termios.h thread.h \
 unistd.h utime.h \
 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
 sys/modem.h \
@@ -1102,7 +1102,9 @@
 
 AC_CHECK_TYPES(uintptr_t, 
    [AC_CHECK_SIZEOF(uintptr_t, 4)], 
-   [], [#include <stdint.h>])
+   [], [#ifdef HAVE_STDINT_H
+        #include <stdint.h>
+        #endif])
 
 
 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.


More information about the Python-checkins mailing list