Commit Graph

1429 Commits

Author SHA1 Message Date
Thomas Wouters 70c21a1603 Move (actually copy) support for the sgi._getpty() function into
posix.openpty(). And conveniently also check if CVS write access really
works.

Closes SF patch #100722
2000-07-14 14:28:33 +00:00
Andrew M. Kuchling 8d2f2b2db2 From Sam Rushing's Medusa, via SF patch #100858: add & document
os.seteuid(), os.setegid(), os.setreuid(), os.setregid().
2000-07-13 01:26:58 +00:00
Vladimir Marangozov a618028e45 Second try: checks whether right shift extends the sign bit.
Adds caching and reverts back the 'return' to 'exit()' in
AC_TRY_RUN as recommended by the Autoconf documentation.
2000-07-12 05:05:06 +00:00
Vladimir Marangozov 676aa8894c Checks whether right shift extends the sign bit.
Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine
(in main(), use return instead of exit).

Closes patch #100832
2000-07-12 03:02:43 +00:00
Fred Drake ce81d59c0c Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
The actual test for it is only commented out in configure.in, so it can
be re-enabled if we ever run across the need for it again.
2000-07-09 14:39:29 +00:00
Greg Stein adf63d6c24 check for Pth *after* the standard system threading libraries. Pth should
not override those.

Submitted by: flight@users.sourceforge.net
2000-07-05 10:38:09 +00:00
Barry Warsaw a0f3c5c8d5 Document --with-thread as deprecated. This gets rid of the annoying
newline in configure --help.
2000-06-30 16:39:35 +00:00
Barry Warsaw ef82cd7234 Enable the garbage collection module by default. --without-cycle-gc
disables it.  The gc test is moved to just after the thread test, as
is the wctype-functions test.

Modules/Setup.config is generated instead of Modules/Setup.thread.

Applied SF patch #100684 (loewis) to fix help alignment bug.
2000-06-30 16:21:01 +00:00
Jeremy Hylton 2a2c218525 penultimate phase of Neil Schemenauer's GC patches
update configure files (turn --with-cycle-gc on for beta release?)
2000-06-30 04:57:55 +00:00
Guido van Rossum b9a22a1a36 Bump version to 2.0.
Note that configure hadn't been checked in a few times so it has more
changes, catching up with the last few changes to congifure.in as
well.
2000-06-30 02:48:53 +00:00
Barry Warsaw c0d24d8bbf Thread support is turned on my default now. To disable building
threads use --without-threads.  No extra tests of thread/compiler
combinations have been added.

--with(out)-thread and --with(out)-threads are completely
interchangeable.

--with-threads still supports the =DIRECTORY option for specifying
where to find thread libraries.
2000-06-29 16:12:00 +00:00
Fred Drake 8cef4cf737 Thomas Wouters <thomas@xs4all.net>:
This patch adds the openpty() and forkpty() library calls to posixmodule.c,
when they are available on the target
system. (glibc-2.1-based Linux systems, FreeBSD and BSDI at least, probably
the other BSD-based systems as well.)

Lib/pty.py is also rewritten to use openpty when available, but falls
back to the old SGI method or the "manual" BSD open-a-pty
code. Openpty() is necessary to use the Unix98 ptys under Linux 2.2,
or when using non-standard tty names under (at least) BSDI, which is
why I needed it, myself ;-) forkpty() is included for symmetry.
2000-06-28 16:40:38 +00:00
Andrew M. Kuchling 22c6934885 Regenerated autoconf files. There's an extra change to config.h.in beyond
the mremap() change I made; did someone modify configure.in previously
without recreating these files?
2000-06-18 15:07:40 +00:00
Greg Ward 57c9a663cb When building on Solaris and the compiler is GCC, use '$(CC) -G' to
create shared extensions rather than 'ld -G'.  This ensures that shared
extensions link against libgcc.a, in case there are any functions in the
GCC runtime not already in the Python core.
2000-05-26 12:22:54 +00:00
Guido van Rossum 32000e8464 Reduce opt level for BeOS - Donn Cave. 2000-05-22 21:31:50 +00:00
Guido van Rossum 95713eb9d6 Fix the test for socklen_t so that it searches through sys/socket.h. 2000-05-18 20:53:31 +00:00
Guido van Rossum a28518a6a6 Add check for rint() in math library. 2000-05-11 18:41:32 +00:00
Guido van Rossum 07bd90e92d Andy Dustman: add GNU pth user-space thread support. 2000-05-08 13:41:38 +00:00
Guido van Rossum 59903fe2b5 Added tests for socklen_t 2000-04-24 15:12:04 +00:00
Guido van Rossum 6a6a77c6af Add Python version bump to configure script. (AMK) 2000-03-31 15:15:17 +00:00
Guido van Rossum ef2255b1dd Part of the Unicode checkin for Marc-Andre Lemburg.
Some new configuration tests and a new option, --with-wctype-functions.
2000-03-10 22:30:29 +00:00
Guido van Rossum 02a1c40051 Pat Knight:
Solaris 2 has stub implementations of the POSIX thread functions such as
pthread_detach in libc. This means that configure tries to use them without
-lpthread, then the test of pthread_create fails and the configuration
falls back to the Solaris thread library. This patch moves the test for
pthread_create in -lpthread ahead of the test for pthread_detach in libc.
The patch also ensures that -lpthread is at the start of the library list
when linking, to pick up POSIX thread semantics for fork (see below).

Justification.
Use of POSIX threads on Solaris ensures that the fork() call only runs the
thread that called fork() in the child. This is desirable to prevent (for
example) parent server or database threads running in the child. Sun's
-lthread library uses a traditional fork() which replicates all the
parent's threads in the child. I find this undesirable.

Digression.
The configure.in seems to always test for -lthread even if a POSIX library
is found. I'm not enough of a configure.in wizard to decide whether this is
desirable or how to fix it. It is also irrelevant to this patch - I just
spotted it while testing.
End of Digression.
2000-02-25 19:26:31 +00:00
Guido van Rossum ff484183de According to Harri Pasanen, the Solaris+gcc test for LINKFORSHARED
needed an adaptation for the latest gcc -- we need to grep stderr as
well as stdout for the magic string BFD.  (Does anybody know what BFD
means?)
2000-02-03 13:50:24 +00:00
Guido van Rossum e97ee18115 Changes to auto-detect the correct dynload_<platform>.c file.
NOTE: Windows, Mac and OS/2 build procedures must be adapted manually!

This is part of a set of patches by Greg Stein.
1999-12-20 21:27:22 +00:00
Guido van Rossum 9501219303 Patch by Geoff Furnish to make compiling with C++ more gentle.
(The configure script is regenerated, not from his patch.)
1999-12-16 17:50:52 +00:00
Fred Drake f581db15a3 Remove test for getlogin_r(); the interface is not clearly defined, at
least on Solaris (sometimes it's Unix98, sometimes it conforms to an
early draft).

Properly generate config.h.in using autoheader instead of editing it
manually; thanks, Guido!
1999-12-14 21:11:47 +00:00
Fred Drake 3bb3e5773b Added detection of getlogin() and getlogin_r(). 1999-12-14 20:48:17 +00:00
Fred Drake 35a092fece Added detection for getgroups(), fpathconf(), pathconf(),
confstr(), and sysconf().
1999-12-13 16:23:35 +00:00
Fred Drake 89143df520 Added support for ctermid, tempnam, tmpfile, tmpnam, and tmpnam_r. 1999-12-09 22:03:25 +00:00
Guido van Rossum 0eefa3fbbf Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).

See accompanying patches to acconfig.h and importdl.c.
1999-11-16 15:57:37 +00:00
Guido van Rossum f5957eaf0a Dynamic linking support for BSD/OS 4.x as suggested by Vivek Khera 1999-10-05 21:59:33 +00:00
Guido van Rossum 458e7fab9b Erik Lindvall contributed a BSD/OS 4 patch for LDSHARED. 1999-09-17 15:40:40 +00:00
Guido van Rossum a8acf72afa Need to double the macro brackets in FreeBSD check.
(My fault, not Dom's -- he submitted a correct patch to configure.)
1999-04-27 22:06:08 +00:00
Guido van Rossum eeb63fd6c2 FreeBSD/[34]* change, Dom Mitchell. 1999-04-21 17:03:13 +00:00
Guido van Rossum 96f2eb93e3 The usual 1999-04-10 16:02:18 +00:00
Guido van Rossum 8137680704 For BeOS PowerPC. Chris Herborth. 1999-04-06 15:50:51 +00:00
Guido van Rossum 6b9da45969 Chris Herborth: the new compiler in R4.1 needs some new options to work... 1999-03-24 17:48:12 +00:00
Guido van Rossum 8db7d8bf6b Ack! It never defined HAVE_GETHOSTBYNAME_R so that code was never tested! 1999-03-23 16:40:33 +00:00
Guido van Rossum a96f0ba7cc Add code to test for all sorts of gethostbyname_r variants,
donated by David Arnold.
1999-03-22 21:49:51 +00:00
Guido van Rossum 79e8f1b773 # the usual 1999-02-23 18:07:51 +00:00
Guido van Rossum 54ecc3d24f Patches by William Lewis for Nextstep descendants. 1999-01-27 17:53:11 +00:00
Guido van Rossum 7a5f420e67 Chris Herborth's first pass at making config and install
for BeOS better.
1999-01-12 20:30:23 +00:00
Guido van Rossum e6c2cf1c3d Now using autoconf 2.13 1999-01-08 21:08:33 +00:00
Guido van Rossum df69365f5f Ty Sarna writes:
The following patches (relative to 1.5.2b1) enable Python dynamic
loading to work on NetBSD platforms that use ELF (presnetly mips and
alpha systems).  They automaticly determine wether the system is ELF or
a.out rather than using astatic list of platforms so that when other
NetBSD platforms move to ELF, python will continue to work without
change.
1999-01-07 21:50:41 +00:00
Guido van Rossum f98e2a787e Changes for long file support by Steve Clift. 1999-01-06 18:53:34 +00:00
Guido van Rossum ea5163261e The usual 1998-12-17 18:08:55 +00:00
Guido van Rossum dd997f79b4 Add test for BSDI -- by Nigel Head and otto@mail.olympus.net. 1998-10-07 19:58:26 +00:00
Guido van Rossum ad678af89b The usual 1998-10-02 14:42:15 +00:00
Guido van Rossum ec95c7bd2b Changes for BeOS, QNX and long long, by Chris Herborth. 1998-08-04 17:59:56 +00:00
Guido van Rossum 6b3d77e6a9 Guess what... 1998-07-07 21:11:02 +00:00
Guido van Rossum 08d6be4871 Add timegm to list of functions tested, for Marc-Andre L. 1998-06-11 15:19:05 +00:00
Guido van Rossum b93a86297d support hpux pthreads 1998-05-07 13:27:32 +00:00
Guido van Rossum ee21f418b0 Remove bogus CCSHARED for cc on IRIX 6.x. 1998-04-20 18:51:54 +00:00
Guido van Rossum 1f74016735 Support for OpenBSD :-( 1998-04-13 15:27:21 +00:00
Guido van Rossum 70c7f48b9b Get rid of the check for -linet -- recent Sequent Dynix systems don't
need this any more and apparently it screws up their configuration.
1998-03-26 18:44:10 +00:00
Guido van Rossum 1809975a29 Added mktime to checked functions 1998-03-06 17:14:34 +00:00
Guido van Rossum 56896dd5bb Setting LINKFORSHARED for IRIX was a mistake. 1998-03-05 16:59:36 +00:00
Guido van Rossum 2b5ca00305 Some changes because gcc on SGI doesn't support '-all' 1998-03-05 15:41:09 +00:00
Guido van Rossum 69f65801ab Misc changes for AIX: install the python.exp file, and properly use $(srcdir). 1998-03-03 21:47:00 +00:00
Guido van Rossum 357428567c Different way to suppores the DGUX rule 1998-02-19 21:32:40 +00:00
Guido van Rossum 8f006272fe Some shifting around of the DGUX hack so that it won't break on DEC Unix
where Make doesn't know that '#' as a command is a comment.
1998-01-13 19:03:09 +00:00
Guido van Rossum 3c4bb802d0 Patch by Brian Gallew for DG/UX. I'm not quite sure what it does but
it seems harmless for other platforms.  It plays tricks with the name
of the library used to link with.  Apparently DG/UX really wants a
shared library to link with if it wants shared modules to use symbols
from the library.  I'm not sure why this wasn't an issue with 1.4;
DG/UX seems to be the only platform where moving to a single library
made things harder!

BTW This adds a target to create libpython$(VERSION).so; however this
target is *only* for DG/UX.
1997-12-18 23:55:32 +00:00
Guido van Rossum 8f4ceb168c Two unrelated changes:
- add test for strptime (not used by the core but needed by Marc Lemburg's
Date object).

- Test for GNU ld on Solaris; need to add an extra linker option to
export symbols in that case.
1997-12-18 23:42:19 +00:00
Guido van Rossum 009f78754d When --with-thread(s) is specified, the thread module is now automatically
enabled.  This is done through a substitution in Modules/Setup.thread(.in).
Bill Janssen will be happy.  The original idea was by Lele Gaifax (though
I changed the implementation to use a separate file).
1997-12-04 00:51:42 +00:00
Guido van Rossum 4954595036 Changes for FreeBSD and NetBSD: NetBSD does shared libs just like FreeBSD
(big surprise), and FreeBSD has pthread support in -lc_r -- maybe NetBSD
has too.
1997-12-02 19:28:29 +00:00
Guido van Rossum 2d9feeddf3 Change the option used on Linux to export all symbols
from the main program to shared libraries.  On mklinux, the old
'-rdynamic' doesn't work; the new '-Xlinker -export-dynamic' works
both there and on Intel Linux platforms.
1997-11-24 17:36:21 +00:00
Guido van Rossum 2efa34ba9b Daniel Larsson discovered another cut-n-paste bug in the Olimit story... 1997-10-23 17:43:11 +00:00
Guido van Rossum 304dd2defb Switch around OPT assignments in Don Beaudry's patch for Olimit (his
code had the assignments switched around).

Also rename sharedmodules to lib-dynload.
1997-10-20 23:10:56 +00:00
Guido van Rossum 91922677ea Don Beaudry's changes to support SGI_ABI on Irix 6.x. 1997-10-09 20:24:13 +00:00
Guido van Rossum 9601315140 Add checks for setlocale() and <locale.h> 1997-10-08 22:47:52 +00:00
Guido van Rossum b97ef1768f Remove plat- prefix from MACHDEP macro;
instead it is added to MACHDEPPATH in Modules/Setup.in
1997-09-28 05:44:03 +00:00
Guido van Rossum bbd6152fec Prefix MACHDEP directory with 'plat-'. 1997-09-08 01:56:35 +00:00
Guido van Rossum 45140f97a6 Subtle changes to the AIX shared library things to make them work
when building outside the source directory.  Courtesy Donn Cave.
1997-08-29 18:44:06 +00:00
Guido van Rossum 1171ee6aaf Added configuration tests for presence of alarm(), pause(), and getpwent() 1997-08-22 20:42:00 +00:00
Guido van Rossum 24b1e75c1f the usual 1997-08-21 02:29:16 +00:00
Guido van Rossum 25f93036bb Moved inclusion of PURIFY in LINKCC to configure 1997-08-18 16:00:04 +00:00
Guido van Rossum 0393e18b18 Fix LINKCC for AIX 1997-08-18 14:12:12 +00:00
Guido van Rossum 749af7c1c8 the usual 1997-08-16 14:35:52 +00:00
Guido van Rossum 76c5fe2d06 The usual 1997-08-14 19:45:07 +00:00
Guido van Rossum b06df27843 --with-readline is obsolete (and some editorial stuff in README) 1997-08-05 21:50:20 +00:00
Guido van Rossum 1fd74a713d The usual 1997-07-19 19:36:02 +00:00
Guido van Rossum edca74a627 The usual 1997-07-18 23:29:40 +00:00
Guido van Rossum ad71370279 Added check whether malloc(0) returns NULL or not. 1997-07-10 22:42:38 +00:00
Guido van Rossum db7098cad5 The usual 1997-05-30 14:24:16 +00:00
Guido van Rossum 9726690478 More usual effects of a new configure.in 1997-05-22 20:36:45 +00:00
Guido van Rossum 0be3e4936f The usual effects of a new configure.in 1997-05-22 20:33:33 +00:00
Guido van Rossum 201afe56d3 Add -Olimit 1500 to OPT if CC supports it. 1997-05-14 21:14:44 +00:00
Guido van Rossum e4766f69bc The usual 1997-05-13 21:04:26 +00:00
Guido van Rossum 7f25391e11 The usual. 1997-05-09 02:42:48 +00:00
Guido van Rossum 37e97bc36b The usual. 1997-04-29 22:15:33 +00:00
Guido van Rossum 07397974da The usual. 1997-04-29 21:49:50 +00:00
Guido van Rossum ec2f073a9c The usual 1997-01-22 20:54:01 +00:00
Guido van Rossum b7cf5bb1c2 Darn. Updated version number for configure.in. 1997-01-21 22:03:53 +00:00
Guido van Rossum f78abae10f Let --with-threads be an alias for --with-thread. 1997-01-21 22:02:36 +00:00
Guido van Rossum 3c83bb49d0 The usual... 1996-12-31 22:35:16 +00:00
Guido van Rossum 6c31a14de7 The usual 1996-12-10 17:19:28 +00:00
Guido van Rossum ccaf3b6d11 The usual. 1996-12-06 21:19:16 +00:00
Guido van Rossum 563e708080 the usual 1996-09-10 18:20:48 +00:00
Guido van Rossum 90eea07d28 The usual 1996-08-30 20:58:57 +00:00
Guido van Rossum 2b3ac69a3a The usual 1996-08-30 15:18:41 +00:00
Guido van Rossum 84e7b248f0 The usual... 1996-08-19 21:59:00 +00:00
Guido van Rossum 9caf77a485 Put definition of _REENTRANT in config.h 1996-08-01 00:52:26 +00:00
Guido van Rossum 42dcad36a9 The usual 1996-07-31 22:48:44 +00:00
Guido van Rossum a68acba5ad The usual 1996-07-31 17:36:39 +00:00
Guido van Rossum 7b3853fb02 Follow new configure.in 1996-07-30 18:09:35 +00:00
Guido van Rossum 57d091557c putenv 1996-07-24 02:42:38 +00:00
Guido van Rossum 81652ab67a Use gcc, not gcc-elf on Linux 1996-07-21 02:53:27 +00:00
Guido van Rossum 22b6db625a added plock 1996-06-28 20:18:10 +00:00
Guido van Rossum 2d38f9146b result of new configure.in 1996-06-26 19:47:01 +00:00
Guido van Rossum 48bdbfc1a9 see new configure.in 1996-05-28 22:53:48 +00:00
Guido van Rossum 2242fd1c22 fix several bugs in tr argument lists 1995-09-19 16:19:29 +00:00
Guido van Rossum e77438cce0 new version from configure.in 1995-09-13 18:59:59 +00:00
Guido van Rossum 8ddd0addba derived from new configure.in 1995-06-14 23:10:28 +00:00
Guido van Rossum 8b131c5f27 the usual 1995-03-09 14:10:13 +00:00
Guido van Rossum af07a44428 the usual 1995-02-13 19:45:27 +00:00
Guido van Rossum da88dadabd the usual 1995-01-26 00:46:29 +00:00
Guido van Rossum 0ddb028444 the usual 1995-01-17 16:46:14 +00:00
Guido van Rossum 79dddcbd13 the usual 1995-01-12 12:25:42 +00:00
Guido van Rossum af5b83ec4a README: changed URL format to <URL:...>; added section on Tk.
Makefile.in: run config.status in "make recheck".
configure.in: add test for hypot().
config.h.in, configure: since configure.in changed.
rest: the usual boring stuff.
1995-01-04 19:02:35 +00:00
Guido van Rossum 76be6eda96 The usual changes when a release is nearing... 1995-01-02 18:33:54 +00:00
Sjoerd Mullender 40272f812b Removed erroneous +.
(Patched manually since configure.in not yet ported to autoconf 2.0.)
1994-11-03 13:46:57 +00:00
Guido van Rossum 8eee56f0ae the usual 1994-10-20 22:18:37 +00:00
Guido van Rossum dabb11b2a2 add test for volatile 1994-10-11 15:04:27 +00:00
Guido van Rossum 0a516c99dd The usual junk 1994-09-12 10:58:40 +00:00
Guido van Rossum b1ba03f045 Match new configure.in 1994-08-19 15:34:50 +00:00
Guido van Rossum a0e9a77183 * configure.in, Makefile.in: remove the AC_PREFIX() call -- it's
more trouble than it's worth at CWI and most other people seem to
	install Python in the default (/usr/local) anway.  Changed comment
	describing --prefix in Makefile.in
1994-08-12 13:18:25 +00:00
Guido van Rossum 7f43da7d61 Merge rev alpha100 bck into main trunk 1994-08-01 12:15:30 +00:00
Guido van Rossum 6085e32a75 Alpha 1.0.0 1993-12-26 18:24:40 +00:00
Guido van Rossum 627b2d7cd7 New files 1993-12-24 10:39:16 +00:00