8904N/A pyc_mtime = PyMarshal_ReadLongFromFile(fp);
8904N/A- PySys_WriteStderr("# %s has bad mtime\n", cpathname);
8904N/A+ PySys_WriteStderr("# %s has bad mtime %lu vs %lu\n",
8904N/A+cpathname, mtime, pyc_mtime);
8904N/A static int find_init_module(char *); /* Forward */
8904N/A static struct filedescr importhookdescr = {"", "", IMP_HOOK};
8904N/A+insert_64dir(char *buf, size_t buflen)
8904N/A+ if ((blen = strlen(buf)) == 0)
8904N/A+ while (cp != buf && *cp != SEP)
8904N/A+ if (blen + strlen("64/") + 1 >= buflen)
8904N/A+ sprintf(cp, "64%c%s", SEP, base);
8904N/A+ * If we're on a 64-bit platform, modify lookups for shared object files.
8904N/A+static size_t modify_path(struct filedescr *fdp, char *buf, size_t buflen)
8904N/A+ if (fdp->type != C_EXTENSION)
8904N/A+ if (insert_64dir(buf, buflen) == NULL)
8904N/A find_module(char *fullname, char *subname, PyObject *path, char *buf,
8904N/A size_t buflen, FILE **p_fp, PyObject **p_loader)
8904N/A static struct filedescr fd_builtin = {"", "", C_BUILTIN};
8904N/A static struct filedescr fd_package = {"", "", PKG_DIRECTORY};
8904N/A /* take a snapshot of the module spec for restoration
8904N/A * after the 8 character DLL hackery
8904N/A for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) {
8904N/A+ len += modify_path(fdp, buf, buflen);
8904N/A /* OS/2 limits DLLs to 8 character names (w/o
8904N/A /* restore the saved snapshot */
9245N/A extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
8904N/A so_ext = get_config_var('SO')
8904N/A+ # .so extensions are word-size specific
8904N/A def get_export_symbols (self, ext):
8904N/A """Return the list of symbols that a shared extension has to
8904N/A+ * Python originally defined these statically, which prevents a 32-64 python
8904N/A /* Define the macros needed if on a UnixWare
7.x system. */
8904N/A #if defined(__USLC__) && defined(__SCO_VERSION__)
8904N/A #define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
8904N/A+# AC_CHECK_SIZEOF without the AC_DEFINE_UNQUOTED
8904N/A+AC_DEFUN([PY_CHECK_SIZEOF],
8904N/A+ [AC_FATAL([$0: requires literal arguments])])dnl
8904N/A+AC_CHECK_TYPE([$1], [], [], [$3])
8904N/A+AC_CACHE_CHECK([size of $1], AS_TR_SH([ac_cv_sizeof_$1]),
8904N/A+[if test "$AS_TR_SH([ac_cv_type_$1])" = yes; then
8904N/A+ # The cast to unsigned long works around a bug in the HP C Compiler
8904N/A+ # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8904N/A+ # This bug is HP SR number 8606223364.
8904N/A+ _AC_COMPUTE_INT([(long) (sizeof ($1))],
8904N/A+ [AS_TR_SH([ac_cv_sizeof_$1])],
8904N/A+ [AC_INCLUDES_DEFAULT([$3])],
8904N/A+ [AC_MSG_FAILURE([cannot compute sizeof ($1), 77])])
8904N/A+ AS_TR_SH([ac_cv_sizeof_$1])=0
8904N/A # Arguments passed to configure.
8904N/A CONFIG_ARGS="$ac_configure_args"
8904N/A-# Sizes of various common basic types
8904N/A-# ANSI C requires sizeof(char) == 1, so no need to check it
8904N/A AC_MSG_CHECKING(for long long support)
8904N/A AC_MSG_RESULT($have_long_long)
8904N/A-if test "$have_long_long" = yes ; then
8904N/A-AC_CHECK_SIZEOF(long long, 8)
9245N/A- [AC_CHECK_SIZEOF(uintptr_t, 4)],
8904N/A-AC_MSG_CHECKING(size of off_t)
8904N/A-AC_CACHE_VAL(ac_cv_sizeof_off_t,
8904N/A- FILE *f=fopen("conftestval", "w");
8904N/A- fprintf(f, "%d\n", sizeof(off_t));
8904N/A-ac_cv_sizeof_off_t=`cat conftestval`,
8904N/A-AC_MSG_RESULT($ac_cv_sizeof_off_t)
8904N/A-AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t,
8904N/A-[The number of bytes in an off_t.])
8904N/A AC_MSG_CHECKING(whether to enable large file support)
8904N/A-if test "$have_long_long" = yes -a \
8904N/A- "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
8904N/A- "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
8904N/A- AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
8904N/A- [Defined to enable large file support when an off_t is bigger than a long
8904N/A- and long long is available and at least as big as an off_t. You may need
8904N/A- to add some flags for configuration and compilation to enable this mode.
8904N/A- (For Solaris and Linux, the necessary defines are already defined.)])
8904N/A-AC_MSG_CHECKING(size of time_t)
8904N/A-AC_CACHE_VAL(ac_cv_sizeof_time_t,
8904N/A- FILE *f=fopen("conftestval", "w");
8904N/A- fprintf(f, "%d\n", sizeof(time_t));
8904N/A-ac_cv_sizeof_time_t=`cat conftestval`,
8904N/A-AC_MSG_RESULT($ac_cv_sizeof_time_t)
8904N/A-AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t,
8904N/A-[The number of bytes in a time_t.])
8904N/A-# if have pthread_t then define SIZEOF_PTHREAD_T
8904N/A-if test "$ac_cv_kpthread" = "yes"
8904N/A-elif test "$ac_cv_kthread" = "yes"
8904N/A-elif test "$ac_cv_pthread" = "yes"
8904N/A-AC_MSG_CHECKING(for pthread_t)
8904N/A-AC_TRY_COMPILE([#include <
pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes)
8904N/A-AC_MSG_RESULT($have_pthread_t)
8904N/A-if test "$have_pthread_t" = yes ; then
8904N/A- AC_MSG_CHECKING(size of pthread_t)
8904N/A- AC_CACHE_VAL(ac_cv_sizeof_pthread_t,
8904N/A- FILE *f=fopen("conftestval", "w");
8904N/A- fprintf(f, "%d\n", sizeof(pthread_t));
8904N/A- ac_cv_sizeof_pthread_t=`cat conftestval`,
8904N/A- AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
8904N/A- AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t,
8904N/A- [The number of bytes in a pthread_t.])
9245N/A+AC_DEFINE(HAVE_LARGEFILE_SUPPORT, 1,
9245N/A+[Defined to enable large file support when an off_t is bigger than a long
9245N/A+ and long long is available and at least as big as an off_t. You may need
9245N/A+ to add some flags for configuration and compilation to enable this mode.
9245N/A+ (For Solaris and Linux, the necessary defines are already defined.)])
8904N/A AC_MSG_CHECKING(for --enable-toolbox-glue)
8904N/A AC_ARG_ENABLE(toolbox-glue,
8904N/A case $ac_sys_system/$ac_sys_release in
8904N/A- SunOS*) if test "$GCC" = yes;
8904N/A- else CCSHARED="-xcode=pic32";
8904N/A hp*|HP*) if test "$GCC" = yes;
8904N/A AC_MSG_CHECKING(for UCS-4 tcl)
8904N/A ac_cv_wchar_t_signed=yes)])
8904N/A AC_MSG_RESULT($ac_cv_wchar_t_signed)
8904N/A+ PY_CHECK_SIZEOF(wchar_t, 4, [
8904N/A AC_MSG_CHECKING(what type to use for unicode)
8904N/A CONFINCLUDEDIR= $(exec_prefix)/include
8904N/A # Detailed destination directories
8904N/A-BINLIBDEST= $(LIBDIR)/python$(VERSION)
8904N/A-LIBDEST= $(SCRIPTDIR)/python$(VERSION)
8904N/A-INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
8904N/A-CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION)
8904N/A-LIBP= $(LIBDIR)/python$(VERSION)
8904N/A+LIBDEST= $(SCRIPTDIR)/python$(VERSION)
8904N/A+INCLUDEPY= $(INCLUDEDIR)/python$(VERSION)
8904N/A+CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION)
8904N/A # Symbols used for using shared libraries
8904N/A # Install the include files
8904N/A INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
8904N/A @for i in $(INCLDIRSTOMAKE); \