Commit Graph

192 Commits

Author SHA1 Message Date
Jeremy Hylton 2056d8e7d2 the usual 2001-02-02 20:11:13 +00:00
Neil Schemenauer 0c6141f75c the usual 2001-01-27 21:40:54 +00:00
Neil Schemenauer dfb38e47f5 Grow that RCS file! 2001-01-27 06:57:08 +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 3ecf0aae7b The usual. 2001-01-26 16:15:20 +00:00
Neil Schemenauer d32c2495bd The usual. 2001-01-24 17:25:28 +00:00
Guido van Rossum ca563f228a The usual 2001-01-23 01:52:44 +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 d2d75d3edd Check in a version with the termios test in place. 2001-01-16 15:26:34 +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 22352957cb Set CXX even when --with-cxx is not specified. Closes bug 14782. 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
Guido van Rossum e5cd584b9f Committing autoconf output for
Fred.
2000-11-09 21:14:40 +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
Guido van Rossum 262cf20f0c New configure script from latest configure.in with autoconf 2.13 2000-11-02 19:33:53 +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
Jeremy Hylton eebb1c6cd1 The Usual. 2000-10-09 21:48:02 +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
Jeremy Hylton 1bac645d8f the usual 2000-09-26 16:57:37 +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
Guido van Rossum 29201d4905 Correct configure.in version. 2000-09-01 19:22:55 +00:00
Jeremy Hylton 4bcc7c5119 patch #101733: fix glitch in FreeBSD conf 2000-08-31 17:45:35 +00:00