From af07a4442817d28e8733703190aeb54e7da3238f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 13 Feb 1995 19:45:27 +0000 Subject: the usual --- ChangeLog | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- Makefile.in | 1 + README | 9 ++-- configure | 114 +++++++++++++++++++++++---------------------- configure.in | 8 +++- 5 files changed, 218 insertions(+), 64 deletions(-) diff --git a/ChangeLog b/ChangeLog index a57f6d6..acfcab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,151 @@ +Mon Feb 13 12:39:16 1995 Guido van Rossum + + * README: removed remark on NeXT and -posix since this is now done + by configure + + * Mac/config.c, Modules/config.c.in (getversion): tack compiler + name and version (where known) onto version string + + * Python/{ceval.c,bltinmodule.c}: call __import__ with 4 + arguments: modulename, globals, locals, list_of_from_names_or_None + (for Ken Manheimer) + + * Objects/floatobject.c: work-around for NeXT Sparc 3.3 prerelease + (Barry Warsaw) + + * Python/ceval.c (eval_code): call locals_2_fast before doing + import from (Jim Roskind) + +Fri Feb 10 17:08:35 1995 Guido van Rossum + + * Objects/object.c (newvarobject), Include/objimpl.h: make size + argument signed + + * Include/allobjects.h, several other files: introduce + Py_CHARMASK(c) which expands to c&0xff, or just c if characters + are unsigned. This should fix problems with passing negative + values to isspace() and friends for characters > 0x7f on systems + where 'char' is signed + +Thu Feb 9 10:26:21 1995 Guido van Rossum + + * Lib/copy.py: added __doc__ strings + + * Lib/shelve.py: added __doc__ strings + + * Lib/anydbm.py: added __doc__ strings and test for gdbm + + * Include/longintrepr.h: remove untrue comment about + signed/unsigned ob_size + + * Modules/mpzmodule.c (mpz_div_and_mod): add proper casts (Jim + Fulton) + +Wed Feb 8 15:48:24 1995 Guido van Rossum + + * Python/bltinmodule.c (do_pow), Objects/floatobject.c + (float_pow): move check for negative float to the float power to + the pow() function, so negative float to the integer power can be + implemented correctly (after coercion to float) + +Tue Feb 7 10:14:34 1995 Guido van Rossum + + * Python/import.c (init_frozen): make it non-static, so + frozenmain.c can use it. Also remove the reference to + frozenmain.o from Python/Makefile.in + + * Doc/{ref6.tex,ref7.tex} (raise, except): describe classes and + instances used as exceptions (R Lindsay Todd) + + * Lib/test/test_exceptions.py: added tests for raising classes (R + Lindsay Todd) + + * Python/ceval.c (exec_statement): DECREF result of run_string + (Mark Lutz) + + * Modules/cursesmodule.c: patches to clear errors between failing + calls to Arg_Parse (Steve Clift) + +Fri Feb 3 13:48:12 1995 Guido van Rossum + + * Lib/bdb.py (format_stack_entry): append () to function name if + no __args__ + + * Lib/pdb.py (print_stack_entry): default prompt_prefix is + line_prefix, and use the default everywhere + +Thu Feb 2 15:27:15 1995 Guido van Rossum + + * Python/pythonrun.c (print_error): print class name for + exceptions that are classes (R Lindsay Todd) + + * Modules/tkintermodule.c: use PyCallable_Check instead of + manually checking for some callable types for callbacks; export + TK_VERSION and TCL_VERSION strings; a few Tk 4.0 specific changes + + * Modules/socketmodule.c (initsocket): added a long list of socket + related constants -- better here than in a separate python module, + because the values change per system (R Lindsay Todd) + + * Doc/{lib.tex,libsignal.tex}: added documentation for signal + module (Andrew Kuchling) + +Tue Jan 31 13:06:59 1995 Guido van Rossum + + * Include/pythonrun.h: remove declaration of (now static) + run_pyc_file + + * Modules/posixmodule.c (posix_utime): correct typo in utime() + stub + +Tue Jan 31 11:02:00 1995 Guido van Rossum + + * Modules/{pwdmodule.c,grpmodule.c} (mkpwent, mkgrent): NeXT + specific patch for little endian machines where the uid and gid + are in the wrong place in the structure (Mike Carlton) + +Mon Jan 30 16:17:33 1995 Guido van Rossum + + * configure.in: add -posix to definition of CC when detecting Next + +Mon Jan 30 13:32:07 1995 Guido van Rossum + + * Mac/*: not clearly logged are lots of changes to the Mac + specific modules, e.g. reworking of the interrupt detection code + and general reorganization of macglue.[ch], as well as support for + modules generated by "bgen" (see Demo/bgen), and subsequent + removal of the resource and sound interfaces from MacOS (since + they now have their own, complete, generated interface), and also + lots of development on the mactcp and macfs front + + * Modules/stdwinmodule.c (initstdwin): disable python's own event + processing on the mac as soon as stdwin is imported; removed some + unused variables + + * Parser/intrcheck.c: moved all mac specific stuff to + Mac/macglue.c + + * Python/pythonrun.c (goaway): Think C mod to suppress pausing at + normal exit + + * Python/import.c (imp_get_magic): fix glaring indexing bug + + * Modules/dbmmodule.c (dbm_keys): fix memory leak and tighten + error checking (and redo lay-out) + +Fri Jan 27 00:00:17 1995 Guido van Rossum + + * Objects/listobject.c: round up item count on resize to improve + realloc performance (dramatic effect in the Mac with Think C!) + + * Include/{rename2.h,methodobject.h}, Objects/methodobject.c: + added support for chaining method lists: Py_FindMethodInChain + +Thu Jan 26 12:59:51 1995 Guido van Rossum + + * Python/Makefile.in: removed frozenmain.o from OBJS -- it has no + business being in libPython.a. (Still build it though.) + Thu Jan 26 00:42:29 1995 Guido van Rossum * Lib/mhlib.py: fix bogus test for matching regex @@ -19,7 +167,7 @@ Thu Jan 26 00:42:29 1995 Guido van Rossum * Objects/object.c, Python/bltinmodule.c: moved callable() to object.c (from static in bltinmodule.c) since it is generally - useful (and I needed it :-) + useful (and I needed it :-); removed some unused vars Wed Jan 25 13:20:52 1995 Guido van Rossum diff --git a/Makefile.in b/Makefile.in index dc8de8c..7d09e35 100644 --- a/Makefile.in +++ b/Makefile.in @@ -230,6 +230,7 @@ clean: localclean localclobber: localclean -rm -f tags TAGS python + -rm -f config.log config.cache config.h Makefile clobber: localclobber -for i in $(SUBDIRS); do \ diff --git a/README b/README index f8cdbd4..dc9f56d 100644 --- a/README +++ b/README @@ -52,13 +52,10 @@ AIX users: read the file Misc/AIX-NOTES before trying to build. HP-UX users: read the file Misc/HPUX-NOTES if you want to be able to use shared libraries for dynamically loaded modules. -Minix users: when using ack, use "CC=cc AR=aal RANLIB=: ./configure"! +DEC Alpha users: unless you like debugging GCC, pass "--without-gcc" +to the configure script. -NeXT users: everything must be linked and compiled with "-posix". -Until I find out how to let the configure script do that -automatically, the best way is to run compile with "CC='cc -posix'" in -the environment; the next best way is to edit the toplevel Makefile -(after running configure) to add -posix to OPT. +Minix users: when using ack, use "CC=cc AR=aal RANLIB=: ./configure"! You can configure the interpreter to contain fewer or more built-in modules by editing the file Modules/Setup. This file is initially diff --git a/configure b/configure index ed2f7e8..8f6beb2 100755 --- a/configure +++ b/configure @@ -775,7 +775,8 @@ if test -s conftest && (./conftest; exit) 2>/dev/null; then cat >> confdefs.h <<\EOF #define _POSIX_SOURCE 1 EOF - was_it_defined=yes + +CC="$CC -posix"; was_it_defined=yes fi fi rm -fr conftest* @@ -788,7 +789,7 @@ if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include @@ -810,7 +811,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -828,7 +829,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -849,7 +850,7 @@ if test "$cross_compiling" = yes; then ac_cv_header_stdc=no else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -886,7 +887,7 @@ if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < EOF @@ -923,7 +924,7 @@ if eval "test \"`echo '${'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -962,7 +963,7 @@ else ac_save_LIBS="$LIBS" LIBS="$LIBS -ldir " cat > conftest.$ac_ext < conftest.$ac_ext <&4 cat > conftest.$ac_ext < EOF @@ -1053,7 +1054,7 @@ if eval "test \"`echo '${'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1084,7 +1085,7 @@ if eval "test \"`echo '${'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1115,7 +1116,7 @@ if eval "test \"`echo '${'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1146,7 +1147,7 @@ if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include @@ -1180,7 +1181,7 @@ if eval "test \"`echo '${'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1211,7 +1212,7 @@ if eval "test \"`echo '${'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < EOF @@ -1294,7 +1295,10 @@ echo $ac_n "checking CCSHARED""... $ac_c" 1>&4 if test -z "$CCSHARED" then case $ac_sys_system in - hp*|HP*) CCSHARED="+z";; + hp*|HP*) if test "$GCC" = yes; + then CCSHARED="-fpic"; + else CCSHARED="+z"; + fi;; esac fi echo "$ac_t""$CCSHARED" 1>&4 @@ -1317,7 +1321,7 @@ else ac_save_LIBS="$LIBS" LIBS="$LIBS -ldl " cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1869,7 +1873,7 @@ if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1912,7 +1916,7 @@ if eval "test \"`echo '${'ac_cv_func_getpgrp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -1943,7 +1947,7 @@ fi if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then echo "$ac_t""yes" 1>&4 cat > conftest.$ac_ext < int main() { return 0; } @@ -1969,7 +1973,7 @@ if eval "test \"`echo '${'ac_cv_func_setpgrp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -2000,7 +2004,7 @@ fi if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then echo "$ac_t""yes" 1>&4 cat > conftest.$ac_ext < int main() { return 0; } @@ -2026,7 +2030,7 @@ if eval "test \"`echo '${'ac_cv_func_gettimeofday'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -2057,7 +2061,7 @@ fi if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then echo "$ac_t""yes" 1>&4 cat > conftest.$ac_ext < int main() { return 0; } @@ -2087,7 +2091,7 @@ if eval "test \"`echo '${'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include @@ -2120,7 +2124,7 @@ if eval "test \"`echo '${'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include @@ -2152,7 +2156,7 @@ if eval "test \"`echo '${'ac_cv_struct_tm_zone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #include <$ac_cv_struct_tm> @@ -2183,7 +2187,7 @@ if eval "test \"`echo '${'ac_cv_var_tzname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < #ifndef tzname /* For SGI. */ @@ -2219,7 +2223,7 @@ if eval "test \"`echo '${'ac_cv_header_time_altzone'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&4 else cat > conftest.$ac_ext < int main() { return 0; } @@ -2249,7 +2253,7 @@ fi was_it_defined=no echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&4 cat > conftest.$ac_ext < @@ -2281,7 +2285,7 @@ else if test "$GCC" = yes; then # GCC predefines this symbol on systems where it applies. cat > conftest.$ac_ext <&2; exit 1; } else cat > conftest.$ac_ext <&4 else cat > conftest.$ac_ext <&4 cat > conftest.$ac_ext <&4 works=no echo $ac_n "checking for working signed char""... $ac_c" 1>&4 cat > conftest.$ac_ext <&4 have_prototypes=no echo $ac_n "checking for prototypes""... $ac_c" 1>&4 cat > conftest.$ac_ext <&4 works=no echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&4 cat > conftest.$ac_ext < @@ -2507,7 +2511,7 @@ if test "$have_prototypes" = yes; then bad_prototypes=no echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&4 cat > conftest.$ac_ext < int main() { return 0; } @@ -2535,7 +2539,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&4 va_list_is_array=no echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&4 cat > conftest.$ac_ext < conftest.$ac_ext <&4 else cat > conftest.$ac_ext < /* Arbitrary system header to define __stub macros. */ int main() { return 0; } @@ -2726,7 +2730,7 @@ else ac_cv_func_getopt=no else cat > conftest.$ac_ext < extern int optind, opterr, getopt(); diff --git a/configure.in b/configure.in index f471614..0ef0473 100644 --- a/configure.in +++ b/configure.in @@ -50,7 +50,8 @@ AC_TRY_RUN([ #ifdef _NEXT_SOURCE main() { exit(0); } #endif -], AC_DEFINE(_POSIX_SOURCE) was_it_defined=yes) +], AC_DEFINE(_POSIX_SOURCE) +CC="$CC -posix"; was_it_defined=yes) AC_MSG_CHECKING(for NeXT) AC_MSG_RESULT($was_it_defined) @@ -127,7 +128,10 @@ AC_MSG_CHECKING(CCSHARED) if test -z "$CCSHARED" then case $ac_sys_system in - hp*|HP*) CCSHARED="+z";; + hp*|HP*) if test "$GCC" = yes; + then CCSHARED="-fpic"; + else CCSHARED="+z"; + fi;; esac fi AC_MSG_RESULT($CCSHARED) -- cgit v0.12