Commit Graph

541 Commits

Author SHA1 Message Date
Guido van Rossum 402905eaa0 Fix typo. It's --with-universal-newlines, not
--with-universal-newline.
2002-08-15 13:56:35 +00:00
Martin v. Löwis d6359c55cc Always link libpython.so with LIBS. Fixes #589422. 2002-08-04 12:38:50 +00:00
Jack Jansen ea0c3828c0 - Get _environ through the NSEnviron call in a MacOSX framework. This allows
us to completely decouple the framework from the executable, so we
  can use a two-level namespace.
- Do framework builds with a twolevel namespace.
- Reorganized the code that creates the minimal framework in the build
  directory, to make it more robust against incomplete frameworks (from
  earlier aborted builds, or builds of previous Python versions).
2002-08-01 21:57:49 +00:00
Martin v. Löwis 1bc894b133 Shared libraries also work on GNU/Hurd. Suggested by Matthias Klose. 2002-07-30 20:19:58 +00:00
Neal Norwitz 1169011f6f SF patch #584245, get python to link on OSF1 (Dec Unix) 2002-07-30 01:08:28 +00:00
Martin v. Löwis 0cec0ffc78 Patch #573770: Implement lchown. 2002-07-28 16:33:45 +00:00
Martin v. Löwis 6f18a3c124 Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them
available in the configure tests already.
2002-07-20 08:51:52 +00:00
Guido van Rossum e5bd2f4447 Alas, roll back the definition of _XOPEN_SOURCE. It breaks the tests
for the time module, because somehow configure won't define the
symbols HAVE_STRUCT_TM_TM_ZONE, HAVE_TM_ZONE, and HAVE_TZNAME in this
case.

I've got no time to research this further, so I leave it in Jeremy and
Martin's capable hands to find a different solution for True64 (or to
devise a way to get the time tests to succeed while defining
_XOPEN_SOURCE).
2002-07-19 19:32:30 +00:00
Mark Hammond 8235ea1c3a Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT. 2002-07-19 06:55:41 +00:00
Mark Hammond b88169819c Add description for _XOPEN_SOURCE_ - needed to allow autoheader to succeed. 2002-07-19 06:31:24 +00:00
Jeremy Hylton 5a7ef7e2b5 Define _XOPEN_SOURCE in configure and Python.h.
This gets compilation of posixmodule.c to succeed on Tru64 and does no
harm on Linux.  We may need to undefine it on some platforms, but
let's wait and see.

Martin says:

> I think it is generally the right thing to define _XOPEN_SOURCE on
> Unix, providing a negative list of systems that cannot support this
> setting (or preferably solving whatever problems remain).
>
> I'd put an (unconditional) AC_DEFINE into configure.in early on; it
> *should* go into confdefs.h as configure proceeds, and thus be active
> when other tests are performed.
2002-07-18 22:39:34 +00:00
Jeremy Hylton af4c12f4c3 Use AC_FUNC_SETPGRP. 2002-07-18 20:25:46 +00:00
Jeremy Hylton 938ace69a0 staticforward bites the dust.
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure.  Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers.  (In
fact, we expect that the compilers are all fixed eight years later.)

I'm leaving staticforward and statichere defined in object.h as
static.  This is only for backwards compatibility with C extensions
that might still use it.

XXX I haven't updated the documentation.
2002-07-17 16:30:39 +00:00
Neil Schemenauer cccd1e7248 Remove the configure option for disabling the reference cycle GC. 2002-07-08 14:47:12 +00:00
Skip Montanaro 8345f719c8 Not sure how I forgot to check these in - thought I did all the files in one
fell swoop.  Anyway, this just deletes a couple checks for dbm-type header
files that are now performed in setup.py.  See patch 553108 for details.
2002-06-25 05:53:48 +00:00
Jack Jansen 0b06be7b0b Patch #557719 by Tony Lownds, slightly massaged by me: streamline the
OSX framework build process. Things fixed/modified:
- the filesystem case-sensitivity test now works for builds outside
  the source directory
- various other fixes for building outside the source directory
- python.app now has a target in the main Makefile
- WASTE and AquaTk are found more automatically
2002-06-21 14:48:38 +00:00
Skip Montanaro 57454e57f8 This introduces stricter library/header file checking for the Berkeley DB
library.  Since multiple versions can be installed simultaneously, it's
crucial that you only select libraries and header files which are compatible
with each other.  Version checking is done from highest version to lowest.
Building using version 1 of Berkeley DB is disabled by default because of
the hash file bugs people keep rediscovering.  It can be enabled by
uncommenting a few lines in setup.py.  Closes patch 553108.
2002-06-14 20:30:31 +00:00
Martin v. Löwis 606edc1d97 Patch #568235: Add posix.setpgid. 2002-06-13 21:09:11 +00:00
Martin v. Löwis f90ae20354 Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
Martin v. Löwis a3fb4f7816 Patch #505375: Make doc strings optional. 2002-06-09 13:33:54 +00:00
Michael W. Hudson 065c1a25d1 Stop testing for sigprocmask. This is a stop gap measure until I work
out how to just activate my code on platforms where I know it works
(currently only linux/x86).
2002-06-06 13:03:44 +00:00
Jason Tishler bc48826dc2 Patch #555929: Cygwin AH_BOTTOM cleanup patch (*** version 2 ***)
This patch complies with the following request found
near the top of configure.in:

# This is for stuff that absolutely must end up in pyconfig.h.
# Please use pyport.h instead, if possible.

I tested this patch under Cygwin, Win32, and Red
Hat Linux. Python built and ran successfully on
each of these platforms.
2002-06-04 15:07:08 +00:00
Martin v. Löwis 1931ca72b5 Use somewhat longer C++ program to detect whether linking requires the C++
compiler. Fixes #559429. 2.2 bugfix candidate.
2002-06-01 21:39:58 +00:00
Michael W. Hudson 34f20eac98 This is patch
[ 559250 ] more POSIX signal stuff

Adds support (and docs and tests and autoconfery) for posix signal
mask handling -- sigpending, sigprocmask and sigsuspend.
2002-05-27 15:08:24 +00:00
Martin v. Löwis 1e1fcef756 Back out #555929 2002-05-15 18:24:06 +00:00
Jason Tishler eadb6bb3c5 Patch #555929: Cygwin AH_BOTTOM cleanup patch
This patch complies with the following request found
near the top of configure.in:

# This is for stuff that absolutely must end up in pyconfig.h.
# Please use pyport.h instead, if possible.

I tested this patch under Cygwin, Win32, and Red
Hat Linux. Python built and ran successfully on
each of these platforms.
2002-05-15 11:51:33 +00:00
Martin v. Löwis 09bdf72be3 Patch #553403: Fix typo. 2002-05-08 08:51:29 +00:00
Martin v. Löwis b51033d48f Patch #551093: Let cygwin default to --enable-shared. 2002-05-03 05:53:15 +00:00
Neal Norwitz 3d94942000 #546163, fix link problem on Solaris 8 for makedev when using mknod 2002-04-20 13:46:43 +00:00
Martin v. Löwis a454857633 Test for --export-dynamic directly to avoid problems with binutils 2.12.
Will backport to 2.1 and 2.2.
2002-04-18 14:51:36 +00:00
Martin v. Löwis e8aea58b99 Move WITH_UNIVERSAL_NEWLINES template into configure.in. 2002-04-16 05:51:02 +00:00
Fred Drake 6b3cc524c0 Add a test for fchdir().
This is part of SF feature #536796.
2002-04-15 19:20:27 +00:00
Jack Jansen 7b8c7546eb Mass checkin of universal newline support.
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.

See PEP278 for details.
2002-04-14 20:12:41 +00:00
Martin v. Löwis 06a83e90aa Patch #543447: Add posix.mknod. 2002-04-14 10:19:44 +00:00
Martin v. Löwis 9701732782 Bump AC_PREREQ to 2.53. 2002-04-12 17:25:21 +00:00
Martin v. Löwis 0036cbae58 Remove acconfig.h. 2002-04-12 09:58:45 +00:00
Martin v. Löwis 1143799df9 Update to autoconf 2.5x. 2002-04-12 09:54:03 +00:00
Martin v. Löwis c45929ecb6 Move autoheader declarations into configure.in. 2002-04-06 10:10:49 +00:00
Martin v. Löwis 2d7e264762 Eliminate use of LIBOBJS which is an error in autoconf 2.53. 2002-04-05 16:50:53 +00:00
Martin v. Löwis 1142de3f5b Patch #527027: Allow building python as shared library. 2002-03-29 16:28:31 +00:00
Martin v. Löwis 2e64c34850 Expose C library's gettext. Fixes #516412. 2002-03-27 18:49:02 +00:00
Neil Schemenauer 16c22976c3 Enable pymalloc by default. 2002-03-22 15:34:49 +00:00
Martin v. Löwis 41933dd1b7 Patch #532729: check for sem_init in -lrt. 2002-03-21 15:10:58 +00:00
Martin v. Löwis 4e732dc66a Expand LINKCC in configure.in. Suggested in bug report #529713. 2002-03-19 15:15:32 +00:00
Martin v. Löwis 3d2b549d56 Patch 527434: Avoid double inclusion of thread.o on Sol2.8. 2002-03-15 13:48:21 +00:00
Jack Jansen 524a098f54 Add a -Wno-long-double flag to the compile flags on Mac OS X. Fixes bug
525481. (Probably not a 2.2.1 candidate, unless the fix that introduced a
long double into objimpl.h (rev. 2.44) is backported to 2.2.1).
2002-03-12 15:25:52 +00:00
Jeremy Hylton 90d1006e92 Add fix for AIX as reported by srubben in SF bug #477487.
Untested, of course.
2002-03-08 21:43:51 +00:00
Jack Jansen 4f8d05495d When testing for availability of pthreads without special compiler options
or libraries also look for thread_detach. SGI has thread_create in libc
but complete pthread support only in -lpthread. Fixes #522393.

2.2.1 candidate.Killed by signal 2.
2002-03-08 13:43:01 +00:00
Michael W. Hudson 0c46c0cc70 Apply Jack's patch attached to
[ 508779 ] Disable flat namespace on MacOS X

I presume you wanted this on the trunk too, Jack?

2.2.1 candidate.
2002-03-07 09:58:56 +00:00
Martin v. Löwis a82d3470ec Patch #510825: PTHREAD_SCOPE_SYSTEM support for HP-UX
(pass non-null argument to pthread_create). 2.2.1 candidate.
2002-02-24 16:05:05 +00:00
Martin v. Löwis b2c92f44d4 Patch #511193: Implement killpg in posixmodule. 2002-02-16 23:35:41 +00:00
Andrew M. Kuchling 54a3941c67 Bump version number to 2.3 2002-02-11 16:30:54 +00:00
Martin v. Löwis a6e975801e Patch #497098: build support for GNU/Hurd. 2002-01-01 18:41:33 +00:00
Michael W. Hudson 542411384c Fix for:
[ #417634 ] configuring without C++ compiler name

by checking that we're not about to try to compile C++ files with "yes".

Now we wait for the system where the C++ compiler *is* called yes...
2001-12-07 15:38:26 +00:00
Jack Jansen dd19cf8134 Silly mistake in build directory extension fix. 2001-12-06 22:36:17 +00:00
Jack Jansen 1999ef4973 Test wether we are building on a case-insensitive filesystem (such
as OSX HFS+) and if so add an extension to the python executable, but
only in the build directory, not on the installed python.
2001-12-06 21:47:20 +00:00
Jack Jansen 8a97f4a380 sys.platform on Mac OS X is now "darwin", without any version number appended.
This should probably go into NEWS (who's responsible for that?).
2001-12-05 23:27:32 +00:00
Fred Drake e1ceaa00dc Define NDEBUG when compiling a release build on Unix.
This is the Unix portion of the fix for SF bug #489052.
2001-12-04 20:55:47 +00:00
Martin v. Löwis 06f15bbcc4 Compute thread headers through shell expansion in configure.
Fixes #485679.
2001-12-02 13:02:32 +00:00
Martin v. Löwis 44ddbde3ab Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
Jack Jansen 418c3b1e26 OSX tests used specific version numbers to test for new features and
used the default Darwin/* for the old code. Reversed those tests so
that compatibility code is in a switch leg with a specific version and
newer systems take the default leg.

This should allow Python to build on OSX 10.1.1 (which jumps from Darwin/1.4
to Darwin/5.1 due to a new numbering scheme).
2001-11-14 10:59:57 +00:00
Martin v. Löwis c010b6d9e0 Add sys/types.h and stdio.h into getaddrinfo test, based on itojun's message
in http://mail.python.org/pipermail/python-dev/2001-November/018473.html
2001-11-09 17:50:52 +00:00
Jack Jansen 666b1e7e2f Link the core with CoreServices, not with Carbon, and don't use any Carbon
routines. As of 10.1 using Carbon will crash Python if no window server is
available (ssh connection, console mode, MacOSX Server). This fixes bug
#466907.

A result of this mod is that the default 8bit encoding on OSX is now ASCII,
for the time being. Also, the extension modules that need the Carbon
framework now explicitly include it in setup.py.
2001-10-31 12:11:48 +00:00
Martin v. Löwis eb9b103296 Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize
access to _flags on systems where WINDOW is opaque. Fixes bugs
#432497, #422265, and the curses parts of #467145 and #473150.
2001-10-24 17:10:49 +00:00
Martin v. Löwis 861a65bc2f Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
not properly processing numeric IPv4 addresses. Fixes V5.1 part of #472675.
2001-10-24 14:36:00 +00:00
Neil Schemenauer af5567f734 install on HP-UX does not support the -d option. Using the install-sh instead.
This fixes SF bug: [ #473491 ] "install -d" doesn't work on HP-UX.
2001-10-21 22:32:04 +00:00
Guido van Rossum 67b2659046 Patch from SF bug #473150: configure weaknesses on HP-UX (Michael Piotrowski)
1. configure doesn't handle HP-UX release numbers
    (e.g., B.11.00), resulting in MACHDEP = "hpuxB".

    2. After checking for wchar.h, configure doesn't
    include it when checking the size of wchar_t.

    (Python 2.2b1 on HP-UX 11.00)
2001-10-20 14:21:45 +00:00
Guido van Rossum c524d952da SF patch #460805 by Chris Gonnerman: Support for unsetenv()
This adds unsetenv to posix, and uses it in the __delitem__ method of
os.environ.

(XXX Should we change the preferred name for putenv to setenv, for
consistency?)
2001-10-19 01:31:59 +00:00
Guido van Rossum 98bf58f1c6 SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
This is a big one, touching lots of files.  Some of the platforms
aren't tested yet.  Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences.  When accessed as a sequence, they behave exactly as
before.  But they also have attributes like st_mtime or tm_year.  The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there).  If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.

(Still missing is a documentation update.)
2001-10-18 20:34:25 +00:00
Guido van Rossum a6535fd40b Shut up warnings for setgroups() on Linux -- you have to #include
<grp.h> it seems.  This requires yet another configure test.
2001-10-18 19:44:10 +00:00
Martin v. Löwis b7da67a873 Use CXX in LINKCC if CXX is used to build main() and the system requires
to link a C++ main using the C++ compiler. Fixes #472007.
2001-10-18 15:35:38 +00:00
Martin v. Löwis 61c5edf6fc Expose setgroups. Fixes feature request #468116. 2001-10-18 04:06:00 +00:00
Martin v. Löwis 69c0ff3836 Do not define _POSIX_THREADS if unistd.h defines it.
Check for pthread_sigmask before using it. Fixes remaining problem in #470781.
2001-10-15 14:34:42 +00:00
Martin v. Löwis a5f73f9bab Check whether pthreads are available without any options before checking
that -Kpthread is supported. Fixes #470781.
Port to autoconf 2.52.
2001-10-15 08:06:29 +00:00
Martin v. Löwis 6953233a35 Check for term.h and include it on non-ncurses system to get a declaration
for tigetstr.
2001-10-13 09:12:41 +00:00
Martin v. Löwis 8158b5ad09 Provide explicit program when trying to link pthread_create.
Contributed by Albert Chin in discussion of bug #210665.
2001-10-08 13:17:28 +00:00
Martin v. Löwis 25ae43b184 Support OpenUNIX like UnixWare. 2001-10-07 08:39:18 +00:00
Martin v. Löwis 260aecc83d Use AC_TRY_RUN for checking for -Kpthread. 2001-10-07 08:14:41 +00:00
Martin v. Löwis 244edc8985 Add chroot call. Implements feature #459267. 2001-10-04 22:44:26 +00:00
Martin v. Löwis 0daad598d0 Patch #462122: add readline startup and pre_event hooks. 2001-09-30 21:09:59 +00:00
Guido van Rossum ce608b02a6 Fix SF bug 419062: building pbs on AIX 4.3.2
Apply patch from "china@thewrittenword.com" to put the correct
location for ld_so_aix in BLDSHARED.
2001-09-28 15:59:38 +00:00
Guido van Rossum 3065c94f37 Add cross-compilation defaults to most AC_TRY_RUN values. The
supplied values are the most "normal" or "common" values found for
recent 32 bit machines.  This now seems to work to build Python 2.2
for the ARM processor used on the iPAQ.
2001-09-17 04:03:14 +00:00
Jack Jansen 127e56e5e8 When frameworks are not enabled don't put an empty target in the Makefile.
Older make's can apparently choke on this.
2001-09-11 14:41:54 +00:00
Martin v. Löwis 5b718fc8a3 Use $(CC) -G to link shared libraries on Solaris. 2001-09-10 15:34:42 +00:00
Guido van Rossum d0b69eceb4 Improve threading on Solaris, according to SF patch #460269, submitted
by bbrox@bbrox.org / lionel.ulmer@free.fr.

This adds a configure check and if all goes well turns on the
PTHREAD_SCOPE_SYSTEM thread attribute for new threads.

This should remove the need to add tiny sleeps at the start of threads
to allow other threads to be scheduled.
2001-09-10 14:10:54 +00:00
Guido van Rossum 810cc51d5f This time (I hope) I've fixed largefile
support on Linux (and Solaris, I expect) for real.
The necessary symbols are defined once and for all,
under the assumption that they won't harm elsewhere.
2001-09-09 23:51:39 +00:00
Jack Jansen a3891ea46c (Slightly modified) patch by Steve Spicklemire to make Python build
out of the box on OSX 10.1. Untested by me (except for not having adverse
effects on 10.0.4) but it looks good, for now. Eventually we should not
trigger on the darwin version but test for something, but until I have
the time to install 10.1 myself I have no clue what to test on.

It would be nice if this got in to the 2.2a3 distribution.
2001-09-07 14:25:12 +00:00
Guido van Rossum 98935bff0a SF bug #427073: DLINCLDIR defined incorrectly (Skip Montanaro).
I don't know what difference it makes, but '/' indeed makes less sense
as an include dir than '.', so I'm changing the default.  Just so I
can close the bug. ;-)
2001-09-05 19:13:16 +00:00
Guido van Rossum b855216099 Changes to automatically enable large file support on some systems.
I believe this works on Linux (tested both on a system with large file
support and one without it), and it may work on Solaris 2.7.

The changes are twofold:

(1) The configure script now boldly tries to set the two symbols that
    are recommended (for Solaris and Linux), and then tries a test
    script that does some simple seeking without writing.

(2) The _portable_{fseek,ftell} functions are a little more systematic
    in how they try the different large file support options: first
    try fseeko/ftello, but only if off_t is large; then try
    fseek64/ftell64; then try hacking with fgetpos/fsetpos.

I'm keeping my fingers crossed.  The meaning of the
HAVE_LARGEFILE_SUPPORT macro is not at all clear.

I'll see if I can get it to work on Windows as well.
2001-09-05 14:58:11 +00:00
Martin v. Löwis 36546db750 Patch #455231: Support ELF properly on OpenBSD. 2001-09-05 14:24:43 +00:00
Martin v. Löwis 703ad705c3 Use -fPIC instead of -fpic for gcc on HP/UX. Fixes bug #433234. 2001-09-05 08:36:52 +00:00
Martin v. Löwis a5f8bb57e0 Check for RFC 2553 API. Fixes bug #454493. 2001-09-05 08:22:34 +00:00
Neil Schemenauer 9c63e6d682 Always compile gcmodule. 2001-08-29 23:44:38 +00:00
Martin v. Löwis 339d0f720e Patch #445762: Support --disable-unicode
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
2001-08-17 18:39:25 +00:00
Martin v. Löwis f95dd0a298 Fix portability problems with glibc 2.0, as reported in #449157. 2001-08-15 17:14:33 +00:00
Jack Jansen 591cbede56 MacOSX: if we're building without --enable-toolbox-glue don't attempt to
include _PyMac_Error. Also don't try to include __dummy: it needs Foundation
and I think (not 100% sure) that this isn't part of naked Darwin.
2001-08-15 13:55:15 +00:00
Jack Jansen b6e9cad34c Lots of changes in the framework support:
- Made framework builds work for MacOSX. The configure arg is now
  "--enable-framework".
- Added an install target frameworkinstall which installs the framework.
- Ripped out Next/OpenStep support, which was broken anyway.
- Made the MacOSX toolbox glue dependant on a --enable-toolbox-glue
  configure arg. This should make naked darwin build work again (untested).

A few targets have been added to Makefile.pre.in, and on inspection they
look harmless to non-MacOSX machines, but it is worth checking.

Closes bug #420601 and patch #450350.
2001-08-15 01:26:28 +00:00
Martin v. Löwis 1ba3fd5d51 Autotest for netpacket/packet.h, as it is not available on all Linux versions.
Depend AF_PACKET on HAVE_NETPACKET_PACKET_H. Fixes #449157
2001-08-10 20:29:40 +00:00
Martin v. Löwis 9b75dca192 Expose nl_langinfo through locale where available. 2001-08-10 13:58:50 +00:00
Martin v. Löwis a2ac60277c Move IPv6 test further down so that usage of -lnsl has been tested.
Recognize Solaris IPv6 by checking /etc/netconfig.
2001-08-09 11:40:14 +00:00
Martin v. Löwis 1d5ecb7cfa Patch #433537: Cache ac_cv_bad_static_forward.
Also move up AC_AIX and AC_MINIX further up.
2001-08-09 10:29:44 +00:00
Jack Jansen 9a66b6d470 Various fixes to streamline build process on Mac OS X:
- Give a warning if you're on a case-insensitive filesystem and have
  not specified --with-suffix.
- Don't require --with-dyld, it is now default for OSX/Darwin (suggested
  by Martin v. Loewis)
- Don't define _POSIX_THREADS on Darwin, it's done by standard headers already
  (fix by Tony Lownds)
- Don't use the Mac subtree anymore, the routines relevant to OSX/Darwin
  have moved to a new file Python/mactoolboxglue.c.
2001-08-08 13:56:14 +00:00
Thomas Wouters b0db85ac19 Remove redundant check for 'getaddrinfo' (it's already checked the block
before.)
2001-08-08 10:39:03 +00:00
Martin v. Löwis 864e9ffb14 Auto-detect hstrerror. Raise socket.herror in PyH_Error. Register the three
exception classes in the module dictionary.
2001-08-04 22:32:03 +00:00
Jack Jansen ca06bc6423 - On OSX add -no-cpp-precomp to OPT. The user still has to manually specify
the --with-suffix=.exe, but it seems that that is also true for cygwin
  (or not? should I automatically set it?)
- Got --with-next-framework to build on OSX. This is only the build bit,
  the install still has to be done manually. Moreover, the Python build order
  isn't really suited to frameworks (where you want to do 'build lib',
  'install lib and framework', 'link executable against installed framework'
  in that order).
2001-08-03 15:32:23 +00:00
Martin v. Löwis 4f1cd8bdcb Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
Martin v. Löwis 784d3df09f Allow usage of gcc on OSF/1; this reverts rev 1.23 of configure.in,
and fixes bug #438786.
2001-07-25 07:30:35 +00:00
Martin v. Löwis 791bfda2b3 Autocheck for snprintf, and use sprintf if it is not available.
Remove declaration of h_errno, since it is supposedly declared in netdb.h.
Changes proposed by itojun.
2001-07-24 06:33:08 +00:00
Martin v. Löwis 9db2f571c3 Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family. 2001-07-23 01:30:10 +00:00
Andrew M. Kuchling 5a3e4cb0a2 Patch #429442 from Jason Tishler: Corrects sys.platform and
distutils.util.get_platform() problems caused by the cruft contained
    in Cygwin's uname -s.
2001-07-20 19:29:04 +00:00
Martin v. Löwis 123cbd286a Use -Kpthread when trying to find out the size of pthread_t. 2001-07-19 14:21:10 +00:00
Martin v. Löwis 130fb17578 Patch #418659: Fixes for UnixWare and ReliantUnix.
back-out 1.215 of configure.in and 1.34 of Makefile.pre.in
Check for -Kpthread compiler support, and use this as the sole option
for MT if available.
2001-07-19 11:00:41 +00:00
Martin v. Löwis b926866cb7 Deactivate definition of ss_family and ss_len. Fixes bug #440486. 2001-07-18 16:24:30 +00:00
Andrew M. Kuchling 881fd90fd6 [Bug #438050] Check for sys/poll.h in configure script 2001-07-14 20:55:52 +00:00
Thomas Wouters e38b2f1f00 Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Also note that it isn't just Linux nice() that is broken: at least FreeBSD
and BSDI also have this problem. os.nice() should probably just be emulated
using getpriority()/setpriority(), if they are available, but I'll get to
that later.
2001-07-11 22:35:31 +00:00
Thomas Wouters c2c12dc31c Patch #439995 (slightly modified from the uploaded version):
Work around Linux's nonstandard nice() systemcall, which does not return the
new priority.

This closes SF bug #439990.
2001-07-11 14:45:34 +00:00
Fred Drake 9f71582c14 Check for --with-pydebug earlier, and record the result.
When setting up the basic OPT value for GCC, only use optimization if
not using debugging mode.

Fix a typo in a comment in the IPv6 check.
2001-07-11 06:27:00 +00:00
Guido van Rossum 353ae58964 SF Patch #432457 by Jason Tishler: support for readline 4.2.
This patch allows the readline module to build cleanly with GNU
readline 4.2 without breaking the build for earlier GNU readline
versions.  The configure script checks for the presence of
rl_completion_matches in libreadline.
2001-07-10 16:45:32 +00:00
Martin v. Löwis fd9177943b Default to ucs2 when no argument to --enable-unicode is specified. 2001-06-27 20:22:04 +00:00
Martin v. Löwis 0ba70cc3c8 Support using UCS-4 as the Py_UNICODE type:
Add configure option --enable-unicode.
Add config.h macros Py_USING_UNICODE, PY_UNICODE_TYPE, Py_UNICODE_SIZE,
                    SIZEOF_WCHAR_T.
Define Py_UCS2.
Encode and decode large UTF-8 characters into single Py_UNICODE values
for wide Unicode types; likewise for UTF-16.
Remove test whether sizeof Py_UNICODE is two.
2001-06-26 22:22:37 +00:00
Martin v. Löwis b9ab159052 Emulate inet_{pton,ntop} on systems that don't provide it. 2001-06-24 21:18:26 +00:00
Martin v. Löwis 01dfdb3d35 Patch #401196: Configuration machinery for IPv6.
Contributed by Jun-ichiro "itojun" Hagino. get{addr,name}info emulation
code taken from WIDE.
2001-06-23 16:30:13 +00:00
Jack Jansen c49e5b7386 Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Mac/macglue.c into the core interpreter. This file contains the glue code that
allows extension modules for Mac toolboxes to live in different shared libraries
but still communicate with each other. The glue code is controlled by the
USE_MAC_TOOLBOX_GLUE define.
2001-06-19 15:00:23 +00:00
Fred Drake 2ca5f3b752 Add a check for sys/modem.h, needed by termios on HP-UX. 2001-05-11 16:10:56 +00:00
Neil Schemenauer f8b71c5984 Process Setup* files with makesetup in the same order as the makefile. 2001-04-21 17:41:16 +00:00
Guido van Rossum 6db412be44 Bump the version number in more places 2001-04-18 04:37:57 +00:00
Guido van Rossum 2242f2fbd0 Unixware 7 support by Billy G. Allie (SF patch 413011) 2001-04-11 20:58:20 +00:00
Neil Schemenauer a42c8271ab "install -d" does not work on BSDI systems even though autoconf thinks
install works on that system.   Use "install-sh" on BSDI.
2001-03-31 00:01:55 +00:00
Neil Schemenauer 4edbc2a54f Add CONFIG_ARGS Makefile variable (saves the arguments passed
to configure).
2001-03-22 00:34:03 +00:00
Martin v. Löwis bec1958d97 Use proper compiler flags on UnixWare.
Closes bug #231439.
2001-03-21 15:57:54 +00:00
Guido van Rossum 6abce91a34 Get rid of --with-check-import-case. (Jason Tishler, SF #409924) 2001-03-20 13:09:14 +00:00
Martin v. Löwis e8964d493e Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787. 2001-03-06 12:09:07 +00:00
Fred Drake a1a84e7d4f Move all knowledge that $(MAINOBJ) is built in the Modules/ directory
into Makefile.pre.in; the configure script will only determine the basename
of the file.

This fixes installation of a Python built using C++, reported by Greg
Wilson.
2001-03-06 05:52:16 +00:00
Neil Schemenauer f25cf6ccea Add Python/ prefix to files in LIBOBJS. This closes SF bug "[ #404827 ] Python
Makefile: LIBOBJS incorrect".
2001-03-04 06:39:33 +00:00
Neil Schemenauer a35c688055 Add Vladimir Marangozov's object allocator. It is disabled by default. This
closes SF patch #401229.
2001-02-27 04:45:05 +00:00
Neil Schemenauer acbf9ef784 Don't create the Include directory if building outside of the source
directory.  Closes SF #403930.
2001-02-27 02:15:14 +00:00
Andrew M. Kuchling f55204b0ce Rip out various module-enabling switches, made obsolete by setup.py 2001-02-21 21:12:59 +00:00
Neil Schemenauer 9505272511 Revert SF patch #103655. Martin Löwis says:
-shared does the following things:
- invoke the linker with -G -dy -z text (the latter only if
  -mimpure-text was not given)
- drop crt1.o from the list of objects being linked
- drop -lc from the list of libraries being linked
OTOH, -G is just passed through to the linker.

The things that -shared does are necessary: crt1.o defines _start, and
requires main, so it should not be present in a shared library.
Likewise, -z text should be used to detect position-dependent code at
compile time.
2001-02-19 18:17:33 +00:00
Neil Schemenauer 6625216762 Use -G option for linking shared libraries on Solaris (SF patch #103656).
Compile shared object files using -fPIC option when using GCC on Solaris (SF
patch #103865).  Closes bug #132783.  Move config.c generated by makesetup to
the Modules directory.
2001-02-19 04:47:42 +00:00
Neil Schemenauer 28aa9d39b0 Add Include to the list of source directories. 2001-02-16 04:11:41 +00:00
Neil Schemenauer b3531b8638 Simplify linking on AIX and BeOS (SF patch #103679). 2001-02-16 04:09:05 +00:00
Marc-André Lemburg 9f8cdf58a2 Patches for AIX. Checked by Benjamin Collar. 2001-02-09 09:59:06 +00:00
Neil Schemenauer d9cf41c438 - Remove Guido's LINKCC=CXX experiment.
- Cygwin doesn't want CCSHARED flag when bulding the interpreter DLL.
2001-01-27 21:39:17 +00:00
Neil Schemenauer 3ae1d0aa84 Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
and an option is more friendly then manually setting a variable.
2001-01-27 06:54:42 +00:00
Andrew M. Kuchling 8abedde53a Removed setup.cfg from the list of generated files
Fixed typo in message
2001-01-26 22:55:24 +00:00
Neil Schemenauer 61c5115672 - LIBRARY is now a SUBST variable.
- Add CFLAGSFORSHARED variable.  configure sets this to CCSHARED if LDLIBRARY
  is a shared library.
- Remove -fPIC from OPT, it has no business there.
- Change CCSHARED option for Linux to -fPIC.  It should probably be
  -fPIC on a few other platforms as well.
- Don't create silly boot Makefile, create Setup files and run makesetup
  instead.
2001-01-26 16:18:16 +00:00
Neil Schemenauer 55f0cf3379 - build now happens in toplevel directory, add subdir paths to filenames
- change EXE to EXTEXT, there is an autoconf macro for it
- use PROG_INSTALL macro rather than always using install-sh
- add option to disable signal module (simplifies the makefile)
- create subdirs for object files (when building out of src dir)
- don't generate subdir makefiles
- generate "boot" makefile
2001-01-24 17:24:33 +00:00
Guido van Rossum 275529087d Fix some make errors during "make clobber" or "make distclean", caused
by weird and (hopefully) unnecessary SET_CXX and SET_DLLLIBRARY macros
that occurr at the start of Makefile.in files.

- Also removed the already-commented-out SET_CCC macro cruft.
2001-01-23 01:52:26 +00:00
Neil Schemenauer 7d6457743a Bump up version number. 2001-01-17 21:59:33 +00:00
Andrew M. Kuchling b226b0c078 Patch #102588 / PEP 229:
Tweak the configure script to build setup.cfg
2001-01-17 15:24:57 +00:00
Sjoerd Mullender 124698cbb0 Fixed typo: Using --with-dbm had no effect because due to a typo it
was never enabled.
2001-01-17 09:42:21 +00:00
Eric S. Raymond a888540593 Eric the half-a-wit, driven to berserk rage after repeatedly doing
builds during which he forgot to uncomment crucial library lines in
Setup, walks into Guido's East End nightclub with a tactical nuclear
weapon on his shoulder.  Said nuclear weapon is promptly deployed
exactly where it will do the most good, right in the middle of
configure.in.

With this patch, the set of libraries autoconfigured in is extended to
include ndbm, gdbm, and crypt.  This essentially eliminates any need to
tweak Setup for a normal Linux build.

"'E was a fair man.  Cruel, but fair."
2001-01-17 08:25:11 +00:00
Eric S. Raymond 1360359bb9 Make HAVE_TERMIOS_H and associated config.sh shell variable available
when configure detects the presence of termios.h; later we'll use this
for correct configuration of edline/readline.

Also, fix a bug in acconfig.h -- somebody forgot to add an undef to
cover the LIBNDBM configure symbol, which was preventing autoheader
from working properly.
2001-01-16 15:01:26 +00:00
Barry Warsaw a57b89b492 Committing patch #103216, autodetect of dbmmodule support and building
of dbmmodule dynamically by default (otherwise it can pull in
dependencies with libdb that croak pybsddb3).  This change moves the
Setup line for dbmmodule to Setup.config.in.
2001-01-15 17:07:21 +00:00
Guido van Rossum acb14c716f SF Patch #102362 by bbum: Support dynamic module loading under OSX
[including support for modules w/Objective-C].
2001-01-10 21:41:16 +00:00
Guido van Rossum aef734b182 Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Extension Patch.

Note: this could use some testing on NeXT, DG/UX, or BeOS, because of
the changes in the Makefile regarding $(LDLIBRARY).
2001-01-10 21:09:12 +00:00
Guido van Rossum 4c3f57cf05 SF Patch #103154 by jlt63: Cygwin Check Import Case Patch.
Note: I've reordered acconfig.h and config.h.in to obtain alphabetical
order (modulo case and leading _).
2001-01-10 20:40:46 +00:00
Guido van Rossum 3d15bd8806 Adapted version of Eric Raymond's patches to automatically configure
curses and readline (for Linux, at least).

These are done as shared libraries by default, and so is bsddb -- that
seems to make the most sense.
2001-01-10 18:53:48 +00:00
Andrew M. Kuchling a9586c7273 Remove configure test for getline(), since it's no longer used at all 2001-01-08 17:58:56 +00:00
Guido van Rossum cadfaeca7f Configuration test for working getc_unlocked() (and flockfile() and
funlockfile()).
2001-01-05 14:45:49 +00:00
Martin v. Löwis 537970fe26 Set CXX even when --with-cxx is not specified. Closes bug #124782 2000-12-13 17:37:02 +00:00
Andrew M. Kuchling 78a14423af Patch #102469: Check for glibc's getline() extension 2000-11-29 02:44:05 +00:00
Fred Drake 8a41d20b05 Remove AC_C_INLINE test from configure.in, since the only place the symbol
occurs in the Python sources appears to be as text in comments.  We do not
want to interfere with C++ keywords!

This closes bug #119851.
2000-11-08 20:22:59 +00:00
Greg Ward a1c4da2481 Fix for SF bug #117606:
- when compiling with GCC on Solaris, use "$(CC) -shared" instead
    of "$(CC) -G" to generate .so files
  - when compiling with GCC on any platform, add "-fPIC" to OPT
    (without this, "$(CC) -shared" dies horribly)
2000-11-07 15:44:21 +00:00
Thomas Wouters 2cffc7d420 Move our own getopt() implementation to _PyOS_GetOpt(), and use it
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.
2000-11-03 08:18:37 +00:00
Fred Drake 884d3ba9dd Make sure the Modules/ directory is created before writing Modules/Setup. 2000-11-02 17:52:56 +00:00
Guido van Rossum 8d6e8af16e Hack to force -lpthread instead instead of -lcma on HPUX, by Philipp
Jocham.  Philipp asks: "Are there any success stories with HP-UX 11.00
and -lcma?  Maybe libcma is broken."
2000-10-30 17:45:07 +00:00
Fred Drake 036144d26d Test for and create Modules/Setup in the configure script if it does not
already exist.
2000-10-26 17:09:35 +00:00
Jeremy Hylton 1a2ca86a4f Patch #101936: Auto-detect DEC threads (which need "-threads" argument)
by Thomas Wouters
2000-10-16 16:59:12 +00:00
Fred Drake f4670e9639 When we know the compiler is GCC, always add the -Wall and
-Wstrict-prototypes options.  This will make it a lot easier to keep
warnings under control in the first place in the future.

There is one known warning at this time, caught by the -Wstrict-prototypes
option.  In Modules/main.c, the declaration of getopt() without parameters
gets a complaint (rightly) that it is not a proper prototype.  The lack of
a complete prototype information should be corrected when the right
portability conditions have been identified.

Approved by the Guido.
2000-10-12 17:11:38 +00:00
Fred Drake c9a5cc1a98 Remove macro that mentions DL_EXPORT_HEADER; it caused a spurious warning
from autoheader and is not useful anymore.
(Approved by Donn Cave.)
2000-10-09 20:18:32 +00:00
Guido van Rossum 5839e5861b Checking in three Darwin-specific patches.
Tony Lownds: [ Patch #101816 ] Fixes shared modules on Mac OS X

    1. Mac OS X is recognized by the Next-ish host recognition code as
    "Darwin/1.2"

    2. When specifying just --with-dyld, modules can compile as shared

    3. --with-dyld and --with-next-framework, modules can compile as
    shared

    4. --with-suffix=.exe, and Lib/plat-darwin1.2 is being made, the regen
    script invokes python as python.exe

    [I had to reformat this patch a bit to make it work.  Please test!]

Dan Wolfe: [ Patch #101823 ] Fix Darwin POSIX Thread redefinition

    The patch below fixes the redefinition problem in Darwin with
    _POSIX_THREADS. I'm not sure if this is the correct long term fix but
    for now it fixes the problem and the fix is specific to Darwin.

Dan Wolfe: [ Patch #101824 ] On Darwin, remove unrecognized option
                             `-OPT:Olimit=0'

  After many, many, many compiles, I finally got itchy of this warning
  cluttering up the output... so I scratched (Darwin configs only) and
  it's gone! :-)
2000-10-09 19:52:35 +00:00
Fred Drake 5790be1a4d Donn Cave <donn@oz.net>:
Update for BeOS.
This closes SourceForge patch #101774.

Also fix typo in a comment.
2000-10-09 17:06:13 +00:00
Guido van Rossum 4095101c78 Put arguments to test -z in double quotes. Fixes Bug #116325. 2000-10-07 16:21:27 +00:00
Barry Warsaw 7d1219d9bd Change all occurances of
test -d "$directory"

to

	test ! -z "directory" -a -d "directory"

Apparently, on SunOS 4.1.4_JL (and other?) OSes, -d on an empty string
always returns true.  This closes SF bug #115392.
2000-10-05 18:45:53 +00:00
Guido van Rossum 3dc0a514e6 [ Patch #101730 ] Add initial static support for Darwin/MacOSX.
By D.K. Wolfe.
2000-10-05 18:00:06 +00:00
Fred Drake 02706f5898 Properly set LINKFORSHARED on Reliant UNIX. Problem and required linker
flags reported by Daniel Dittmar <daniel.dittmar@sap.com>.
2000-09-25 15:08:46 +00:00
Martin v. Löwis 05a65d6745 If dbopen is not in libc, checking whether it is in libdb will fail if
db_185.h has renamed that function to __db185_open, which it does in DB 3.1.
So don't check whether the function is in -ldb.
2000-09-24 19:40:25 +00:00
Guido van Rossum 1258049de0 Stupid typo in the pthread_t test 2000-09-24 16:47:19 +00:00
Guido van Rossum e126233cd9 Poke-and-hope attempt to fix Bugs #115006 and #114324: fix the test
for pthread_t (to calculate its size) to work even if pthread_t is a
struct.
2000-09-22 19:41:56 +00:00
Guido van Rossum cd5ff9f057 Change HP=UX compiler options from -Aa to -Ae, which implies
-D_HPUX_SOURCE and also turns on long long support.

Suggestion by stnor@sweden.hp.com (Stefan Norberg).

Please test this if you have access to HP-UX!!!
2000-09-22 16:15:54 +00:00
Guido van Rossum ff555e383d Address Bug #115057: add a --with-suffix option to set the EXE
variable in the Makefiles from the configure script.  Usefil for
Cygwin and Mac OS X builds.
2000-09-22 15:38:21 +00:00
Guido van Rossum 9e8181b809 Make better use of GNU Pth -- patch by Andy Dustman.
I can't test this, so I'm just checking it in with blind faith in Andy.
I've tested that it doesn't broeak a non-Pth build on Linux.

Changes include:

- There's a --with-pth configure option.

- Instead of _GNU_PTH, we test for HAVE_PTH.

- Better signal handling.

- (The config.h.in file is regenerated in a slightly different order.)
2000-09-19 00:46:46 +00:00
Fred Drake ae90f8da24 Trent Mick points out that the BSD DB also provides an ndbm compatibility
layer.  If that is available, consider that as an option as well.
2000-09-15 03:38:12 +00:00
Fred Drake 641fbe66e7 Allow configure to detect whether ndbm.h or gdbm/ndbm.h is installed.
This allows dbmmodule.c to use either without having to add additional
options to the Modules/Setup file or make source changes.

(At least some Linux systems use gdbm to emulate ndbm, but only install
the ndbm.h header as /usr/include/gdbm/ndbm.h.)
2000-09-14 15:47:06 +00:00
Skip Montanaro ed33c9af97 autodetect presence of libdb - this allows bsddbmodule to be built
automatically if dbopen is found in libc or libdb.  This closes patch
#101420
2000-09-08 02:17:15 +00:00
Skip Montanaro b89f41efbc Fixes bug in --with-libdb. If --with-libdb was not specified (default is to
enable it), but db.h was not found, the WITH_LIBDB macros was still being
defined, resulting in compilation errors.  Also added a short explain when
bsddb support wasn't enabled (because db.h wasn't found) when the user
explicitly used --with-libdb on the configure command line.
2000-09-04 04:06:05 +00:00
Jeremy Hylton 4bcc7c5119 patch #101733: fix glitch in FreeBSD conf 2000-08-31 17:45:35 +00:00
Vladimir Marangozov 0cf8cdea30 Remove obsolete --with(out)-readline configure option 2000-08-31 16:40:08 +00:00
Fred Drake c9cb84703b Skip Montanaro <skip@mojam.com>:
Update the build structures to automatically detect the presence of BSD db,
including the proper name of the header file to include.  Has all the
expected niceties associated with yet-more-configure-options.  ;)

This checkin includes changes for non-generated files only; subsequent
checkin will catch those.

This is part of SourceForge patch #101272.
2000-08-31 16:11:07 +00:00
Skip Montanaro cb853261bd adds support for --with-pydebug configure option 2000-08-30 22:29:48 +00:00
Guido van Rossum 0286ae8c46 Some cleanup for FreeBSD. This gets rid of version numbers and
figures out old (a.out) and newer (ELF) systems, similar to NetBSD.

(I'm assuming this is also by tg@FreeBSD.org.)
2000-08-29 15:06:49 +00:00
Thomas Wouters 0db2b2b4fe Don't enable the 'thread' module if threads are not possible. 2000-08-26 11:33:43 +00:00
Andrew M. Kuchling 5821b77782 Add configure tests for poll() (SF patch #100852) 2000-08-25 01:14:08 +00:00
Trent Mick 635f6fb0e9 This patch partly (some stuff went in already) ports Python to Monterey.
- Fix bug in thread_pthread.h::PyThread_get_thread_ident() where
  sizeof(pthread) < sizeof(long).
- Add 'configure' for:
	- SIZEOF_PTHREAD is pthread_t can be included via <pthread.h>
	- setting Monterey system name
	- appropriate CC,LINKCC,LDSHARED,OPT, and CCSHARED for Monterey
- Add section in README for Monterey build
2000-08-23 21:33:05 +00:00
Barry Warsaw bc7c7f991c Added test for uintptr_t, the C9X acceptable way to spell "type to
which I can cast void* to and back again without losing information".
In pyport.h, we typedef Py_uintptr_t to mean this thing, which if the
platform supports, will be uintptr_t (otherwise, other accomodations
are made).
2000-08-18 04:53:33 +00:00
Sjoerd Mullender 59bb0800df Fix up problems when compiling in a directory other than the source
directory.
2000-08-17 11:38:18 +00:00
Andrew M. Kuchling 966e8e3203 Back out ESR's erroneous commit of a DB-related change 2000-08-12 18:43:02 +00:00
Peter Schneider-Kamp 10e1bf2f64 remove all occurence of math.rint() from the sources
(and yes, "Currintly" also counts <0.5 wink>)
2000-08-10 04:23:30 +00:00
Eric S. Raymond 1ebd3f6c4b Tweak curses.wrapper so it initializes colors if they are available. 2000-08-09 21:11:07 +00:00
Thomas Wouters 3a58420d86 Cleanup configure.in. Specifically:
- Don't call both AC_CHECK_FUNCS and AC_REPLACE_FUNC for 'hypot', as the
latter already does everything the former does (because it's implemented as
a call to the former.)

- Don't call AC_CHECK_FUNC() without any 'action' clauses or with an action
clause that just defines HAVE_<function>. Instead, call AC_CHECK_FUNCS,
which defines 'HAVE_<function>' of itself, possibly with aditional 'action'
clauses.

No checks are removed by this patch, only moved around, and some duplicates
are removed.
2000-08-05 23:28:51 +00:00
Jeremy Hylton cb25d5e834 Gregor Hoffleit: don't link with libnet on non-BeOS systems 2000-07-27 21:23:28 +00:00
Jeremy Hylton be28f5b2a2 Gregor Hoffleit: Don't link with the libieee library if it's not necessary 2000-07-27 21:03:04 +00:00
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 9a5a5d1cb0 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
(but I can't assign it to myself, nor close it -- sorry)
2000-07-12 03:02:16 +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
Fred Drake a3f6e91307 This patch extends PC/config.h and configure.in as appropriate for
64-bit readiness (the config values are needed for patches that I will
be submitting later today. The changes are as follows:

- add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in)

- add SIZEOF_TIME_T #define to PC/config.h and configure
Needed for some buffer overflow checking because sizeof(time_t) is
different on Win64.

- add SIZEOF_FPOS_T #define
Needed for the Win64 large file support implementation.

- add SIZEOF_HKEY in PC/config.h only
Needed for proper Win32 vs. Win64 handling in PC/winreg.c

- #define HAVE_LARGEFILE_SUPPORT for Win64

- typedef long intptr_t; for all Windows except Win64 (which defines it
itself)
This is a new ANSI (I think) type that is useful (and used by me) for
proper handling in msvcrtmodule.c and posixmodule.c

- indent the nested #ifdef's and #defines in PC/config.h
This is *so* much more readable. There cannot be a compiler
compatibilty issue here can there? Perl uses indented #defines and it
compiles with everything.
2000-06-29 20:44:47 +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 898527b14d Check for existence of mremap() 2000-06-18 14:54:13 +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 9c6ba9b598 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:42:50 +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 8bc1dfd2fb Quote a bunch of shell variables used in test, related to long-long. 1999-04-10 16:01:48 +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 caa69fdf4c Should test for gethost*by*name_r, not for gethostname_r (which
doesn't exist and doesn't make sense).
1999-03-15 21:40:59 +00:00
Guido van Rossum 24f8579ee4 Get rid of AC_CHECK_LIB(m, pow) since this is taken care of later with
LIBM (from --with-libm=...); this actually broke the customizability
offered by the latter option.  Thanks go to Clay Spence for reporting
this.
1999-02-23 18:00:56 +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 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 00f0f6ef03 Changes for long file support by Steve Clift.
(Slightly modified to isolate the test for various funcs more.)
1999-01-06 18:52:29 +00:00
Guido van Rossum 2666a15576 Several tiny changes:
- remove PowerPC specific compiler switch for BeOS (Chris Herborth)
- FreeBSD/3 support
- check for pthread_detach in libc instead of _create
1998-12-17 18:07:35 +00:00